=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/talk/display.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/talk/display.c 2002/06/20 10:18:29 1.11 --- src/usr.bin/talk/display.c 2002/06/20 19:25:55 1.12 *************** *** 1,4 **** ! /* $OpenBSD: display.c,v 1.11 2002/06/20 10:18:29 form Exp $ */ /* $NetBSD: display.c,v 1.3 1994/12/09 02:14:13 jtc Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: display.c,v 1.12 2002/06/20 19:25:55 millert Exp $ */ /* $NetBSD: display.c,v 1.3 1994/12/09 02:14:13 jtc Exp $ */ /* *************** *** 38,44 **** #if 0 static char sccsid[] = "@(#)display.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: display.c,v 1.11 2002/06/20 10:18:29 form Exp $"; #endif /* not lint */ /* --- 38,44 ---- #if 0 static char sccsid[] = "@(#)display.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: display.c,v 1.12 2002/06/20 19:25:55 millert Exp $"; #endif /* not lint */ /* *************** *** 54,59 **** --- 54,60 ---- int curses_initialized = 0; int high_print = 0; + bool smooth_scroll = FALSE; /* * max HAS to be a function, it is called with *************** *** 200,210 **** win->x_col = 0; return; } - win->x_line = (win->x_line + 1) % win->x_nlines; win->x_col = 0; ! wmove(win->x_win, win->x_line, win->x_col); ! wclrtoeol(win->x_win); ! wmove(win->x_win, (win->x_line + 1) % win->x_nlines, win->x_col); ! wclrtoeol(win->x_win); wmove(win->x_win, win->x_line, win->x_col); } --- 201,219 ---- win->x_col = 0; return; } win->x_col = 0; ! if (smooth_scroll) { ! if (++win->x_line == win->x_nlines) { ! --win->x_line; ! scroll(win->x_win); ! } ! } else { ! win->x_line = (win->x_line + 1) % win->x_nlines; ! wmove(win->x_win, win->x_line, win->x_col); ! wclrtoeol(win->x_win); ! wmove(win->x_win, (win->x_line + 1) % win->x_nlines, ! win->x_col); ! wclrtoeol(win->x_win); ! } wmove(win->x_win, win->x_line, win->x_col); }