Opal::Terminal::MockDriver
Inherits Opal::Terminal::Driver < Reference < Object
In-memory mock terminal driver for headless automated testing.
Constructors
Instance methods
alt_screen?
Sourcecursor_visible?
Sourcedisable_mouse
Sourceenable_mouse
Sourceenter_alternate_screen
Sourceevent_queue
Sourceexit_alternate_screen
Sourceflush
Sourceheight
Sourcehide_cursor
Sourcein_raw_mode?
Sourceinject_key(name : String, char : Char | Nil = nil, ctrl : Bool = false, alt : Bool = false, shift : Bool = false) : self
Injects a key event into the mock input stream
Injects a mouse event
mouse_enabled?
Sourceoutput_io
SourceNon-blocking or timed check for input/resize events.
raw_mode
Sourceread_event
Reads the next key, mouse, or resize event from the terminal, consuming from the internal event queue if multiple events arrived in the same read chunk.
show_cursor
Sourcesize
Sourcewidth
Source