class Opal::Terminal::PosixDriver

Overview

POSIX (Linux/macOS) terminal driver using termios and ioctl.

Defined in:

opal/terminal/posix.cr

Constructors

Instance Method Summary

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

def self.new(output : IO = STDOUT, input : IO = STDIN) #

[View source]

Instance Method Detail

def flush : Nil #

[View source]
def poll_event(timeout_ms : Int32 = 0) : KeyEvent | MouseEvent | ResizeEvent | Nil #
Description copied from class Opal::Terminal::Driver

Non-blocking or timed check for input/resize events.


[View source]
def raw_mode(&) #

[View source]
def size : Tuple(Int32, Int32) #

[View source]
def write(str : String) : Nil #

[View source]