Don't allow talk own messages wrap around on the screen, just

scroll them like normal user input/output does.
This commit is contained in:
Andrey A. Chernov 1995-03-28 19:48:45 +00:00
parent 56f6016de9
commit b02b5aada3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7451
2 changed files with 8 additions and 7 deletions

View File

@ -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();

View File

@ -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);
}