Handles ANSI escape codes from stdin.
actor tag ANSITerm
Create a new ANSI term.
new tag create( notify: ANSINotify iso, source: DisposableActor tag, timers: Timers tag = reference) : ANSITerm tag^
Receives input from stdin.
be apply( data: Array[U8 val] iso)
Pass a prompt along to the notifier.
be prompt( value: String val)
be size()
Stop accepting input, inform the notifier we have closed, and dispose of our source.
be dispose()
Our timer since receiving an ESC has expired. Send the buffered data as if it was not an escape sequence.
be _timeout()
Pass the window size to the notifier.
fun ref _size() : None val
Set the modifier bools.
fun ref _mod() : (Bool val , Bool val , Bool val)
An extended key.
fun ref _keypad() : None val
Up arrow.
fun ref _up() : None val
Down arrow.
fun ref _down() : None val
Left arrow.
fun ref _left() : None val
Right arrow.
fun ref _right() : None val
Delete key.
fun ref _delete() : None val
Insert key.
fun ref _insert() : None val
Home key.
fun ref _home() : None val
End key.
fun ref _end() : None val
Page up key.
fun ref _page_up() : None val
Page down key.
fun ref _page_down() : None val
Function key.
fun ref _fn_key( i: U8 val) : None val
Pass a partial or unrecognised escape sequence to the notifier.
fun ref _esc_flush() : None val
Clear the escape state.
fun ref _esc_clear() : None val
© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/term-ANSITerm