diff options
| author | Karoly Lorentey | 2004-01-01 17:55:53 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-01-01 17:55:53 +0000 |
| commit | 28d7d09f841801cd052bb4ba0df92016b9245870 (patch) | |
| tree | eed006b0a32c39edb7a37d893bb2b192c63b69a5 /src/cm.h | |
| parent | 819b8f00ed7b8a9a2190efaa02376ed332ecf763 (diff) | |
| download | emacs-28d7d09f841801cd052bb4ba0df92016b9245870.tar.gz emacs-28d7d09f841801cd052bb4ba0df92016b9245870.zip | |
Separate frame-local, tty-dependent parameters from tty-local parameters.
src/termchar.h (struct tty_output): Redefined to contain frame-local
tty-dependent parameters. (Currently there are no such parameters, so
it consists of the tty_display_info pointer.)
(struct tty_display_info): New structure, with reference_count.
(FRAME_TTY): Updated to reflect new termcap frame structure.
src/term.c: Update prototypes. Use tty_display_info instead of tty_output.
src/cm.c (current_tty, cmcheckmagic, cmcostinit, calccost, cmgoto, Wcm_clear)
(Wcm_init): Use tty_display_info instead of tty_output.
src/cm.h: Update prototypes.
src/dispextern.h: Ditto.
src/dispnew.c (window_change_signal, init_display, make_terminal_frame):
Use tty_display_info instead of tty_output.
src/frame.c (Fdelete_frame): Use tty_display_info instead of
tty_output. Fix delete_tty check.
(make_terminal_frame): Allocate f->output_data.tty. Increase
reference count of tty device.
(delete_frame): Free f->output_data.tty. Use reference count to
decide if the tty should be closed.
src/frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): New,
unconditional definitions.
(struct device): New declaration (at the moment, it is defined as
empty in termhooks.h).
(struct frame): Added display, background_pixel, foreground_pixel member.
src/keyboard.c (read_avail_input): Use tty_display_info instead of tty_output.
src/lisp.h: Declare struct display. Update prototypes.
src/sysdep.c: Update prototypes.
(discard_tty_input, init_all_sys_modes, init_sys_modes, reset_all_sys_modes)
(reset_sys_modes, hft_init, hft_reset): Use tty_display_info instead
of tty_output.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-29
Diffstat (limited to 'src/cm.h')
| -rw-r--r-- | src/cm.h | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -163,13 +163,13 @@ extern int evalcost (); | |||
| 163 | 163 | ||
| 164 | #define emacs_tputs(tty, str, affcnt, putc) (current_tty = (tty), tputs (str, affcnt, putc)) | 164 | #define emacs_tputs(tty, str, affcnt, putc) (current_tty = (tty), tputs (str, affcnt, putc)) |
| 165 | 165 | ||
| 166 | extern struct tty_output *current_tty; | 166 | extern struct tty_display_info *current_tty; |
| 167 | extern void cmcheckmagic P_ ((struct tty_output *)); | 167 | extern void cmcheckmagic P_ ((struct tty_display_info *)); |
| 168 | extern int cmputc P_ ((int)); | 168 | extern int cmputc P_ ((int)); |
| 169 | extern void cmcostinit P_ ((struct tty_output *)); | 169 | extern void cmcostinit P_ ((struct tty_display_info *)); |
| 170 | extern void cmgoto P_ ((struct tty_output *, int, int)); | 170 | extern void cmgoto P_ ((struct tty_display_info *, int, int)); |
| 171 | extern void Wcm_clear P_ ((struct tty_output *)); | 171 | extern void Wcm_clear P_ ((struct tty_display_info *)); |
| 172 | extern int Wcm_init P_ ((struct tty_output *)); | 172 | extern int Wcm_init P_ ((struct tty_display_info *)); |
| 173 | 173 | ||
| 174 | /* arch-tag: acc1535a-7136-49d6-b22d-9bc85702251b | 174 | /* arch-tag: acc1535a-7136-49d6-b22d-9bc85702251b |
| 175 | (do not change this comment) */ | 175 | (do not change this comment) */ |