class LxChess::Terminal

Defined in:

lx_chess/terminal.cr

Constant Summary

TIOCGWINSZ = 1074295912

ttycom.h : _IOR('t', 104, struct winsize) ioccom.h : #define _IOC(inout, group, num, len)
(inout | ((len & IOCPARM_MASK) << 16) | ((group) << 8) | (num))

TODO : Figure out how to define this dynamically per system

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(io : IO::FileDescriptor = STDOUT) #

[View source]

Class Method Detail

def self.size #

[View source]

Instance Method Detail

def clear #

[View source]
def clear_scroll #

[View source]
def move(x : Int, y : Int) #

Move cursor to line, column


[View source]
def trunc #

Delete the rest of the line from cursor pos


[View source]