Mercurial > emacs
comparison src/lisp.h @ 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 | d4e6a050c9b1 |
children | 82c3b4da43ca |
comparison
equal
deleted
inserted
replaced
82988:f82e3a6f5ccb | 82989:f3845715a5f6 |
---|---|
2935 EXFUN (Fx_popup_menu, 2); | 2935 EXFUN (Fx_popup_menu, 2); |
2936 EXFUN (Fx_popup_dialog, 2); | 2936 EXFUN (Fx_popup_dialog, 2); |
2937 extern void syms_of_xmenu P_ ((void)); | 2937 extern void syms_of_xmenu P_ ((void)); |
2938 | 2938 |
2939 /* defined in termchar.h */ | 2939 /* defined in termchar.h */ |
2940 struct tty_output; | 2940 struct tty_display_info; |
2941 | |
2942 /* defined in termhooks.h */ | |
2943 struct display; | |
2941 | 2944 |
2942 /* defined in sysdep.c */ | 2945 /* defined in sysdep.c */ |
2943 extern void stuff_char P_ ((char c)); | 2946 extern void stuff_char P_ ((char c)); |
2944 extern void init_sigio P_ ((int)); | 2947 extern void init_sigio P_ ((int)); |
2945 extern void sys_subshell P_ ((void)); | 2948 extern void sys_subshell P_ ((void)); |
2946 extern void sys_suspend P_ ((void)); | 2949 extern void sys_suspend P_ ((void)); |
2947 extern void discard_tty_input P_ ((void)); | 2950 extern void discard_tty_input P_ ((void)); |
2948 extern void init_sys_modes P_ ((struct tty_output *)); | 2951 extern void init_sys_modes P_ ((struct tty_display_info *)); |
2949 extern void reset_sys_modes P_ ((struct tty_output *)); | 2952 extern void reset_sys_modes P_ ((struct tty_display_info *)); |
2950 extern void init_all_sys_modes P_ ((void)); | 2953 extern void init_all_sys_modes P_ ((void)); |
2951 extern void reset_all_sys_modes P_ ((void)); | 2954 extern void reset_all_sys_modes P_ ((void)); |
2952 extern void wait_for_termination P_ ((int)); | 2955 extern void wait_for_termination P_ ((int)); |
2953 extern void flush_pending_output P_ ((int)); | 2956 extern void flush_pending_output P_ ((int)); |
2954 extern void child_setup_tty P_ ((int)); | 2957 extern void child_setup_tty P_ ((int)); |