2022-12-15 04:00:54 +00:00
|
|
|
---
|
|
|
|
title: Module terminal
|
|
|
|
description: low level terminal library
|
|
|
|
layout: doc
|
|
|
|
menu:
|
|
|
|
docs:
|
|
|
|
parent: "API"
|
|
|
|
---
|
|
|
|
|
|
|
|
## Introduction
|
|
|
|
The terminal library is a simple and lower level library for certain terminal interactions.
|
|
|
|
|
|
|
|
## Functions
|
2023-08-26 15:30:51 +00:00
|
|
|
### terminal.restoreState()
|
2022-12-15 04:00:54 +00:00
|
|
|
Restores the last saved state of the terminal
|
2023-08-26 15:30:51 +00:00
|
|
|
#### Parameters
|
|
|
|
This function has no parameters.
|
2022-12-15 04:00:54 +00:00
|
|
|
|
2023-08-26 15:30:51 +00:00
|
|
|
### terminal.saveState()
|
2022-12-15 04:00:54 +00:00
|
|
|
Saves the current state of the terminal
|
2023-08-26 15:30:51 +00:00
|
|
|
#### Parameters
|
|
|
|
This function has no parameters.
|
2022-12-15 04:00:54 +00:00
|
|
|
|
2023-08-26 15:30:51 +00:00
|
|
|
### terminal.setRaw()
|
2022-12-15 04:00:54 +00:00
|
|
|
Puts the terminal in raw mode
|
2023-08-26 15:30:51 +00:00
|
|
|
#### Parameters
|
|
|
|
This function has no parameters.
|
2022-12-15 04:00:54 +00:00
|
|
|
|
2023-08-26 15:30:51 +00:00
|
|
|
### terminal.size()
|
2022-12-15 04:00:54 +00:00
|
|
|
Gets the dimensions of the terminal. Returns a table with `width` and `height`
|
|
|
|
Note: this is not the size in relation to the dimensions of the display
|
2023-08-26 15:30:51 +00:00
|
|
|
#### Parameters
|
|
|
|
This function has no parameters.
|
2022-12-15 04:00:54 +00:00
|
|
|
|