diff options
| author | Luigi Rizzo <luigi@FreeBSD.org> | 2002-07-14 14:08:43 +0000 |
|---|---|---|
| committer | Luigi Rizzo <luigi@FreeBSD.org> | 2002-07-14 14:08:43 +0000 |
| commit | 8aed91ca2d46abbb70b137563a0854f53eec779c (patch) | |
| tree | 63a7f7e188dee3e5f39571b55ec4eb9e63b1c633 /usr.bin/talk/display.c | |
| parent | 91ebab188738ac05034afd7e0ceaaa8694f4a1db (diff) | |
Notes
Diffstat (limited to 'usr.bin/talk/display.c')
| -rw-r--r-- | usr.bin/talk/display.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/usr.bin/talk/display.c b/usr.bin/talk/display.c index 7bdf38ea8c84..789467ee0271 100644 --- a/usr.bin/talk/display.c +++ b/usr.bin/talk/display.c @@ -85,6 +85,18 @@ display(win, text, size) text++; continue; } + if (*text == 004 && win == &my_win) { + /* control-D clears the screen */ + werase(my_win.x_win); + getyx(my_win.x_win, my_win.x_line, my_win.x_col); + wrefresh(my_win.x_win); + werase(his_win.x_win); + getyx(his_win.x_win, his_win.x_line, his_win.x_col); + wrefresh(his_win.x_win); + text++; + continue; + } + /* erase character */ if ( *text == win->cerase || *text == 010 /* BS */ |
