class
TermBuf::CursorIO
- TermBuf::CursorIO
- IO
- Reference
- Object
Overview
An IO bound to a Cursor.
Unbuffered by default, so what is written has reached the buffer by the time
the call returns and the next paint shows it. An application streaming
enough text for the command traffic to matter can set sync = false, which
gathers writes until a newline or a #flush.
Included Modules
- IO::Buffered
Defined in:
termbuf/cursor.crConstructors
Instance Method Summary
-
#cursor : Cursor
Where this writes.
-
#unbuffered_close : Nil
Closes the wrapped
IO. -
#unbuffered_flush : Nil
Flushes the wrapped
IO. -
#unbuffered_read(slice : Bytes) : Int32
Always raises.
-
#unbuffered_rewind : Nil
Always raises, for the same reason as
#unbuffered_read. -
#unbuffered_write(slice : Bytes) : Nil
Writes slice entirely into the wrapped
IO.
Constructor Detail
Instance Method Detail
def unbuffered_close : Nil
#
Description copied from module IO::Buffered
Closes the wrapped IO.
TODO Add return type restriction Nil
def unbuffered_flush : Nil
#
Description copied from module IO::Buffered
Flushes the wrapped IO.
TODO Add return type restriction Nil
def unbuffered_read(slice : Bytes) : Int32
#
Always raises. A cursor is somewhere to put text, not somewhere to get it.
def unbuffered_write(slice : Bytes) : Nil
#
Description copied from module IO::Buffered
Writes slice entirely into the wrapped IO.
TODO Add return type restriction Nil