Hilbish/docs/api/terminal.md

27 lines
568 B
Markdown
Raw Normal View History

---
title: Module terminal
2022-12-03 20:54:34 +00:00
description: low level terminal library
layout: doc
menu:
docs:
parent: "API"
---
## 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