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:
parent
56f6016de9
commit
b02b5aada3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7451
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user