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.