diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-03-28 19:48:45 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-03-28 19:48:45 +0000 |
| commit | b02b5aada36c10bc26cb5ee1e66119207d51b253 (patch) | |
| tree | 7efba3dfc1abba915c8669fadae336b5e26bae6b /usr.bin/talk | |
| parent | 56f6016de9949c6067c506ce57cdeb3d505fef12 (diff) | |
Notes
Diffstat (limited to 'usr.bin/talk')
| -rw-r--r-- | usr.bin/talk/invite.c | 4 | ||||
| -rw-r--r-- | usr.bin/talk/io.c | 11 |
2 files changed, 8 insertions, 7 deletions
diff --git a/usr.bin/talk/invite.c b/usr.bin/talk/invite.c index ae73539499e7..16fc4e603884 100644 --- a/usr.bin/talk/invite.c +++ b/usr.bin/talk/invite.c @@ -122,7 +122,9 @@ re_invite() { message("Ringing your party again"); - current_line++; + waddch(my_win.x_win, '\n'); + if (current_line < my_win.x_nlines - 1) + current_line++; /* force a re-announce */ msg.id_num = htonl(remote_id + 1); announce_invite(); diff --git a/usr.bin/talk/io.c b/usr.bin/talk/io.c index 5ba6f97cc7c2..e9f04809f240 100644 --- a/usr.bin/talk/io.c +++ b/usr.bin/talk/io.c @@ -118,7 +118,7 @@ extern int sys_nerr; p_error(string) char *string; { - wmove(my_win.x_win, current_line%my_win.x_nlines, 0); + wmove(my_win.x_win, current_line, 0); wprintw(my_win.x_win, "[%s : %s (%d)]\n", string, strerror(errno), errno); wrefresh(my_win.x_win); @@ -133,10 +133,9 @@ p_error(string) message(string) char *string; { - wmove(my_win.x_win, current_line % my_win.x_nlines, 0); - wprintw(my_win.x_win, "[%s]", string); - wclrtoeol(my_win.x_win); - current_line++; - wmove(my_win.x_win, current_line % my_win.x_nlines, 0); + wmove(my_win.x_win, current_line, 0); + wprintw(my_win.x_win, "[%s]\n", string); + if (current_line < my_win.x_nlines - 1) + current_line++; wrefresh(my_win.x_win); } |
