Get the terminal size at startup with ioctl() and use it. Fixes at least

NetBSD.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2616 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-03-14 23:46:48 +00:00 committed by cras
commit 6a89217d6a
3 changed files with 37 additions and 22 deletions

View file

@ -30,6 +30,9 @@ extern int term_use_colors, term_type, term_detached;
int term_init(void);
void term_deinit(void);
/* Gets the current terminal size, returns TRUE if ok. */
int term_get_size(int *width, int *height);
/* Resize terminal - if width or height is negative,
the new size is unknown and should be figured out somehow */
void term_resize(int width, int height);