mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
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:
parent
85a1b122cd
commit
6a89217d6a
3 changed files with 37 additions and 22 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue