Module terminal

Sidebar

  • Vim Mode
  • Completions
  • Lunacolors
  • Frequently Asked Questions
  • Getting Started
  • Introduction
  • Module hilbish
  • Module fs
  • Module snail
  • Module terminal
  • Module commander
  • API
  • Module bait
  • Module hilbish.module
  • Module hilbish.abbr
  • Module hilbish.userDir
  • Module hilbish.os
  • Module hilbish.history
  • Module hilbish.completion
  • Module hilbish.messages
  • Module hilbish.aliases
  • Module hilbish.runner
  • Module hilbish.timers
  • Module hilbish
  • Module hilbish.jobs
  • Module hilbish.editor
  • Actions
  • Module doc
  • Nature
  • Module dirs
  • Hilbish
  • Command
  • Signals
  • Signal
  • Notification
  • Runner Mode
  • Options
  • Features

Module terminal

Introduction The terminal library is a simple and lower level library for certain terminal interactions.

Functions ||| |----|----| |<a href="#restoreState">restoreState()</a>|Restores the last saved state of the terminal| |<a href="#saveState">saveState()</a>|Saves the current state of the terminal.| |<a href="#setRaw">setRaw()</a>|Puts the terminal into raw mode.| |<a href="#size">size()</a>|Gets the dimensions of the terminal. Returns a table with width and height|

<hr> <div id='restoreState'> <h4 class='heading'> terminal.restoreState() <a href="#restoreState" class='heading-link'> <i class="fas fa-paperclip"></i> </a> </h4>

Restores the last saved state of the terminal

Parameters This function has no parameters. </div>

<hr> <div id='saveState'> <h4 class='heading'> terminal.saveState() <a href="#saveState" class='heading-link'> <i class="fas fa-paperclip"></i> </a> </h4>

Saves the current state of the terminal.

Parameters This function has no parameters. </div>

<hr> <div id='setRaw'> <h4 class='heading'> terminal.setRaw() <a href="#setRaw" class='heading-link'> <i class="fas fa-paperclip"></i> </a> </h4>

Puts the terminal into raw mode.

Parameters This function has no parameters. </div>

<hr> <div id='size'> <h4 class='heading'> terminal.size() <a href="#size" class='heading-link'> <i class="fas fa-paperclip"></i> </a> </h4>

Gets the dimensions of the terminal. Returns a table with width and height NOTE: The size refers to the amount of columns and rows of text that can fit in the terminal.

Parameters This function has no parameters. </div>