diff options
author | Rob Landley <rob@landley.net> | 2013-11-07 09:04:50 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-11-07 09:04:50 -0600 |
commit | 10bdaa42275810fa2828a7e6235a219779e1d85b (patch) | |
tree | cd2c6baff0c25e2f23fb6ddeb8f9690033104294 /lib/lib.h | |
parent | 938b830abadd2a9dd4260bea3636e188f925959e (diff) | |
download | toybox-10bdaa42275810fa2828a7e6235a219779e1d85b.tar.gz |
Tweak terminal_size to never set either to 0, and return true/false whether it could determine at least one coordinate.
(If you set $COLUMNS but not $ROWS, we assume you're happy with the 80x25 default for the other.)
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -156,7 +156,7 @@ int copy_tempfile(int fdin, char *name, char **tempname); void delete_tempfile(int fdin, int fdout, char **tempname); void replace_tempfile(int fdin, int fdout, char **tempname); void crc_init(unsigned int *crc_table, int little_endian); -void terminal_size(unsigned *x, unsigned *y); +int terminal_size(unsigned *x, unsigned *y); int yesno(char *prompt, int def); void names_to_pid(char **names, int (*callback)(pid_t pid, char *name)); |