aboutsummaryrefslogtreecommitdiffstats
path: root/src/termhooks.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/termhooks.h')
-rw-r--r--src/termhooks.h36
1 files changed, 22 insertions, 14 deletions
diff --git a/src/termhooks.h b/src/termhooks.h
index b35c927fc53..252dbabb6f9 100644
--- a/src/termhooks.h
+++ b/src/termhooks.h
@@ -1,6 +1,7 @@
1/* Parameters and display hooks for terminal devices. 1/* Parameters and display hooks for terminal devices.
2 2
3Copyright (C) 1985-1986, 1993-1994, 2001-2012 Free Software Foundation, Inc. 3Copyright (C) 1985-1986, 1993-1994, 2001-2013 Free Software Foundation,
4Inc.
4 5
5This file is part of GNU Emacs. 6This file is part of GNU Emacs.
6 7
@@ -211,6 +212,11 @@ enum event_kind
211 , NS_NONKEY_EVENT 212 , NS_NONKEY_EVENT
212#endif 213#endif
213 214
215#if defined (HAVE_INOTIFY) || defined (HAVE_NTGUI)
216 /* File or directory was changed. */
217 , FILE_NOTIFY_EVENT
218#endif
219
214}; 220};
215 221
216/* If a struct input_event has a kind which is SELECTION_REQUEST_EVENT 222/* If a struct input_event has a kind which is SELECTION_REQUEST_EVENT
@@ -376,7 +382,7 @@ struct terminal
376 struct image_cache *image_cache; 382 struct image_cache *image_cache;
377#endif /* HAVE_WINDOW_SYSTEM */ 383#endif /* HAVE_WINDOW_SYSTEM */
378 384
379 /* Device-type dependent data shared amongst all frames on this terminal. */ 385 /* Device-type dependent data shared amongst all frames on this terminal. */
380 union display_info 386 union display_info
381 { 387 {
382 struct tty_display_info *tty; /* termchar.h */ 388 struct tty_display_info *tty; /* termchar.h */
@@ -397,22 +403,22 @@ struct terminal
397 the function `set-keyboard-coding-system'. */ 403 the function `set-keyboard-coding-system'. */
398 struct coding_system *keyboard_coding; 404 struct coding_system *keyboard_coding;
399 405
400 /* Terminal characteristics. */ 406 /* Terminal characteristics. */
401 /* XXX Are these really used on non-termcap displays? */ 407 /* XXX Are these really used on non-termcap displays? */
402 408
403 int must_write_spaces; /* Nonzero means spaces in the text must 409 int must_write_spaces; /* Nonzero means spaces in the text must
404 actually be output; can't just skip over 410 actually be output; can't just skip over
405 some columns to leave them blank. */ 411 some columns to leave them blank. */
406 int fast_clear_end_of_line; /* Nonzero means terminal has a `ce' string */ 412 int fast_clear_end_of_line; /* Nonzero means terminal has a `ce' string. */
407 413
408 int line_ins_del_ok; /* Terminal can insert and delete lines */ 414 int line_ins_del_ok; /* Terminal can insert and delete lines. */
409 int char_ins_del_ok; /* Terminal can insert and delete chars */ 415 int char_ins_del_ok; /* Terminal can insert and delete chars. */
410 int scroll_region_ok; /* Terminal supports setting the scroll 416 int scroll_region_ok; /* Terminal supports setting the scroll
411 window */ 417 window. */
412 int scroll_region_cost; /* Cost of setting the scroll window, 418 int scroll_region_cost; /* Cost of setting the scroll window,
413 measured in characters. */ 419 measured in characters. */
414 int memory_below_frame; /* Terminal remembers lines scrolled 420 int memory_below_frame; /* Terminal remembers lines scrolled
415 off bottom */ 421 off bottom. */
416 422
417 /* Window-based redisplay interface for this device (0 for tty 423 /* Window-based redisplay interface for this device (0 for tty
418 devices). */ 424 devices). */
@@ -611,7 +617,7 @@ tset_selection_alist (struct terminal *t, Lisp_Object val)
611 t->Vselection_alist = val; 617 t->Vselection_alist = val;
612} 618}
613 619
614/* Chain of all terminal devices currently in use. */ 620/* Chain of all terminal devices currently in use. */
615extern struct terminal *terminal_list; 621extern struct terminal *terminal_list;
616 622
617#define FRAME_MUST_WRITE_SPACES(f) ((f)->terminal->must_write_spaces) 623#define FRAME_MUST_WRITE_SPACES(f) ((f)->terminal->must_write_spaces)
@@ -632,14 +638,16 @@ extern struct terminal *terminal_list;
632 638
633#define FRAME_TERMINAL(f) ((f)->terminal) 639#define FRAME_TERMINAL(f) ((f)->terminal)
634 640
635/* Return true if the terminal device is not suspended. */ 641/* Return true if the terminal device is not suspended. */
636#define TERMINAL_ACTIVE_P(d) (((d)->type != output_termcap && (d)->type !=output_msdos_raw) || (d)->display_info.tty->input) 642#define TERMINAL_ACTIVE_P(d) \
643 (((d)->type != output_termcap && (d)->type != output_msdos_raw) \
644 || (d)->display_info.tty->input)
637 645
638extern struct terminal *get_terminal (Lisp_Object terminal, int); 646extern struct terminal *get_terminal (Lisp_Object terminal, int);
639extern struct terminal *create_terminal (void); 647extern struct terminal *create_terminal (void);
640extern void delete_terminal (struct terminal *); 648extern void delete_terminal (struct terminal *);
641 649
642/* The initial terminal device, created by initial_term_init. */ 650/* The initial terminal device, created by initial_term_init. */
643extern struct terminal *initial_terminal; 651extern struct terminal *initial_terminal;
644 652
645extern unsigned char *encode_terminal_code (struct glyph *, int, 653extern unsigned char *encode_terminal_code (struct glyph *, int,