Mercurial > emacs
annotate src/getpagesize.h @ 25002:28d5af43eeb6
Rewritten.
(append_glyph): New.
(update_end): Turn cursor on only if selected window's
cursor_off_p flag is not set.
(TS_cursor_visible): Renamed from TS_visual_mode.
(TS_cursor_normal): Renamed from TS_end_visual_mode.
(TS_cursor_invisible): New.
(term_init): Initialize TS_cursor_invisible.
(tty_hide_cursor): New.
(tty_show_cursor): New.
(update_end): Show tty cursor.
(update_begin): Hide tty cursor to prevent cursor flickering
during redisplays triggered by timers (stealth fontification).
(estimate_mode_line_height): New.
(estimate_mode_line_height_hook): New.
(OUTPUT_IF): Make replacement text have statement form.
(OUTPUT1_IF): Ditto.
(TS_italic_mode, TS_end_italic_mode): Removed.
(TS_bold_mode): Removed.
(TS_underscore_mode, TS_end_underscore_mode): Removed.
(TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
(TS_enter_reverse_mode): New.
(TS_enter_underline_mode, TS_exit_underline_mode): New.
(TN_magic_cookie_glitch_ul): New.
(TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
(TS_exit_attribute_mode): New.
(TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
(TS_set_foreground, TS_set_background): New.
(reset_terminal_modes): Switch colors back to default.
(write_glyphs): Turn face on before writing text, turn it off
afterwards.
(insert_glyphs): Ditto.
(term_init): Initialize new terminal capability variables.
(turn_on_face): Turn a face on.
(turn_off_face): Turn a face off.
(global): Rewrite for new glyphs.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 21 Jul 1999 21:43:52 +0000 |
parents | 4f9e6148ce6a |
children | c8fb06423da0 |
rev | line source |
---|---|
4356 | 1 /* Emulate getpagesize on systems that lack it. */ |
2 | |
3 #ifndef HAVE_GETPAGESIZE | |
4 | |
16599 | 5 # ifdef VMS |
6 # define getpagesize() 512 | |
7 # endif | |
4356 | 8 |
16599 | 9 # ifdef HAVE_UNISTD_H |
10 # include <unistd.h> | |
11 # endif | |
4356 | 12 |
16599 | 13 # ifdef _SC_PAGESIZE |
14 # define getpagesize() sysconf(_SC_PAGESIZE) | |
16600
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
15 # else /* no _SC_PAGESIZE */ |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
16 # ifdef HAVE_SYS_PARAM_H |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
17 # include <sys/param.h> |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
18 # ifdef EXEC_PAGESIZE |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
19 # define getpagesize() EXEC_PAGESIZE |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
20 # else /* no EXEC_PAGESIZE */ |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
21 # ifdef NBPG |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
22 # define getpagesize() NBPG * CLSIZE |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
23 # ifndef CLSIZE |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
24 # define CLSIZE 1 |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
25 # endif /* no CLSIZE */ |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
26 # else /* no NBPG */ |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
27 # ifdef NBPC |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
28 # define getpagesize() NBPC |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
29 # else /* no NBPC */ |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
30 # ifdef PAGESIZE |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
31 # define getpagesize() PAGESIZE |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
32 # endif /* PAGESIZE */ |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
33 # endif /* no NBPC */ |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
34 # endif /* no NBPG */ |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
35 # endif /* no EXEC_PAGESIZE */ |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
36 # else /* no HAVE_SYS_PARAM_H */ |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
37 # define getpagesize() 8192 /* punt totally */ |
4f9e6148ce6a
If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents:
16599
diff
changeset
|
38 # endif /* no HAVE_SYS_PARAM_H */ |
16599 | 39 # endif /* no _SC_PAGESIZE */ |
4356 | 40 |
16599 | 41 #endif /* no HAVE_GETPAGESIZE */ |