Term::Screen
Constants
DEFAULT_SIZE = {27, 80}
Default terminal size
VERSION = "1.0.0"
Class methods
env
Sourceenv=(env : Hash(String, String))
Sourceoutput
Sourceoutput=(output : IO)
SourceInstance methods
cols
Sourcecolumns
Sourceheight
Sourcelines
Sourcerows
Sourcesize_from_env
Detect terminal size from environment
After executing Crystal code if the user changes terminal dimensions during code runtime, the code won't be notified, and hence won't see the new dimensions reflected in its copy of LINES and COLUMNS environment variables.
size_from_win_api
Sourcewidth
Source