aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-11-07 09:04:50 -0600
committerRob Landley <rob@landley.net>2013-11-07 09:04:50 -0600
commit10bdaa42275810fa2828a7e6235a219779e1d85b (patch)
treecd2c6baff0c25e2f23fb6ddeb8f9690033104294 /lib/lib.h
parent938b830abadd2a9dd4260bea3636e188f925959e (diff)
downloadtoybox-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.h b/lib/lib.h
index ef688a32..94884156 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -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));