Open Sidebar
Close Sidebar
termisu
main
Top Level Namespace
MonotonicTime
Termisu
Attribute
Buffer
Cell
Color
Conversions
Formatters
Mode
Palette
Validator
Error
Event
Any
Key
Loop
ModeChange
Mouse
Button
Protocol
Poller
FDEvents
Linux
Poll
PollResult
Type
TimerHandle
Preedit
Resize
Source
Input
Resize
SizeProvider
SystemTimer
Timer
Tick
FFI
ColorMode
Context
Conversions
ErrorState
EventType
Guards
Layout
Registry
Runtime
Status
Input
Key
KeySymbolMaps
Modifier
ModifierBits
Parser
InputOwnershipError
IOError
Logging
Logs
ModeScopeGate
ParseError
Type
Reader
Renderer
RenderState
System
Readiness
Terminal
Backend
Cursor
Shape
Mode
TerminalInUseError
TerminalOwnership
Terminfo
Builtin
Capabilities
Database
Parser
Tparm
Conditional
Operations
Output
Processor
Variables
Termios
Testing
Pty
Screen
Terminal
TTY
UnicodeWidth
class
Termisu::
TTY
Termisu::TTY
Reference
Object
Overview
Owns terminal I/O independently of redirected standard streams.
Defined in:
termisu/tty.cr
Constructors
.new
Instance Method Summary
#close
#flush
#infd
: Int32
#outfd
: Int32
#write
(data : String)
#write
(data : Bytes)
Constructor Detail
def self.
new
#
[
View source
]
Instance Method Detail
def
close
#
[
View source
]
def
flush
#
[
View source
]
def
infd
: Int32
#
[
View source
]
def
outfd
: Int32
#
[
View source
]
def
write
(data : String)
#
[
View source
]
def
write
(data : Bytes)
#
[
View source
]