diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2013-10-14 16:19:21 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2013-10-14 16:19:21 +0400 |
commit | 77e3b1b7095b3376dbddd22cbca4827b797767c0 (patch) | |
tree | 1e5cbc68a42c7e1b08acf36d94bc4b158d6117a0 /src/termchar.h | |
parent | e558436b778c0199caaff0ce40b9a279bacf640e (diff) | |
download | emacs-77e3b1b7095b3376dbddd22cbca4827b797767c0.tar.gz |
* termhooks.h (FRAME_MUST_WRITE_SPACES, FRAME_LINE_INS_DEL_OK)
(FRAME_CHAR_INS_DEL_OK, FRAME_SCROLL_REGION_OK)
(FRAME_SCROLL_REGION_COST, FRAME_MEMORY_BELOW_FRAME):
Adjust to match the change described below.
(struct terminal): Move must_write_spaces, line_ins_del_ok,
char_ins_del_ok, scroll_region_ok, scroll_region_cost and
memory_below_frame members to...
* termchar.h (struct tty_display_info): ...here because they're
relevant only on TTYs. Prefer unsigned bitfield where appropriate.
* term.c (init_tty):
* nsterm.m (ns_create_terminal):
* w32term.c (w32_create_terminal):
* xterm.c (x_create_terminal): Adjust users.
* dispnew.c (line_hash_code, line_draw_cost): Pass frame arg
to filter out non-TTY frames. Adjust comment.
(scrolling): Adjust user. Prefer eassert for debugging check.
Diffstat (limited to 'src/termchar.h')
-rw-r--r-- | src/termchar.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/termchar.h b/src/termchar.h index 031f4e4034b..feb89e02d0e 100644 --- a/src/termchar.h +++ b/src/termchar.h @@ -197,6 +197,25 @@ struct tty_display_info /* Non-zero means we are displaying a TTY menu on this tty. */ unsigned showing_menu : 1; + + /* Nonzero means spaces in the text must actually be output; + can't just skip over some columns to leave them blank. */ + unsigned must_write_spaces : 1; + + /* Nonzero if TTY can insert and delete lines. */ + unsigned line_ins_del_ok : 1; + + /* Nonzero if TTY can insert and delete chars. */ + unsigned char_ins_del_ok : 1; + + /* Nonzero if TTY supports setting the scroll window. */ + unsigned scroll_region_ok : 1; + + /* Nonzero if TTY remembers lines scrolled off bottom. */ + unsigned memory_below_frame : 1; + + /* Cost of setting the scroll window, measured in characters. */ + int scroll_region_cost; }; /* A chain of structures for all tty devices currently in use. */ |