mirror of
https://github.com/urbit/shrub.git
synced 2024-12-12 18:48:14 +03:00
Adding terminal guard around tty column/row calculations
This commit is contained in:
parent
e8f133d532
commit
db0b7acd13
@ -919,10 +919,13 @@ u3_term_get_blew(c3_l tid_l)
|
||||
c3_l col_l, row_l;
|
||||
|
||||
struct winsize siz_u;
|
||||
if ( uty_u && (0 == ioctl(uty_u->fid_i, TIOCGWINSZ, &siz_u)) ) {
|
||||
if ( (c3y == u3_Host.ops_u.tem) &&
|
||||
uty_u && (0 == ioctl(uty_u->fid_i, TIOCGWINSZ, &siz_u)) )
|
||||
{
|
||||
col_l = siz_u.ws_col;
|
||||
row_l = siz_u.ws_row;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
col_l = 80;
|
||||
row_l = 24;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user