class
Opal::Terminal::PosixDriver
- Opal::Terminal::PosixDriver
- Opal::Terminal::Driver
- Reference
- Object
Overview
POSIX (Linux/macOS) terminal driver using termios and ioctl.
Defined in:
opal/terminal/posix.crConstructors
Instance Method Summary
- #flush : Nil
-
#poll_event(timeout_ms : Int32 = 0) : KeyEvent | MouseEvent | ResizeEvent | Nil
Non-blocking or timed check for input/resize events.
- #raw_mode(&)
- #size : Tuple(Int32, Int32)
- #write(str : String) : Nil
Instance methods inherited from class Opal::Terminal::Driver
check_resize : ResizeEvent | Nil
check_resize,
clear : Nil
clear,
disable_mouse : Nil
disable_mouse,
enable_mouse : Nil
enable_mouse,
enter_alternate_screen : Nil
enter_alternate_screen,
exit_alternate_screen : Nil
exit_alternate_screen,
flush : Nil
flush,
flush_input : Nil
flush_input,
hide_cursor : Nil
hide_cursor,
input : IO
input,
input=(input : IO)
input=,
move_to(row : Int32, col : Int32) : Nil
move_to,
on_resize : Proc(Int32, Int32, Nil) | Nil
on_resize,
on_resize=(on_resize : Proc(Int32, Int32, Nil) | Nil)
on_resize=,
output : IO
output,
output=(output : IO)
output=,
poll_event(timeout_ms : Int32 = 0) : KeyEvent | MouseEvent | ResizeEvent | Nil
poll_event,
raw_mode(&)
raw_mode,
read_event : KeyEvent | MouseEvent | ResizeEvent | Nil
read_event,
show_cursor : Nil
show_cursor,
size : Tuple(Int32, Int32)
size,
write(str : String) : Nil
write
Constructor methods inherited from class Opal::Terminal::Driver
new(output : IO = STDOUT, input : IO = STDIN)
new
Constructor Detail
Instance Method Detail
Description copied from class Opal::Terminal::Driver
Non-blocking or timed check for input/resize events.