| 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 |
#ifdef XVIEW |
|---|
| 44 |
#include <xview/xview.h> |
|---|
| 45 |
#include <xview/panel.h> |
|---|
| 46 |
#include <xview/attr.h> |
|---|
| 47 |
#include <xview/tty.h> |
|---|
| 48 |
#include <xview/ttysw.h> |
|---|
| 49 |
#include <xview/termsw.h> |
|---|
| 50 |
#include <xview/font.h> |
|---|
| 51 |
#else |
|---|
| 52 |
#include <suntool/sunview.h> |
|---|
| 53 |
#include <suntool/tty.h> |
|---|
| 54 |
#include <suntool/ttysw.h> |
|---|
| 55 |
#endif XVIEW |
|---|
| 56 |
|
|---|
| 57 |
#ifdef JLE |
|---|
| 58 |
# include <locale.h> |
|---|
| 59 |
#endif JLE |
|---|
| 60 |
|
|---|
| 61 |
#include <stdio.h> |
|---|
| 62 |
#include <sys/file.h> |
|---|
| 63 |
|
|---|
| 64 |
#define BUFFER_SIZE 128 |
|---|
| 65 |
|
|---|
| 66 |
|
|---|
| 67 |
#define WANT_CAPS_LOCK |
|---|
| 68 |
#ifdef WANT_CAPS_LOCK |
|---|
| 69 |
int caps_lock; |
|---|
| 70 |
static char *Caps = "[CAPS] "; |
|---|
| 71 |
#define CAPS_LEN 7 |
|---|
| 72 |
#endif |
|---|
| 73 |
|
|---|
| 74 |
static char *mouse_prefix = "\030\000"; |
|---|
| 75 |
static int m_prefix_length = 2; |
|---|
| 76 |
|
|---|
| 77 |
static char *key_prefix = "\030*"; |
|---|
| 78 |
static int k_prefix_length = 2; |
|---|
| 79 |
|
|---|
| 80 |
#ifdef JLE |
|---|
| 81 |
static char *emacs_name = "nemacs"; |
|---|
| 82 |
static char *title = "NEmacstool - "; |
|---|
| 83 |
#else |
|---|
| 84 |
static char *emacs_name = "emacs"; |
|---|
| 85 |
static char *title = "Emacstool - "; |
|---|
| 86 |
#endif JLE |
|---|
| 87 |
|
|---|
| 88 |
static char buffer[BUFFER_SIZE]; |
|---|
| 89 |
static char *bold_name = 0; |
|---|
| 90 |
|
|---|
| 91 |
Frame frame; |
|---|
| 92 |
|
|---|
| 93 |
#ifndef TTERM |
|---|
| 94 |
#define SWTYPE TTY |
|---|
| 95 |
Tty tty_win; |
|---|
| 96 |
#else |
|---|
| 97 |
#define SWTYPE TERMSW |
|---|
| 98 |
Termsw tty_win; |
|---|
| 99 |
#endif TTERM |
|---|
| 100 |
|
|---|
| 101 |
#ifdef XVIEW |
|---|
| 102 |
Xv_Window tty_view; |
|---|
| 103 |
#else |
|---|
| 104 |
Tty tty_view; |
|---|
| 105 |
#endif XVIEW |
|---|
| 106 |
|
|---|
| 107 |
int font_width, font_height; |
|---|
| 108 |
int left_margin = 0; |
|---|
| 109 |
|
|---|
| 110 |
int console_fd = 0; |
|---|
| 111 |
FILE *console; |
|---|
| 112 |
|
|---|
| 113 |
Icon frame_icon; |
|---|
| 114 |
|
|---|
| 115 |
static short default_image[258] = |
|---|
| 116 |
{ |
|---|
| 117 |
#include <images/terminal.icon> |
|---|
| 118 |
}; |
|---|
| 119 |
mpr_static(icon_image, 64, 64, 1, default_image); |
|---|
| 120 |
|
|---|
| 121 |
|
|---|
| 122 |
|
|---|
| 123 |
|
|---|
| 124 |
int |
|---|
| 125 |
button_value (event) |
|---|
| 126 |
Event *event; |
|---|
| 127 |
{ |
|---|
| 128 |
int retval = 0; |
|---|
| 129 |
|
|---|
| 130 |
|
|---|
| 131 |
|
|---|
| 132 |
|
|---|
| 133 |
|
|---|
| 134 |
|
|---|
| 135 |
|
|---|
| 136 |
|
|---|
| 137 |
|
|---|
| 138 |
|
|---|
| 139 |
|
|---|
| 140 |
|
|---|
| 141 |
|
|---|
| 142 |
if (MS_LEFT == (event_id (event))) retval = 1; |
|---|
| 143 |
if (MS_MIDDLE == (event_id (event))) retval = 2; |
|---|
| 144 |
if (MS_RIGHT == (event_id (event))) retval = 4; |
|---|
| 145 |
|
|---|
| 146 |
if (event_shift_is_down (event)) retval += 8; |
|---|
| 147 |
if (event_ctrl_is_down (event)) retval += 16; |
|---|
| 148 |
if (event_meta_is_down (event)) retval += 32; |
|---|
| 149 |
if (event_is_up (event)) retval += 128; |
|---|
| 150 |
return retval; |
|---|
| 151 |
} |
|---|
| 152 |
|
|---|
| 153 |
|
|---|
| 154 |
|
|---|
| 155 |
|
|---|
| 156 |
|
|---|
| 157 |
|
|---|
| 158 |
|
|---|
| 159 |
|
|---|
| 160 |
|
|---|
| 161 |
|
|---|
| 162 |
|
|---|
| 163 |
|
|---|
| 164 |
static long prev_event_sec = 0; |
|---|
| 165 |
static long prev_event_usec = 0; |
|---|
| 166 |
|
|---|
| 167 |
|
|---|
| 168 |
|
|---|
| 169 |
|
|---|
| 170 |
|
|---|
| 171 |
int |
|---|
| 172 |
time_delta (now_sec, now_usec, prev_sec, prev_usec) |
|---|
| 173 |
long now_sec, now_usec, prev_sec, prev_usec; |
|---|
| 174 |
{ |
|---|
| 175 |
long sec_delta = now_sec - prev_sec; |
|---|
| 176 |
long usec_delta = now_usec - prev_usec; |
|---|
| 177 |
|
|---|
| 178 |
if (usec_delta < 0) { |
|---|
| 179 |
usec_delta += 1000000; |
|---|
| 180 |
--sec_delta; |
|---|
| 181 |
} |
|---|
| 182 |
|
|---|
| 183 |
if (sec_delta >= 10) |
|---|
| 184 |
return (9999); |
|---|
| 185 |
else |
|---|
| 186 |
return ((sec_delta * 1000) + (usec_delta / 1000)); |
|---|
| 187 |
} |
|---|
| 188 |
|
|---|
| 189 |
|
|---|
| 190 |
|
|---|
| 191 |
|
|---|
| 192 |
|
|---|
| 193 |
|
|---|
| 194 |
|
|---|
| 195 |
|
|---|
| 196 |
static Notify_value |
|---|
| 197 |
input_event_filter_function (window, event, arg, type) |
|---|
| 198 |
#ifdef XVIEW |
|---|
| 199 |
Xv_Window window; |
|---|
| 200 |
#else |
|---|
| 201 |
Window window; |
|---|
| 202 |
#endif XVIEW |
|---|
| 203 |
Event *event; |
|---|
| 204 |
Notify_arg arg; |
|---|
| 205 |
Notify_event_type type; |
|---|
| 206 |
{ |
|---|
| 207 |
struct timeval time_stamp; |
|---|
| 208 |
|
|---|
| 209 |
if (console_fd) fprintf(console, "Event: %d\n", event_id(event)); |
|---|
| 210 |
|
|---|
| 211 |
|
|---|
| 212 |
if (event_id(event) == WIN_STOP) { |
|---|
| 213 |
ttysw_input(tty_win, "\007\007\007\007\007\007\007", 7); |
|---|
| 214 |
return NOTIFY_IGNORED; |
|---|
| 215 |
} |
|---|
| 216 |
|
|---|
| 217 |
|
|---|
| 218 |
if (event_id(event) == KEY_LEFT(5) || event_id(event) == KEY_LEFT(7)) |
|---|
| 219 |
if(event_is_up (event)) |
|---|
| 220 |
return notify_next_event_func (window, event, arg, type); |
|---|
| 221 |
else return NOTIFY_IGNORED; |
|---|
| 222 |
|
|---|
| 223 |
if (event_is_button (event)) { |
|---|
| 224 |
|
|---|
| 225 |
|
|---|
| 226 |
|
|---|
| 227 |
|
|---|
| 228 |
time_stamp = event_time (event); |
|---|
| 229 |
ttysw_input (tty_win, mouse_prefix, m_prefix_length); |
|---|
| 230 |
sprintf (buffer, "(%d %d %d %d)\015", |
|---|
| 231 |
button_value (event), |
|---|
| 232 |
(event_x (event) - left_margin) / font_width, |
|---|
| 233 |
event_y (event) / font_height, |
|---|
| 234 |
time_delta (time_stamp.tv_sec, time_stamp.tv_usec, |
|---|
| 235 |
prev_event_sec, prev_event_usec) |
|---|
| 236 |
); |
|---|
| 237 |
ttysw_input (tty_win, buffer, strlen(buffer)); |
|---|
| 238 |
prev_event_sec = time_stamp.tv_sec; |
|---|
| 239 |
prev_event_usec = time_stamp.tv_usec; |
|---|
| 240 |
return NOTIFY_IGNORED; |
|---|
| 241 |
} |
|---|
| 242 |
|
|---|
| 243 |
{ |
|---|
| 244 |
int d; |
|---|
| 245 |
char c = (char) 0; |
|---|
| 246 |
if ((event_is_key_left (event)) ? |
|---|
| 247 |
((d = event_id(event) - KEY_LEFT(1) + 'a'), c='l') : |
|---|
| 248 |
((event_is_key_right (event)) ? |
|---|
| 249 |
((d = event_id(event) - KEY_RIGHT(1) + 'a'), c='r') : |
|---|
| 250 |
((event_is_key_top (event)) ? |
|---|
| 251 |
((d = event_id(event) - KEY_TOP(1) + 'a'), c='t') : 0))) |
|---|
| 252 |
{ |
|---|
| 253 |
if (event_is_up(event)) return NOTIFY_IGNORED; |
|---|
| 254 |
if (event_shift_is_down (event)) c = c - 32; |
|---|
| 255 |
|
|---|
| 256 |
if (event_ctrl_is_down (event)) c = c - 64; |
|---|
| 257 |
if (event_meta_is_down (event)) c = c + 128; |
|---|
| 258 |
#ifdef WANT_CAPS_LOCK |
|---|
| 259 |
|
|---|
| 260 |
if (event_id(event) == KEY_TOP(1)) |
|---|
| 261 |
{ |
|---|
| 262 |
|
|---|
| 263 |
strcpy (buffer, Caps); |
|---|
| 264 |
title = &buffer[CAPS_LEN]; |
|---|
| 265 |
strncpy (title, (char *)window_get (frame, FRAME_LABEL), |
|---|
| 266 |
BUFFER_SIZE - CAPS_LEN); |
|---|
| 267 |
buffer[BUFFER_SIZE] = (char) 0; |
|---|
| 268 |
if (strncmp (title, Caps, CAPS_LEN) == 0) |
|---|
| 269 |
title += CAPS_LEN; |
|---|
| 270 |
caps_lock = (caps_lock ? 0 : CAPS_LEN); |
|---|
| 271 |
window_set(frame, FRAME_LABEL, (title -= caps_lock), 0); |
|---|
| 272 |
return NOTIFY_IGNORED; |
|---|
| 273 |
} |
|---|
| 274 |
#endif |
|---|
| 275 |
ttysw_input (tty_win, key_prefix, k_prefix_length); |
|---|
| 276 |
sprintf (buffer, "%c%c", d, c); |
|---|
| 277 |
ttysw_input(tty_win, buffer, strlen(buffer)); |
|---|
| 278 |
|
|---|
| 279 |
return NOTIFY_IGNORED; |
|---|
| 280 |
} |
|---|
| 281 |
} |
|---|
| 282 |
if ((event_is_ascii(event) || event_is_meta(event)) |
|---|
| 283 |
&& event_is_up(event)) return NOTIFY_IGNORED; |
|---|
| 284 |
#ifdef WANT_CAPS_LOCK |
|---|
| 285 |
|
|---|
| 286 |
if ((caps_lock) && event_is_ascii(event) |
|---|
| 287 |
&& (event_id(event) >= 'a') && (event_id(event) <= 'z')) |
|---|
| 288 |
event_set_id(event, (event_id(event) - 32)); |
|---|
| 289 |
|
|---|
| 290 |
#endif |
|---|
| 291 |
#ifndef NO_META_BIT |
|---|
| 292 |
|
|---|
| 293 |
|
|---|
| 294 |
|
|---|
| 295 |
if (event_is_ascii(event) && event_meta_is_down(event)) |
|---|
| 296 |
event_set_id(event, 128 | event_id(event)); |
|---|
| 297 |
#endif |
|---|
| 298 |
return notify_next_event_func (window, event, arg, type); |
|---|
| 299 |
} |
|---|
| 300 |
|
|---|
| 301 |
main (argc, argv) |
|---|
| 302 |
int argc; |
|---|
| 303 |
char **argv; |
|---|
| 304 |
{ |
|---|
| 305 |
int error_code; |
|---|
| 306 |
|
|---|
| 307 |
#ifdef JLE |
|---|
| 308 |
setlocale(LC_ALL, ""); |
|---|
| 309 |
#endif JLE |
|---|
| 310 |
|
|---|
| 311 |
if(getenv("DEBUGEMACSTOOL")) |
|---|
| 312 |
console = fdopen (console_fd = open("/dev/console",O_WRONLY), "w"); |
|---|
| 313 |
|
|---|
| 314 |
putenv("IN_EMACSTOOL=t"); |
|---|
| 315 |
|
|---|
| 316 |
if (putenv("TERM=sun") != 0) |
|---|
| 317 |
{fprintf (stderr, "%s: Could not set TERM=sun, using `%s'\n", |
|---|
| 318 |
argv[0], (char *)getenv("TERM")) ;}; |
|---|
| 319 |
|
|---|
| 320 |
|
|---|
| 321 |
|
|---|
| 322 |
|
|---|
| 323 |
|
|---|
| 324 |
|
|---|
| 325 |
{ |
|---|
| 326 |
char *termcap ; |
|---|
| 327 |
termcap = (char *)getenv("TERMCAP") ; |
|---|
| 328 |
if (termcap && (*termcap != '/')) |
|---|
| 329 |
{ |
|---|
| 330 |
if (putenv("TERMCAP=") != 0) |
|---|
| 331 |
{fprintf (stderr, "%s: Could not clear TERMCAP\n", argv[0]) ;} ; |
|---|
| 332 |
} ; |
|---|
| 333 |
} ; |
|---|
| 334 |
|
|---|
| 335 |
|
|---|
| 336 |
if (!(argv[0] = (char *)getenv("EMACSTOOL"))) |
|---|
| 337 |
argv[0] = emacs_name; |
|---|
| 338 |
|
|---|
| 339 |
for (argc = 1; argv[argc]; argc++) |
|---|
| 340 |
{ |
|---|
| 341 |
if(!(strcmp ("-rc", argv[argc]))) |
|---|
| 342 |
{int i = argc; |
|---|
| 343 |
argv[argc--]=0; |
|---|
| 344 |
if (argv[i+1]) { |
|---|
| 345 |
argv[0]=argv[i+1]; |
|---|
| 346 |
for (; argv[i+2]; (argv[i]=argv[i+2],argv[++i]=0)); |
|---|
| 347 |
} |
|---|
| 348 |
} |
|---|
| 349 |
|
|---|
| 350 |
if (!(strcmp ("-bold", argv[argc]))) |
|---|
| 351 |
{int i = argc; |
|---|
| 352 |
argv[argc--]=0; |
|---|
| 353 |
if (argv[i+1]) { |
|---|
| 354 |
bold_name = argv[i+1]; |
|---|
| 355 |
for (; argv[i+2]; (argv[i]=argv[i+2],argv[++i]=0)); |
|---|
| 356 |
} |
|---|
| 357 |
} |
|---|
| 358 |
}; |
|---|
| 359 |
|
|---|
| 360 |
strcpy (buffer, title); |
|---|
| 361 |
strncat (buffer, argv[0], |
|---|
| 362 |
(BUFFER_SIZE - (strlen (buffer)) - (strlen (argv[0]))) - 1); |
|---|
| 363 |
|
|---|
| 364 |
error_code = interpose_on_window(argc,argv); |
|---|
| 365 |
if (error_code != 0) { |
|---|
| 366 |
fprintf (stderr, "notify_interpose_event_func returns %d.\n", error_code); |
|---|
| 367 |
exit (1); |
|---|
| 368 |
} |
|---|
| 369 |
|
|---|
| 370 |
#ifdef XVIEW |
|---|
| 371 |
xv_main_loop (frame); |
|---|
| 372 |
#else |
|---|
| 373 |
window_main_loop (frame); |
|---|
| 374 |
#endif XVIEW |
|---|
| 375 |
} |
|---|
| 376 |
|
|---|
| 377 |
#ifdef XVIEW |
|---|
| 378 |
int interpose_on_window(argc,argv) |
|---|
| 379 |
int argc; |
|---|
| 380 |
char **argv; |
|---|
| 381 |
{ |
|---|
| 382 |
#ifndef TTERM |
|---|
| 383 |
int i, font_width_adjust = 1; |
|---|
| 384 |
|
|---|
| 385 |
|
|---|
| 386 |
|
|---|
| 387 |
|
|---|
| 388 |
for (i = 1; argv[i]; i++) { |
|---|
| 389 |
if (!(strcmp ("-Wt", argv[i]))) |
|---|
| 390 |
{font_width_adjust = 0; |
|---|
| 391 |
if (console_fd) fprintf(console, "-Wt = %d\n", font_width_adjust); |
|---|
| 392 |
break;} |
|---|
| 393 |
} |
|---|
| 394 |
#endif TTERM |
|---|
| 395 |
|
|---|
| 396 |
xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, 0); |
|---|
| 397 |
|
|---|
| 398 |
|
|---|
| 399 |
frame_icon = icon_create (ICON_LABEL, "Emacstool", |
|---|
| 400 |
ICON_IMAGE, &icon_image, |
|---|
| 401 |
0); |
|---|
| 402 |
|
|---|
| 403 |
|
|---|
| 404 |
frame = xv_create ((Xv_Window)NULL, FRAME, |
|---|
| 405 |
FRAME_LABEL, buffer, |
|---|
| 406 |
FRAME_ICON, frame_icon, |
|---|
| 407 |
0); |
|---|
| 408 |
|
|---|
| 409 |
|
|---|
| 410 |
tty_win = xv_create (frame, SWTYPE, WIN_IS_CLIENT_PANE, |
|---|
| 411 |
TTY_QUIT_ON_CHILD_DEATH, TRUE, |
|---|
| 412 |
TTY_BOLDSTYLE, TTYSW_BOLD_INVERT, |
|---|
| 413 |
TTY_ARGV, argv, |
|---|
| 414 |
0); |
|---|
| 415 |
|
|---|
| 416 |
if (bold_name) { |
|---|
| 417 |
(void)xv_set(tty_win, TTY_BOLDSTYLE_NAME, bold_name, 0); |
|---|
| 418 |
} |
|---|
| 419 |
|
|---|
| 420 |
{ |
|---|
| 421 |
Xv_font font; |
|---|
| 422 |
font = (Xv_font)xv_get (tty_win, XV_FONT); |
|---|
| 423 |
font_height = (int)xv_get (font, FONT_DEFAULT_CHAR_HEIGHT); |
|---|
| 424 |
font_width = (int)xv_get (font, FONT_DEFAULT_CHAR_WIDTH); |
|---|
| 425 |
} |
|---|
| 426 |
if (console_fd) fprintf(console, "Width = %d\n", font_width); |
|---|
| 427 |
|
|---|
| 428 |
#ifndef TTERM |
|---|
| 429 |
font_width -= font_width_adjust; |
|---|
| 430 |
#else |
|---|
| 431 |
|
|---|
| 432 |
xv_set(tty_win, TERMSW_MODE, TTYSW_MODE_TYPE, 0); |
|---|
| 433 |
|
|---|
| 434 |
left_margin = (int)xv_get (tty_win, TEXTSW_LEFT_MARGIN); |
|---|
| 435 |
#endif TTERM |
|---|
| 436 |
|
|---|
| 437 |
tty_view = (Xv_Window) xv_get (tty_win, OPENWIN_NTH_VIEW, 0); |
|---|
| 438 |
xv_set(tty_view, |
|---|
| 439 |
WIN_CONSUME_EVENTS, |
|---|
| 440 |
WIN_MOUSE_BUTTONS, WIN_UP_EVENTS, |
|---|
| 441 |
ACTION_ADJUST, ACTION_MENU, |
|---|
| 442 |
WIN_ASCII_EVENTS, |
|---|
| 443 |
WIN_LEFT_KEYS, WIN_TOP_KEYS, WIN_RIGHT_KEYS, |
|---|
| 444 |
0, |
|---|
| 445 |
0); |
|---|
| 446 |
|
|---|
| 447 |
return (int) notify_interpose_event_func |
|---|
| 448 |
(tty_view, input_event_filter_function, NOTIFY_SAFE); |
|---|
| 449 |
} |
|---|
| 450 |
#else |
|---|
| 451 |
int interpose_on_window (argc, argv) |
|---|
| 452 |
int argc; |
|---|
| 453 |
char **argv; |
|---|
| 454 |
{ |
|---|
| 455 |
|
|---|
| 456 |
frame_icon = icon_create (ICON_LABEL, "Emacstool", |
|---|
| 457 |
ICON_IMAGE, &icon_image, |
|---|
| 458 |
0); |
|---|
| 459 |
|
|---|
| 460 |
|
|---|
| 461 |
frame = window_create ((Window)NULL, FRAME, |
|---|
| 462 |
FRAME_LABEL, buffer, |
|---|
| 463 |
FRAME_ICON, frame_icon, |
|---|
| 464 |
FRAME_ARGC_PTR_ARGV, &argc, argv, |
|---|
| 465 |
0); |
|---|
| 466 |
|
|---|
| 467 |
|
|---|
| 468 |
tty_win = window_create (frame, TTY, |
|---|
| 469 |
TTY_QUIT_ON_CHILD_DEATH, TRUE, |
|---|
| 470 |
TTY_BOLDSTYLE, TTYSW_BOLD_INVERT, |
|---|
| 471 |
TTY_ARGV, argv, |
|---|
| 472 |
0); |
|---|
| 473 |
|
|---|
| 474 |
if (bold_name) { |
|---|
| 475 |
(void)window_set(tty_win, TTY_BOLDSTYLE_NAME, bold_name, 0); |
|---|
| 476 |
} |
|---|
| 477 |
|
|---|
| 478 |
|
|---|
| 479 |
window_set (tty_win, WIN_FONT, pf_default(), 0); |
|---|
| 480 |
font_height = (int)window_get (tty_win, WIN_ROW_HEIGHT); |
|---|
| 481 |
font_width = (int)window_get (tty_win, WIN_COLUMN_WIDTH); |
|---|
| 482 |
|
|---|
| 483 |
tty_view = tty_win; |
|---|
| 484 |
window_set(tty_view, |
|---|
| 485 |
WIN_CONSUME_PICK_EVENTS, |
|---|
| 486 |
WIN_STOP, |
|---|
| 487 |
WIN_MOUSE_BUTTONS, WIN_UP_EVENTS, |
|---|
| 488 |
|
|---|
| 489 |
0, |
|---|
| 490 |
WIN_CONSUME_KBD_EVENTS, |
|---|
| 491 |
WIN_STOP, |
|---|
| 492 |
WIN_ASCII_EVENTS, |
|---|
| 493 |
WIN_LEFT_KEYS, WIN_TOP_KEYS, WIN_RIGHT_KEYS, |
|---|
| 494 |
|
|---|
| 495 |
0, |
|---|
| 496 |
0); |
|---|
| 497 |
|
|---|
| 498 |
return (int) notify_interpose_event_func |
|---|
| 499 |
(tty_view, input_event_filter_function, NOTIFY_SAFE); |
|---|
| 500 |
} |
|---|
| 501 |
#endif XVIEW |
|---|
| 502 |
|
|---|
| 503 |
|
|---|
| 504 |
|
|---|