2022-12-02 19:08:03 +00:00
|
|
|
---
|
|
|
|
name: Module commander
|
2022-12-03 15:30:41 +00:00
|
|
|
description: low level terminal library
|
2022-12-02 19:08:03 +00:00
|
|
|
layout: apidoc
|
|
|
|
---
|
|
|
|
|
|
|
|
## Introduction
|
2022-12-03 15:30:41 +00:00
|
|
|
The terminal library is a simple and lower level library for certain terminal interactions.
|
2022-12-02 19:08:03 +00:00
|
|
|
|
|
|
|
## Functions
|
2022-12-03 15:30:41 +00:00
|
|
|
### restoreState()
|
|
|
|
Restores the last saved state of the terminal
|
2022-12-02 19:08:03 +00:00
|
|
|
|
2022-12-03 15:30:41 +00:00
|
|
|
### saveState()
|
|
|
|
Saves the current state of the terminal
|
|
|
|
|
|
|
|
### setRaw()
|
|
|
|
Puts the terminal in raw mode
|
|
|
|
|
|
|
|
### size()
|
|
|
|
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
|
2022-12-02 19:08:03 +00:00
|
|
|
|