summaryrefslogtreecommitdiff
path: root/games/ularn/patches/patch-bd
blob: f157cd3399260a8ffe6260eba52d54743ce9dc0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
$NetBSD: patch-bd,v 1.1.1.1 2001/04/27 15:27:32 agc Exp $

--- tty.c.orig	Fri Jun 19 13:55:34 1992
+++ tty.c	Sat Jan 13 21:57:04 2001
@@ -55,7 +55,7 @@
 /*
  *	set current tty
  */
-setctty()
+void setctty(void)
 {
 	if (STTY(&curttyb) == -1 )
 		perror("setctty");
@@ -68,7 +68,7 @@
  * and switch off tab expansion if necessary.
  * Called by startup() in termcap.c and after returning from ! or ^Z
  */
-gettty()
+void gettty(void)
 {
 	if (GTTY(&inittyb) == -1) 
 		perror("gettty");
@@ -88,7 +88,7 @@
 }
 
 /* reset terminal to original state */
-settty()
+void settty(void)
 {
 	if (STTY(&inittyb) == -1)
 		perror("settty");
@@ -98,7 +98,7 @@
 	curttyb.inputflags |= STRIPHI;
 }
 
-setuptty()
+void setuptty(void)
 {
 	curttyb.echoflgs &= ~ECHOMASK;
 #ifdef TERMIO
@@ -118,7 +118,7 @@
  *
  *	like: system("stty cbreak -echo")
  */
-scbr ()
+void scbr (void)
 {
 	curttyb.cbrkflgs &= ~ECHOMASK;
 #ifdef TERMIO
@@ -133,7 +133,7 @@
  *	sncbr()		Function to set -cbreak echo for the terminal
  *
  */
-sncbr ()
+void sncbr (void)
 {
 	curttyb.cbrkflgs |= ECHOMASK;
 #ifdef TERMIO
@@ -149,9 +149,9 @@
  *		Subroutine to set up terminal in correct mode for game
  *	Attributes off, clear screen, set scrolling region, set tty mode 
  */
-setupvt100 ()
+void setupvt100 (void)
 {
-	clear();  
+	ularn_clear();  
 	setscroll();  
 	gettty();
 }
@@ -161,7 +161,7 @@
  *		Subroutine to clean up terminal when the game is over
  *	Attributes off, clear screen, unset scrolling region, restore tty mode 
  */
-clearvt100 ()
+void clearvt100 (void)
 {
 	resetscroll();  
 	settty();