Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val stdin_fd : Unix.file_descr
type t =
| DisableLineWrap
| EnableLineWrap
| EnterAlternateScreen
| LeaveAlternateScreen
| ScrollUp of int
| ScrollDown of int
| SetSize of int * int
| SetTitle of string
| BeginSyncUpdate
| EndSyncUpdate
| ClearScreen of clear_type
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.
val clear_screen : clear_type -> string
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.val enable_raw_mode : unit -> Unix.terminal_io
Enable raw mode for the current terminal. Returns the previous terminal settings so that they can be restored later.
val disable_raw_mode : Unix.terminal_io -> unit
Disables raw mode for the current terminal. termios
is the terminal settings that were previously saved by enable_raw_mode
.
val execute : t -> string