Term2::Cmds
Extend Cmds module with exec_process
Class methods
Run several commands concurrently - array version.
clear_screen
Sourcedisable_bracketed_paste
Sourcedisable_mouse_tracking
Sourcedisable_report_focus
Sourceenable_bracketed_paste
Sourceenable_mouse_all_motion
Sourceenable_mouse_cell_motion
Sourceenable_report_focus
Sourceenter_alt_screen
Internal/terminal related helper constructors mirror the old Cmd API for convenience.
Every is a command that ticks after a duration. Like Bubble Tea, this sends a single message - to tick repeatedly, return another Every command from your update function.
exec_process(cmd : String, args : Array(String) = [] of String, env : Hash(String, String) | Nil = nil, &block : Exception | Nil -> Msg | Nil) : Term2::Cmd
Creates a command that runs an external process. The terminal is paused (raw mode disabled) while the command runs. The block receives the error (if any) or nil when the process finishes.
exec_process(cmd : String, args : Array(String) = [] of String, env : Hash(String, String) | Nil = nil) : Term2::Cmd
Creates a command that runs an external process without a callback.
exit_alt_screen
Sourcehide_cursor
Sourceinterrupt
Sourceperform
Sourcequit
SourceRun commands sequentially - array version.
show_cursor
Sourcesuspend
SourceTick sends a message after a duration (alias for every).
window_size
Source