Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Terml.Terminal
Sourcetype t =
| DisableLineWrap
| EnableLineWrap
| EnterAlternateScreen
| LeaveAlternateScreen
| ScrollUp of int
| ScrollDown of int
| SetSize of int * int
| SetTitle of string
| BeginSyncUpdate
| EndSyncUpdate
| ClearScreen of clear_type
Disables line wrapping.
Enables line wrapping.
A command that switches to the alternate screen buffer.
A command that switches back from the alternate screen buffer.
A command that scrolls the terminal up a given number of rows.
A command that scrolls the terminal down a given number of rows.
A command that sets the terminal buffer size (columns, rows).
A command that sets the terminal title.
A command that tells the terminal to begin a synchronous update.
Terminal emulators usually iterates through each grid cell in the visible screen and renders its current state. Applications that updates the screen at a higher frequency can experience tearing.
When a synchronous update is enabled, the terminal will keep rendering the previous frame until the application is ready to render the next frame.
Disabling synchronous update will cause the terminal to render the screen as soon as possible.
A command that tells the terminal to end a synchronous update.
Terminal emulators usually iterates through each grid cell in the visible screen and renders its current state. Applications that updates the screen at a higher frequency can experience tearing.
When a synchronous update is enabled, the terminal will keep rendering the previous frame until the application is ready to render the next frame.
Disabling synchronous update will cause the terminal to render the screen as soon as possible.
A command that clears the terminal screen buffer. clear_type
specifies the type of clear to perform.
All
clears the entire screen.Purge
clears the entire screen and the scrollback buffer. (history)FromCursorDown
clears from the cursor to the end of the screen.FromCursorUp
clears from the cursor to the beginning of the screen.CurrentLine
clears the current line.UntilNewLine
clears from the cursor until the new line.Enable raw mode for the current terminal. Returns the previous terminal settings so that they can be restored later.
Disables raw mode for the current terminal. termios
is the terminal settings that were previously saved by enable_raw_mode
.