Mercurial > emacs
diff src/sysdep.c @ 82989:f3845715a5f6
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
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Thu, 01 Jan 2004 17:55:53 +0000 |
parents | f82e3a6f5ccb |
children | 2ecd1f669db9 |
line wrap: on
line diff
--- a/src/sysdep.c Wed Dec 31 05:09:29 2003 +0000 +++ b/src/sysdep.c Thu Jan 01 17:55:53 2004 +0000 @@ -252,8 +252,8 @@ void croak P_ ((char *)); #ifdef AIXHFT -void hft_init P_ ((struct tty_output *)); -void hft_reset P_ ((struct tty_output *)); +void hft_init P_ ((struct tty_display_info *)); +void hft_reset P_ ((struct tty_display_info *)); #endif /* Temporary used by `sigblock' when defined in terms of signprocmask. */ @@ -285,7 +285,7 @@ #else /* not VMS */ #ifdef APOLLO { - struct tty_output *tty; + struct tty_display_info *tty; for (tty = tty_list; tty; tty = tty->next) { int zero = 0; @@ -298,7 +298,7 @@ ; #else /* not MSDOS */ { - struct tty_output *tty; + struct tty_display_info *tty; for (tty = tty_list; tty; tty = tty->next) { EMACS_GET_TTY (fileno (TTY_INPUT (tty)), &buf); @@ -1295,14 +1295,14 @@ void init_all_sys_modes (void) { - struct tty_output *tty; + struct tty_display_info *tty; for (tty = tty_list; tty; tty = tty->next) init_sys_modes (tty); } void init_sys_modes (tty_out) - struct tty_output *tty_out; + struct tty_display_info *tty_out; { struct emacs_tty tty; @@ -1796,7 +1796,7 @@ void reset_all_sys_modes (void) { - struct tty_output *tty; + struct tty_display_info *tty; for (tty = tty_list; tty; tty = tty->next) reset_sys_modes (tty); } @@ -1805,7 +1805,7 @@ bottom of the frame, turn off interrupt-driven I/O, etc. */ void reset_sys_modes (tty_out) - struct tty_output *tty_out; + struct tty_display_info *tty_out; { if (noninteractive) { @@ -5110,7 +5110,7 @@ /* Called from init_sys_modes. */ void -hft_init (struct tty_output *tty_out) +hft_init (struct tty_display_info *tty_out) { int junk; @@ -5165,7 +5165,7 @@ /* Reset the rubout key to backspace. */ void -hft_reset (struct tty_output *tty_out) +hft_reset (struct tty_display_info *tty_out) { struct hfbuf buf; struct hfkeymap keymap;