2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-07-15 15:22:03 +00:00
Hilbish/docs/api/terminal.md
2022-12-03 16:54:34 -04:00

24 lines
538 B
Markdown

---
name: Module terminal
description: low level terminal library
layout: apidoc
---
## Introduction
The terminal library is a simple and lower level library for certain terminal interactions.
## Functions
### restoreState()
Restores the last saved state of the terminal
### 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