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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
*** aclocal.m4.bak Mon Aug 25 12:04:06 1997
--- aclocal.m4 Thu Aug 28 15:10:03 1997
***************
*** 667,673 ****
fi
done
AC_TRY_LINK([#include <$cf_cv_ncurses_header>],
! [initscr()],
[AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)
LIBS="$cf_ncurses_SAVE"])
--- 667,673 ----
fi
done
AC_TRY_LINK([#include <$cf_cv_ncurses_header>],
! [initscr(); tgoto((char *)0, 0, 0);],
[AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)
LIBS="$cf_ncurses_SAVE"])
*** configure.bak Mon Aug 25 12:08:13 1997
--- configure Thu Aug 28 15:10:03 1997
***************
*** 2822,2828 ****
#include "confdefs.h"
#include <$cf_cv_ncurses_header>
int main() {
! initscr()
; return 0; }
EOF
if { (eval echo configure:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
--- 2822,2828 ----
#include "confdefs.h"
#include <$cf_cv_ncurses_header>
int main() {
! initscr(); tgoto((char *)0, 0, 0);
; return 0; }
EOF
if { (eval echo configure:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
*** ./include/autoconf.hin.orig Mon Aug 25 14:34:35 1997
--- ./include/autoconf.hin Thu Aug 28 14:59:58 1997
***************
*** 269,274 ****
--- 269,275 ----
* Define a symbol to control whether we use curses, or the termcap/terminfo
* interface
*/
+ #undef NCURSESHEADER
#undef USE_CURSES
#undef USE_TRACE
*** ./include/tcurses.h.orig Mon Aug 25 14:34:35 1997
--- ./include/tcurses.h Thu Aug 28 14:59:59 1997
***************
*** 18,24 ****
--- 18,28 ----
#if USE_CURSES
+ #ifdef NCURSESHEADER
+ #include <ncurses.h>
+ #else
#include <curses.h>
+ #endif
#if USE_TRACE
#if HAVE_NOMACROS_H
*** ./src/tcurses.c.orig Mon Aug 25 14:34:35 1997
--- ./src/tcurses.c Thu Aug 28 14:59:59 1997
***************
*** 64,70 ****
if (has_colors()) {
start_color();
}
! #ifdef NCURSES_VERSION
(void) mousemask(
(BUTTON1_CLICKED|BUTTON2_CLICKED|BUTTON3_CLICKED),
(mmask_t *)0);
--- 64,70 ----
if (has_colors()) {
start_color();
}
! #ifdef NCURSES_MOUSE_VERSION
(void) mousemask(
(BUTTON1_CLICKED|BUTTON2_CLICKED|BUTTON3_CLICKED),
(mmask_t *)0);
***************
*** 79,84 ****
--- 79,85 ----
{
TRACE(("InitWin"))
Raw(TRUE); /* FIXME */
+ cmd_line = FALSE;
}
/*
***************
*** 198,204 ****
ch = cmdReadCh();
else {
ch = getch();
! if (ch == ESC || ch >= KEY_MIN) {
ungetch(ch);
ch = ESC;
}
--- 199,207 ----
ch = cmdReadCh();
else {
ch = getch();
! if (ch == KEY_BACKSPACE)
! ch = '\010'; /* fix for Ctrl-H - show headers */
! else if (ch == ESC || ch >= KEY_MIN) {
ungetch(ch);
ch = ESC;
}
***************
*** 239,245 ****
if (cmd_line)
fputc (ch, fp);
else
! addch (ch);
}
void
--- 242,248 ----
if (cmd_line)
fputc (ch, fp);
else
! addch ((unsigned char) ch);
}
void
*** ./src/misc.c.orig Mon Aug 25 14:34:36 1997
--- ./src/misc.c Thu Aug 28 15:00:01 1997
***************
*** 1342,1350 ****
int code = KEYMAP_UNKNOWN;
switch (ch) {
- case KEY_BACKSPACE:
- code = '\b';
- break;
case KEY_DC:
code = KEYMAP_DEL;
break;
--- 1342,1347 ----
|