mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
9 lines
283 B
V
9 lines
283 B
V
|
module term
|
||
|
|
||
|
// get_terminal_size returns a number of colums and rows of terminal window.
|
||
|
pub fn get_terminal_size() (int, int) {
|
||
|
// TODO Find a way to get proper width & height of the terminal
|
||
|
// on a Javascript environment
|
||
|
return default_columns_size, default_rows_size
|
||
|
}
|