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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
$NetBSD: patch-ae,v 1.2 2013/03/02 17:54:52 joerg Exp $
--- charproc.c.orig 2013-03-01 13:07:29.000000000 +0000
+++ charproc.c
@@ -71,6 +71,7 @@ in this Software without prior written a
#define Select select
#endif
#include <stdio.h>
+#include <stdlib.h>
#include <errno.h>
#include <setjmp.h>
#include <ctype.h>
@@ -102,9 +103,6 @@ extern jmp_buf VTend;
extern XtAppContext app_con;
extern Widget toplevel;
-extern void exit();
-extern char *malloc();
-extern char *realloc();
extern fd_set Select_mask;
extern fd_set X_mask;
extern fd_set pty_mask;
@@ -350,12 +348,22 @@ extern void HandleBeginConversion();
extern Boolean SendMousePosition();
extern void ScrnSetAttributes();
+void RevIndex(TScreen *screen, int amount);
+void Index(TScreen *screen, int amount);
+
/*
* NOTE: VTInitialize zeros out the entire ".screen" component of the
* XtermWidget, so make sure to add an assignment statement in VTInitialize()
* for each new ".screen" field added to this resource list.
*/
+static void FromStatus(void);
+void ShowStatus(void);
+void HideStatus(void);
+void EraseStatus(void);
+void HideCursor(void);
+void ShowCursor(void);
+
/* Defaults */
static Boolean defaultFALSE = FALSE;
static Boolean defaultTRUE = TRUE;
@@ -4333,9 +4341,9 @@ static Boolean VTSetValues (cur, request
}
if (curvt->misc.statusline != newvt->misc.statusline) {
if (newvt->misc.statusline) {
- ShowStatus(&newvt->screen);
+ ShowStatus();
} else {
- HideStatus(&newvt->screen);
+ HideStatus();
}
update_statusline();
}
@@ -4347,7 +4355,7 @@ static Boolean VTSetValues (cur, request
/*
* Shows cursor at new cursor position in screen.
*/
-ShowCursor()
+void ShowCursor(void)
{
register TScreen *screen = &term->screen;
register int x, y, flags;
@@ -4471,7 +4479,7 @@ ShowCursor()
/*
* hide cursor at previous cursor position in screen.
*/
-HideCursor()
+void HideCursor(void)
{
register TScreen *screen = &term->screen;
#ifndef KTERM
@@ -4667,7 +4675,7 @@ int col;
screen->cur_col = col;
}
-FromStatus()
+static void FromStatus(void)
{
register TScreen *screen = &term->screen;
@@ -4677,7 +4685,7 @@ FromStatus()
CursorRestore(term, &screen->statussc);
}
-ShowStatus()
+void ShowStatus(void)
{
register TScreen *screen = &term->screen;
@@ -4690,7 +4698,7 @@ ShowStatus()
Height(screen) + screen->border * 2 + screen->statusheight);
}
-HideStatus()
+void HideStatus(void)
{
register TScreen *screen = &term->screen;
# ifndef KTERM
@@ -4716,7 +4724,7 @@ HideStatus()
Height(screen) + screen->border * 2);
}
-EraseStatus()
+void EraseStatus(void)
{
register TScreen *screen = &term->screen;
register int j, pix;
|