2022-12-02 19:08:03 +00:00
|
|
|
---
|
2022-12-15 01:05:11 +00:00
|
|
|
title: Module terminal
|
2022-12-03 20:54:34 +00:00
|
|
|
description: low level terminal library
|
2022-12-15 01:05:11 +00:00
|
|
|
layout: doc
|
|
|
|
menu:
|
|
|
|
docs:
|
|
|
|
parent: "API"
|
2022-12-02 19:08:03 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
## Introduction
|
2022-12-03 20:54:34 +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 20:54:34 +00:00
|
|
|
### restoreState()
|
|
|
|
Restores the last saved state of the terminal
|
2022-12-03 15:15:25 +00:00
|
|
|
|
2022-12-03 20:54:34 +00:00
|
|
|
### saveState()
|
|
|
|
Saves the current state of the terminal
|
2022-12-02 19:08:03 +00:00
|
|
|
|
2022-12-03 20:54:34 +00:00
|
|
|
### setRaw()
|
|
|
|
Puts the terminal in raw mode
|
2022-12-02 19:08:03 +00:00
|
|
|
|
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
|
2022-12-02 19:08:03 +00:00
|
|
|
|