summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--chat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/chat.c b/chat.c
index ecf7267..003c19d 100644
--- a/chat.c
+++ b/chat.c
@@ -49,6 +49,7 @@ static void curse(void) {
 	}
 }
 
+static const int TOPIC_COLS = 512;
 static const int CHAT_LINES = 100;
 static struct {
 	WINDOW *topic;
@@ -57,8 +58,8 @@ static struct {
 } ui;
 
 static void uiInit(void) {
-	ui.topic = newwin(2, COLS, 0, 0);
-	mvwhline(ui.topic, 1, 0, ACS_HLINE, COLS);
+	ui.topic = newpad(2, TOPIC_COLS);
+	mvwhline(ui.topic, 1, 0, ACS_HLINE, TOPIC_COLS);
 
 	ui.chat = newpad(CHAT_LINES, COLS);
 	wsetscrreg(ui.chat, 0, CHAT_LINES - 1);
@@ -73,7 +74,7 @@ static void uiInit(void) {
 }
 
 static void uiDraw(void) {
-	wnoutrefresh(ui.topic);
+	pnoutrefresh(ui.topic, 0, 0, 0, 0, 1, COLS - 1);
 	pnoutrefresh(
 		ui.chat,
 		CHAT_LINES - (LINES - 4), 0,
p git configJune McEnroe 2017-05-01Clean up style in xxJune McEnroe 2017-05-01Clean up style in pbdJune McEnroe 2017-05-01Use EX_OK in pbcopyJune McEnroe 2017-04-30Clean up clockJune McEnroe 2017-04-30Clean up error strings in briJune McEnroe 2017-03-18Add -u option to xxJune McEnroe 2017-03-15Fix non-string-literal-format-string in briJune McEnroe 2017-03-15Fix bri compilationJune McEnroe 2017-03-15Use psvar for title settingJune McEnroe 2017-03-14Add bri brightness control scriptJune McEnroe 2017-03-14Add comment to tmux terminal overrideJune McEnroe 2017-03-13Have tmux set block cursor on linux consoleJune McEnroe 2017-03-13Use inverse for Visual in colorschemeJune McEnroe