+/* $NetBSD: curses.c,v 1.4 1997/10/12 11:45:01 lukem Exp $ */
+
/*
- * Copyright (c) 1988 The Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1988, 1993
+ * The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Timothy C. Stoehr.
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
-/*static char sccsid[] = "from: @(#)curses.c 5.3 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: curses.c,v 1.2 1993/08/01 18:52:32 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)curses.c 8.1 (Berkeley) 5/31/93";
+#else
+__RCSID("$NetBSD: curses.c,v 1.4 1997/10/12 11:45:01 lukem Exp $");
+#endif
#endif /* not lint */
/*
}
addch(ch)
-register int ch;
+ int ch;
{
short row, col;
refresh()
{
- register i, j, line;
+ int i, j, line;
short old_row, old_col, first_row;
if (screen_dirty) {
clear_buffers()
{
- register i, j;
+ int i, j;
screen_dirty = 0;
}
put_char_at(row, col, ch)
-register row, col, ch;
+ int row, col, ch;
{
put_cursor(row, col);
put_st_char(ch);
}
put_cursor(row, col)
-register row, col;
+ int row, col;
{
- register i, rdif, cdif;
+ int i, rdif, cdif;
short ch, t;
rdif = (row > cur_row) ? row - cur_row : cur_row - row;
}
put_st_char(ch)
-register ch;
+ int ch;
{
if ((ch & ST_MASK) && (!term_stand_out)) {
ch &= ~ST_MASK;
cm_end[j] = 0;
}
-#endif
+#endif /* CURSES */