1. 25 Dec, 2003 1 commit
    • Karoly Lorentey's avatar
      Implemented multiple tty support. · 28d440ab
      Karoly Lorentey authored
      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: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-2
      28d440ab
  2. 16 Nov, 2003 1 commit
  3. 05 Oct, 2003 3 commits
  4. 20 Sep, 2003 1 commit
  5. 01 Sep, 2003 1 commit
  6. 26 Jun, 2003 1 commit
  7. 25 May, 2003 1 commit
  8. 24 May, 2003 1 commit
    • Kim F. Storm's avatar
      Make (many) trivial substitutions for renamed and · 5af5757b
      Kim F. Storm authored
      new macros in dispextern.h, frame.h and window.h.
      (make_frame): Initialize left_fringe_width, right_fringe_width,
      fringe_cols, scroll_bar_actual_width, border_width,
      internal_border_width, column_width, line_height, x_pixels_diff,
      y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
      members with values suitable for a non-window frames.
      5af5757b
  9. 19 May, 2003 1 commit
  10. 17 May, 2003 1 commit
  11. 01 Apr, 2003 1 commit
  12. 31 Mar, 2003 3 commits
    • Juanma Barranquero's avatar
    • Kim F. Storm's avatar
      Fix compilation for --with-x=no. · 2731a0ad
      Kim F. Storm authored
      2731a0ad
    • Kim F. Storm's avatar
      Include blockinput.h. · 972f4259
      Kim F. Storm authored
      (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
      (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
      (Qauto_raise, Qauto_lower, ...): Define all frame parameter
      related vars here.
      (struct frame_parm_table, frame_parms): New table for describing
      frame parameters and their associated Q-variable.
      The order of the parameters corresponds to the sequence of the
      frame_parm_handlers table in redisplay_interface.
      (x_fullscreen_move, x_set_frame_parameters)
      (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
      (x_set_screen_gamma, x_set_font, x_set_fringe_width)
      (x_set_border_width, x_set_internal_border_width, x_set_visibility)
      (x_set_autoraise, x_set_autolower, x_set_unsplittable)
      (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
      Generic functions for processing of frame parameters.
      (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
      (display_x_get_resource, x_get_resource_string): Functions for
      generic access to X resources.
      (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
      (x_default_parameter, Fx_parse_geometry): Functions for generic
      access to frame parameters.
      (x_figure_window_size): Generic calculation of frame size. Fixed
      to add space needed for tool bar.  Also setup size_hint_flags.
      (syms_of_frame): Intern and staticpro frame parameter variables.
      Defvar_lisp Vx_resource_class and Vx_resource_name here.
      Defsubr Sx_get_resource and Sx_parse_geometry.
      972f4259
  13. 04 Feb, 2003 1 commit
  14. 02 Oct, 2002 1 commit
    • John Paul Wallington's avatar
      * frame.c (Vdelete_frame_functions): New variable. · cd1d850f
      John Paul Wallington authored
      (syms_of_frame): Initialize and defvar it.
      (Fdelete_frame): Use it instead of delete-frame-hook.  Don't run
      it when frame's `tooltip' parameter is non-nil.
      
      * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
      
      * w32fns.c (x_create_tip_frame): Likewise
      
      * macfns.c (x_create_tip_frame): Likewise.
      cd1d850f
  15. 26 Aug, 2002 1 commit
  16. 16 Jul, 2002 1 commit
  17. 15 Jul, 2002 1 commit
  18. 10 Jul, 2002 1 commit
  19. 26 Jun, 2002 1 commit
  20. 26 Apr, 2002 1 commit
  21. 05 Mar, 2002 2 commits
  22. 20 Feb, 2002 1 commit
  23. 16 Feb, 2002 1 commit
  24. 14 Jan, 2002 1 commit
  25. 01 Dec, 2001 1 commit
  26. 19 Nov, 2001 1 commit
  27. 18 Nov, 2001 1 commit
  28. 02 Nov, 2001 1 commit
  29. 31 Oct, 2001 1 commit
  30. 25 Oct, 2001 3 commits
  31. 21 Oct, 2001 1 commit
  32. 16 Oct, 2001 1 commit
  33. 14 Oct, 2001 1 commit