42#ifndef HAVE_TCGETWINSIZE
43#ifdef HAVE_SYS_IOCTL_H
58 struct winsize w = { 0 };
60 int fd = open(
"/dev/tty", O_RDONLY);
63#ifdef HAVE_TCGETWINSIZE
66 ioctl(fd, TIOCGWINSZ, &w);
80 int screenrows = w.ws_row;
81 int screencols = w.ws_col;
86 if (cp && !mutt_str_atoi_full(cp, &screenrows))
93 if (cp && !mutt_str_atoi_full(cp, &screencols))
97 resizeterm(screenrows, screencols);
Convenience wrapper for the library headers.
const char * mutt_str_getenv(const char *name)
Get an environment variable.
Define wrapper functions around Curses.
void window_notify_all(struct MuttWindow *win)
Notify observers of changes to a Window and its children.
void mutt_resize_screen(void)
Update NeoMutt's opinion about the window size.
static struct winsize mutt_get_winsize(void)
Get the window size.
void rootwin_set_size(int cols, int rows)
Set the dimensions of the Root Window.