ANSITerm¶
Handles ANSI escape codes from stdin.
Constructors¶
create¶
Create a new ANSI term. Puts stdin into raw mode and restores it on dispose.
new tag create(
signal_auth: SignalAuth val,
terminal_auth: TerminalAuth val,
notify: ANSINotify iso,
source: DisposableActor tag,
timers: Timers tag = Timers)
: ANSITerm tag^
Parameters¶
- signal_auth: SignalAuth val
- terminal_auth: TerminalAuth val
- notify: ANSINotify iso
- source: DisposableActor tag
- timers: Timers tag = Timers
Returns¶
- ANSITerm tag^
Public Behaviours¶
apply¶
Receives input from stdin.
Parameters¶
prompt¶
Pass a prompt along to the notifier.
Parameters¶
- value: String val
size¶
dispose¶
Stop accepting input, inform the notifier we have closed, dispose of our source, restore the terminal mode, and remove our signal handlers.