Clears the current terminal line, including content that wraps across multiple rows. Uses promptLength + currentLine.length to determine how many rows to clear.
The clipboard to use for copying/pasting
ReadonlycontextThe command executor to use for executing commands
The logger to use for logging
A subject that emits when the command is aborted
OptionaloptionsThe options for the CLI
The process to use for exiting the CLI
The progress bar to use for showing progress
Refreshes the display of the current line (clears and redraws prompt + input).
The services to use for the CLI context
Set the current processor as the context processor, i.e. the processor that will handle the command
The processor to set
Optionalsilent: booleanIndicates if the setting should be silent, i.e. not write to the terminal
Prints the prompt to the terminal.
OptionalspinnerThe spinner to use for showing/hiding the loader
The state store to use for storing state
The terminal to use for writing
OptionaltextThe text animator to use for showing/hiding text
OptionaluserThe current user session
The writer to use for writing to the terminal
The current user input text on the active line.
The cursor position within the current line.
The cursor position within the current line.
The number of visible characters the prompt occupies on the current line.
The number of visible characters the prompt occupies on the current line.
Clears the current line content and reprints the prompt.