diff options
author | James Booth <boothj5@gmail.com> | 2014-11-11 00:54:10 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-11-11 00:54:10 +0000 |
commit | 7e360dc35a30bd20ba34239949e461159417182a (patch) | |
tree | a31e1b139fc65226bd04da5a8ab3d54d68716b67 | |
parent | a45cb4bb3c10bf9ed9f2c0df1ec706efd79052f4 (diff) | |
download | profani-tty-7e360dc35a30bd20ba34239949e461159417182a.tar.gz |
Fixed printing utf8 chats to roster, changed boothj5 theme
-rw-r--r-- | src/ui/window.c | 6 | ||||
-rw-r--r-- | themes/boothj5 | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index fa02ff95..bf7afe74 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -681,9 +681,7 @@ win_printline_nowrap(WINDOW *win, char *msg) int maxx = getmaxx(win); int cury = getcury(win); - int i = 0; - for (i = 0; i<strlen(msg) && i<maxx; i++) { - waddch(win, msg[i]); - } + waddnstr(win, msg, maxx); + wmove(win, cury+1, 0); } \ No newline at end of file diff --git a/themes/boothj5 b/themes/boothj5 index 1499a478..19ef3549 100644 --- a/themes/boothj5 +++ b/themes/boothj5 @@ -16,10 +16,10 @@ main.time=yellow main.splash=red online=green away=cyan -chat=green +chat=white dnd=red xa=cyan -offline=red +offline=blue typing=yellow gone=red error=red |