Module command

Source
Expand description

Commands for async operations that produce messages. This module provides functions for creating and managing commands. Commands are asynchronous operations that can produce messages to update the model.

Structs§

Batch
A batch command that executes multiple commands concurrently.

Statics§

COMMAND_ENV
Global environment variables to be applied to external process commands.

Functions§

batch
Creates a command that executes a batch of commands concurrently.
cancel_all_timers
Creates a command that cancels all active timers.
cancel_timer
Creates a command that cancels a specific timer.
clear_screen
Creates a command that clears the terminal screen.
disable_bracketed_paste
Creates a command that disables bracketed paste mode.
disable_mouse
Creates a command that disables mouse reporting.
disable_report_focus
Creates a command that disables focus reporting.
enable_bracketed_paste
Creates a command that enables bracketed paste mode.
enable_mouse_all_motion
Creates a command that enables all mouse motion reporting.
enable_mouse_cell_motion
Creates a command that enables mouse cell motion reporting.
enable_report_focus
Creates a command that enables focus reporting.
enter_alt_screen
Creates a command that enters the alternate screen buffer.
every
Creates a command that produces messages repeatedly at a regular interval.
every_with_id
Creates a command that produces messages repeatedly at a regular interval with cancellation support.
exec_process
Creates a command that executes an external process.
exit_alt_screen
Creates a command that exits the alternate screen buffer.
hide_cursor
Creates a command that hides the terminal cursor.
interrupt
Creates a command that interrupts the application.
kill
Creates a command that kills the application immediately.
printf
Creates a command that prints formatted text to the terminal.
println
Creates a command that prints a line to the terminal.
quit
Creates a command that quits the application.
sequence
Creates a command that executes a sequence of commands sequentially.
set_window_title
Creates a command that sets the terminal window title.
show_cursor
Creates a command that shows the terminal cursor.
suspend
Creates a command that suspends the application.
tick
Creates a command that produces a single message after a delay.
window_size
Creates a command that requests the current window size.

Type Aliases§

Cmd
A command represents an asynchronous operation that may produce a message.