Hilbish/docs/api/terminal.md

24 lines
538 B
Markdown
Raw Normal View History

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