aboutsummaryrefslogtreecommitdiffstats
path: root/src/cm.h
Commit message (Collapse)AuthorAgeFilesLines
* Merged in changes from CVS trunk. Plus added lisp/term tweaks.Karoly Lorentey2005-09-041-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * [email protected]/emacs--cvs-trunk--0--base-0 tag of [email protected]/emacs--cvs-trunk--0--patch-474 * [email protected]/emacs--cvs-trunk--0--patch-1 Add CVS metadata files. * [email protected]/emacs--cvs-trunk--0--patch-2 Update from CVS. git-archimport-id: [email protected]/emacs--multi-tty--0--patch-393
| * Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-1/+2
| |
* | Merged from [email protected] (patch 469)Karoly Lorentey2005-07-051-2/+2
|\| | | | | | | | | | | | | | | | | Patches applied: * [email protected]/emacs--cvs-trunk--0--patch-469 Update from CVS git-archimport-id: [email protected]/emacs--multi-tty--0--patch-372
| * Update FSF's address.Lute Kamstra2005-07-041-2/+2
| |
* | Separate frame-local, tty-dependent parameters from tty-local parameters.Karoly Lorentey2004-01-011-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: [email protected]/emacs--multi-tty--0--patch-29
* | Trivial changesKaroly Lorentey2003-12-281-3/+3
| | | | | | | | git-archimport-id: [email protected]/emacs--multi-tty--0--patch-18
* | Full support for multiple terminal I/O (with some rough edges).Karoly Lorentey2003-12-271-55/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lib-src/emacsclient.c (emacs_pid): New variable. (window_change): Forward the SIGWINCH signal to the Emacs process after copying the size parameters to the proxy terminal. (copy_from_to): New parameter (sigio), kill Emacs with SIGIO if it is nonzero. (main): Set emacs_pid. lisp/server.el (server-process-filter): Send the pid of Emacs to emacsclient. src/cm.c: Added tty parameters to all functions and all Wcm macro calls. src/cm.h: Added tty parameters to all macros. Updated function prototypes. (Wcm): Moved to struct tty_output. src/dispextern.h: Updated function prototypes. src/dispnew.c: Added tty parameters to all Wcm macro calls. (do_switch_frame): Make old frame obscured, not invisible, to solve problems with other-frame. (Wcm): Moved to struct tty_output. src/keyboard.c (read_avail_input): Select the frame corresponding to the tty that was read. Slight rearrangement of tty loop. src/lisp.h (tabs_safe_p): Removed duplicate prototype. src/sysdep.c (hft_init, hft_reset): Added tty_output parameter. (discard_tty_input): Discard input from all ttys on APOLLO, too. Whatever it is. (narrow_foreground_group, widen_foreground_group): Added tty parameter (not really useful, the functions only work on the controlling tty.) (tabs_safe_p): Added tty parameter. src/term.c Added tty parameters to all Wcm macro calls. Standardised updating_frame vs. selected frame and tty_output access. (term_init): Allocate Wcm. (syms_of_term): Provide the `multi-tty' feature. src/termchar.h (struct tty_output): Added Wcm. src/xdisp.c (try_window_id): Make sure we use the tty device corresponding to the current frame. git-archimport-id: [email protected]/emacs--multi-tty--0--patch-8
* | Implemented multiple tty support.Karoly Lorentey2003-12-251-3/+6
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | README.multi-tty: New file. src/termchar.h (struct terminal): Renamed to struct tty_output. Added name, type, input, output, termscript, old_tty, term_initted, old_tty_valid, background_pixel, foreground_pixel, next fields. (TERMINAL_*): Renamed to TTY_* for brevity. (CURRENT_TERMINAL): Renamed to CURTTY for brevity. (tty_list): New variable. (TERMINAL_PTR): Removed. (FRAME_TTY): New function. (TTY_NAME, TTY_TYPE): New macros. src/term.c (current_terminal): Removed. (_current_terminal): Removed. (tty_list): New variable. (OUTPUT, OUTPUT1, OUTPUTL, OUTPUT_IF, OUTPUT1_IF): Added tty parameter. (set_terminal_modes): Added tty parameter. (reset_terminal_modes): Added tty parameter. (cursor_to, raw_cursor_to): Updated cmgoto() calls. (clear_end_of_line, write_glyphs): Add indirection to terminal output, updated cmcheckmagic() calls. (get_named_tty): New function. (term_dummy_init): New function. (term_init): Added name parameter, added tty_output return value. Changed algorithm to update tty_list. Call init_sys_modes() to set up tty mode on the newly opened terminal device. (get_current_tty): New function, intended for debugging. src/termhooks.h (termscript): Removed. src/w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Removed redundant definition. src/macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Ditto. src/window.c (init_window_once): Call make_terminal_frame with two zero parameters. src/cm.h (emacs_tputs): New macro to set current_tty, and then call tputs(). (current_tty): New variable, for cmputc(). (cmcheckmagic, cmputc, cmgoto): Added prototypes. src/cm.c (current_tty): New variable, for cmputc(). (cmputc): Use it. (cmcheckmagic): Added tty parameter, look up terminal streams there. (calccost): Added tty parameter. Use emacs_tputs() instead of tputs(). (cmgoto): Added tty parameter. Pass it on to calccost(). Use emacs_tputs() instead of tputs(). src/dispextern.h (set_terminal_modes, reset_terminal_modes): Added tty parameter. (term_init): Added name parameter (the filename of the terminal device). Added return value (struct tty_output). src/dispnew.c: Replace CURTTY() with local variables throughout the file (where applicable). (termscript): Moved to struct tty_output. (terminal_type): Removed. src/emacs.c (main): Don't call init_sys_modes(), the new term_init() already does that during init_display(). (shut_down_emacs): Call reset_all_sys_modes() instead of reset_sys_modes(). src/frame.c (Qtty, Qtty_type): New variables. (syms_of_frame): Initialize them. (tty_display): Removed. (make_terminal_frame): New parameters (tty filename and type). Initialize output_data.tty field instead of output_data.x. Use term_init() to find the right tty_output. (Use term_dummy_init() during bootstrap.) (Fmake_terminal_frame): Get device filename and type from frame parameters. src/frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Do the right thing if the frame is a tty. (struct frame): New member in output_data: tty. (make_terminal_frame): Updated of prototype. src/keyboard.c (Fset_input_mode): Call reset_all_sys_modes(), not reset_sys_modes(). Ditto with init_sys_modes(). src/lisp.h (tty_output): Added forward declaration. (init_sys_modes, reset_sys_modes): Updated prototype. (init_all_sys_modes, reset_all_sys_modes): New prototypes. src/scroll.c: Replace CURTTY() with local variables throughout the file (where applicable). src/sysdep.c (old_tty, term_initted, old_tty_valid): Moved to struct tty_output.( (init_all_sys_modes): New function. (init_sys_modes): Added tty_output parameter. Use it. (reset_all_sys_modes): New function. (reset_sys_modes): Added tty_output parameter. Use it. src/Makefile.in: Update dependencies. git-archimport-id: [email protected]/emacs--multi-tty--0--patch-2
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* Remove unneeded declaration of ospeed.Dave Love1999-09-271-13/+0
|
* Update return types of declarations.Andreas Schwab1998-04-141-3/+3
|
* [HAVE_LIBNCURSES]: Declare ospeed as short, unless NCURSES_OSPEED_T.Richard M. Stallman1997-07-281-0/+4
|
* Fix previous change.Richard M. Stallman1997-07-151-1/+1
|
* (ospeed): Declare as short unless HAVE_TERMIOS_H and LINUX.Richard M. Stallman1997-07-071-2/+4
|
* (ospeed): Always use `extern' in the declaration.Richard M. Stallman1997-06-271-1/+1
|
* [HAVE_TERMIOS_H]: Include termios.h.Richard M. Stallman1996-09-101-0/+6
| | | | (ospeed) [HAVE_TERMIOS_H]: Use ospeed_t.
* Undo previous change.Karl Heuer1996-07-161-5/+0
|
* Test HAVE_TERMIOS rather than the automatically-generated HAVE_TERMIOS_H,Karl Heuer1996-07-161-1/+1
| | | | in case <termios.h> is present but unusable.
* [HAVE_TERMIOS_H]: Declare ospeed as speed_t.Karl Heuer1996-07-151-0/+5
|
* Update FSF's address in the preamble.Erik Naggum1996-01-151-1/+2
|
* Update GPL to version 2.Karl Heuer1995-06-151-1/+1
|
* Declare checkmagic.Karl Heuer1995-01-171-0/+1
|
* (cmputc): Return int rather than void.Richard M. Stallman1994-09-221-1/+1
|
* entered into RCSJim Blandy1992-07-141-3/+3
|
* Initial revisionJim Blandy1992-01-131-0/+169