module Term::Screen
Extended Modules
Defined in:
screen/version.crterm-screen.cr
Constant Summary
-
DEFAULT_SIZE =
{27, 80}
-
Default terminal size
-
TIOCGWINSZ =
21523
-
TIOCGWINSZ_PPC =
1074295912
-
TIOCGWINSZ_SOL =
21608
-
VERSION =
"0.1.0"
Class Method Summary
Instance Method Summary
- #cols
- #columns
- #height
- #lines
- #rows
-
#size
Get terminal dimensions (rows, columns)
-
#size_from_ansicon
Detect terminal size from Windows ANSICON
-
#size_from_default
Default terminal size
-
#size_from_env
Detect terminal size from environment
-
#size_from_ioctl(file)
Read terminal size from Unix ioctl
-
#size_from_readline
Detect screen size using Readline
-
#size_from_stty
Detect terminal size from stty utility
-
#size_from_tput
Detect terminal size from tput utility
- #size_from_win_api
- #width
Class Method Detail
Instance Method Detail
def size_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.