1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Fix curses clear() usage.

This commit is contained in:
David E. O'Brien 2000-11-03 11:02:31 +00:00
parent a035d72c61
commit 1070a9f5d2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34720
3 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,7 @@
--- funcs.h.orig Mon Feb 24 12:45:37 1992
+++ funcs.h Sat May 20 01:41:19 2000
@@ -54,3 +54,3 @@
public void vbell ();
- public void clear ();
+ public void clearscr ();
public void clear_eol ();

View File

@ -0,0 +1,38 @@
--- prim.c.orig Mon Feb 24 12:45:40 1992
+++ prim.c Sat May 20 01:42:18 2000
@@ -110,7 +110,7 @@
* but we don't yet know if that will happen. }}
*/
if (top_scroll == 2)
- clear();
+ clearscr();
home();
force = 1;
} else
@@ -132,7 +132,7 @@
if (top_scroll)
{
if (top_scroll == 2)
- clear();
+ clearscr();
home();
} else if (!first_time)
{
@@ -352,7 +352,7 @@
}
lastmark();
pos = ch_tell();
- clear();
+ clearscr();
pos_clear();
add_back_pos(pos);
back(sc_height - 1, pos, 0, 0);
@@ -503,7 +503,7 @@
* More than a screenful back.
*/
lastmark();
- clear();
+ clearscr();
pos_clear();
add_back_pos(npos);
}

View File

@ -0,0 +1,9 @@
--- screen.c.orig Mon Feb 24 12:45:41 1992
+++ screen.c Sat May 20 01:40:56 2000
@@ -481,5 +481,5 @@
*/
public void
-clear()
+clearscr()
{
tputs(sc_clear, sc_height, putchr);