diff options
author | Rob Landley <rob@landley.net> | 2005-09-01 02:57:45 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2005-09-01 02:57:45 +0000 |
commit | e0537f6194cf37651c6e7ac3033226f09dab7557 (patch) | |
tree | 38d91900ec491f8ad099c0e057efe88de0937336 /include | |
parent | 37adefc670eb9c0a8989d1b8a982e00644c566ee (diff) | |
download | busybox-w32-e0537f6194cf37651c6e7ac3033226f09dab7557.tar.gz busybox-w32-e0537f6194cf37651c6e7ac3033226f09dab7557.tar.bz2 busybox-w32-e0537f6194cf37651c6e7ac3033226f09dab7557.zip |
Bernhard Fischer suggested that get_terminal_width_height() should return
the result of the ioctl so callers can tell if we have a tty. (0 means
we have a tty, nonzero means the ioctl couldn't find size info and we
fake 80x24. Really we should fake 80x25, but oh well...)
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 14670f026..077b310b6 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -474,7 +474,7 @@ extern void print_login_prompt(void); | |||
474 | 474 | ||
475 | extern void vfork_daemon_rexec(int nochdir, int noclose, | 475 | extern void vfork_daemon_rexec(int nochdir, int noclose, |
476 | int argc, char **argv, char *foreground_opt); | 476 | int argc, char **argv, char *foreground_opt); |
477 | extern void get_terminal_width_height(int fd, int *width, int *height); | 477 | extern int get_terminal_width_height(int fd, int *width, int *height); |
478 | extern unsigned long get_ug_id(const char *s, long (*my_getxxnam)(const char *)); | 478 | extern unsigned long get_ug_id(const char *s, long (*my_getxxnam)(const char *)); |
479 | extern void xregcomp(regex_t *preg, const char *regex, int cflags); | 479 | extern void xregcomp(regex_t *preg, const char *regex, int cflags); |
480 | 480 | ||