1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00
profanity/console_win.c
2012-02-08 23:55:11 +00:00

19 lines
334 B
C

#include <ncurses.h>
#include "windows.h"
static WINDOW *cons_win;
void create_console_window(void)
{
int rows, cols;
getmaxyx(stdscr, rows, cols);
cons_win = newwin(rows-3, cols, 1, 0);
scrollok(cons_win, TRUE);
waddstr(cons_win, "Welcome to Profanity.\n");
touchwin(cons_win);
wrefresh(cons_win);
}