HomeManualTopicsTypesSymbols

std::get_terminal_size

retrieves the current width and height of the specified terminal

Parameter

fd
the file descriptor of the terminal

Results

width
the width of the terminal
height
the height of the terminal

Example

get_terminal_size! STDIN_FILENO $width $height

Topic

Terminal

Implemented by

std_types::file_descriptor retrieves the current width and height of the terminal