diff options
author | Mark Murray <markm@FreeBSD.org> | 2001-12-11 23:51:14 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 2001-12-11 23:51:14 +0000 |
commit | caa648017bbb26224de634bf4c9b6a9932e34e1d (patch) | |
tree | f29bbbc79d4e1b190fcac1c308cb1862054576e2 /usr.bin/talk/display.c | |
parent | ed155aba4aeaf9a231a00942c45665c130ab030b (diff) | |
download | src-test2-caa648017bbb26224de634bf4c9b6a9932e34e1d.tar.gz src-test2-caa648017bbb26224de634bf4c9b6a9932e34e1d.zip |
Notes
Diffstat (limited to 'usr.bin/talk/display.c')
-rw-r--r-- | usr.bin/talk/display.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/usr.bin/talk/display.c b/usr.bin/talk/display.c index 16c7605d447d..7bdf38ea8c84 100644 --- a/usr.bin/talk/display.c +++ b/usr.bin/talk/display.c @@ -31,21 +31,22 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> + +__FBSDID("$FreeBSD$"); + #ifndef lint -#if 0 -static char sccsid[] = "@(#)display.c 8.1 (Berkeley) 6/6/93"; +static const char sccsid[] = "@(#)display.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = - "$FreeBSD$"; -#endif /* not lint */ /* * The window 'manager', initializes curses and handles the actual * displaying of text */ -#include "talk.h" #include <ctype.h> +#include "talk.h" + xwin_t my_win; xwin_t his_win; WINDOW *line_win; @@ -70,11 +71,11 @@ max(a,b) */ void display(win, text, size) - register xwin_t *win; - register char *text; + xwin_t *win; + char *text; int size; { - register int i; + int i; char cch; for (i = 0; i < size; i++) { @@ -105,7 +106,7 @@ display(win, text, size) if ( *text == win->werase || *text == 027 /* ^W */ ) { - int endcol, xcol, i, c; + int endcol, xcol, ii, c; endcol = win->x_col; xcol = endcol - 1; @@ -122,7 +123,7 @@ display(win, text, size) xcol--; } wmove(win->x_win, win->x_line, xcol + 1); - for (i = xcol + 1; i < endcol; i++) + for (ii = xcol + 1; ii < endcol; ii++) waddch(win->x_win, ' '); wmove(win->x_win, win->x_line, xcol + 1); getyx(win->x_win, win->x_line, win->x_col); @@ -173,7 +174,7 @@ readwin(win, line, col) int col; { int oldline, oldcol; - register int c; + int c; getyx(win, oldline, oldcol); wmove(win, line, col); |