1. 01 Jan, 2004 1 commit
    • Karoly Lorentey's avatar
      Separate frame-local, tty-dependent parameters from tty-local parameters. · 28d7d09f
      Karoly Lorentey authored
      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
      28d7d09f
  2. 26 Dec, 2003 1 commit
    • Karoly Lorentey's avatar
      lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. · 9628b887
      Karoly Lorentey authored
      (here): New variable.
      (decode_options): Use it.
      (ec_get_tty, ec_set_tty, init_tty, window_change, hang_up_signal): New functions.
      (window_change_signal, init_signals, reset_tty, init_pty, copy_from_to): Ditto.
      (pty_conversation): Ditto.
      (main): Use them.
      (master, pty_name, old_tty, tty, old_tty_valid, tty_erase_char): New variables.
      (flow_control, meta_key, _sobuf, in_conversation, quit_conversation): Ditto.
      
      lisp/server.el (server-process-filter): Added support for opening a new terminal frame.
      
      dispextern.h (get_frame_size): Renamed to get_tty_size, added tty_output parameter.
      
      dispnew.c (Fredraw_frame): fflush the current terminal instead of stdout.
      (direct_output_for_insert, direct_output_forward_char, update_frame_1): Ditto.
      (Fding, bitch_at_user): Ditto.
      (update_frame_1): Count pending output for current terminal instead of stdout.
      (window_change_signal): Resize all terminals.
      (change_frame_size): Don't resize all terminals to the same size.
      
      frame.c (Vterminal_frame): Removed.
      (syms_of_frame): Removed declaration of Vterminal_frame.
      (make_terminal_frame): Set the top frame of the terminal to the new frame.
      (Fmake_terminal_frame): Get a new frame size from get_tty_size, don't copy it.
      (do_switch_frame): Handle terminal frame visibility.
      (next_frame, prev_frame): Skip over frames on different terminals.
      
      frame.h (Vterminal_frame): Removed.
      
      keyboard.c (input_fd): Removed.
      (read_avail_input): Removed first argument from read_socket_hook.
      Try to read from each available tty, until one succeeds.
      (Fsuspend_emacs): Don't suspend if there are multiple terminals.
      
      lisp.h (get_frame_size): Removed superflous declaration.
      
      xterm.c (Xtread_socket): Removed first parameter.
      macterm.h (XTread_socket): Ditto.
      w32inevt.c (w32_console_read_socket): Ditto.
      w32term.c (w32_read_socket): Ditto.
      
      sysdep.c (input_fd): Removed.
      (change_input_fd): Removed.
      (discard_tty_input): Discard pending input on _all_ input descriptors.
      (stuff_char, tabs_safe_p): Use current terminal instead of input_fd.
      (init_baud_rate, request_sigio, unrequest_sigio): Ditto.
      (init_sys_modes, reset_sys_modes): Ditto.
      (narrow_foreground_group, widen_foreground_group): Use stdin.
      (init_sys_modes, reset_sys_modes): otty parameter renamed to tty_out.
      (get_frame_size): Renamed to get_tty_size, added tty_out parameter.
      
      term.c (read_socket_hook): Removed first parameter.
      (clear_end_of_line): Use updating_frame, if possible.
      (write_glyphs, insert_glyphs, ins_del_lines): Ditto.
      (term_init): Renamed get_frame_size to get_tty_size.
      
      termchar.h (struct tty_output): New entries: top_frame,
      previous_terminal_frame.
      
      termhooks.h (read_socket_hook): Removed first parameter.
      
      window.c (init_window_once): Removed reference to Vterminal_frame.
      
      xdisp.c (previous_terminal_frame): Moved to struct tty_output.
      (redisplay_internal): Updated to use previous_terminal_frame in tty_output.
      Allow for simultaneous refresh of multiple ttys.
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-5
      9628b887
  3. 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
  4. 01 Sep, 2003 1 commit
  5. 15 Jun, 2003 1 commit
  6. 04 Jun, 2003 1 commit
  7. 01 Jun, 2003 1 commit
  8. 04 Feb, 2003 1 commit
  9. 30 Oct, 2002 1 commit
  10. 03 Aug, 2002 1 commit
    • Andrew Choi's avatar
      In src: · 742fbed7
      Andrew Choi authored
      2002-08-03  Andrew Choi  <akochoi@shaw.ca>
      
              * macterm.c (USE_CARBON_EVENTS): New macro.
              (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
              (x_iconify_frame): Call CollapseWindow.
              (Vmac_reverse_ctrl_meta): New variable.
              (Vmac_wheel_button_is_mouse_2): New variable.
              (init_mac_drag_n_drop): New function.
              (mac_do_receive_drag): New function.
              (mac_handle_service_event): New function.
              (init_service_handler): New function.
              (mac_to_emacs_modifiers): New function.
              (mac_event_to_emacs_modifiers): New function.
              (mac_get_mouse_btn): New function.
              (mac_convert_event_ref): New function.
              (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
              SendEventToEventTarget, mac_event_to_emacs_modifiers, and
              mac_get_mouse_btn.
              (mac_initialize): Call init_mac_drag_n_drop and
              init_service_handler.
      
              * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
              lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
              (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
              TOOL_BAR_EVENT for MAC_OS as well.
              (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
              as for WINDOWS_NT.
              (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
      
              * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for
              MAC_OSX.
      
      In lisp:
      
      2002-08-03  Andrew Choi  <akochoi@shaw.ca>
      
              * term/mac-win.el: Set keys to enable mouse wheel support.
      742fbed7
  11. 13 Jun, 2002 1 commit
  12. 01 Apr, 2002 1 commit
  13. 10 Mar, 2002 1 commit
  14. 20 Oct, 2001 1 commit
  15. 05 Oct, 2001 1 commit
  16. 11 Aug, 2000 1 commit
  17. 13 Jul, 2000 1 commit
  18. 08 Jun, 2000 1 commit
  19. 03 Apr, 2000 1 commit
  20. 01 Apr, 2000 1 commit
  21. 10 Dec, 1999 1 commit
  22. 05 Sep, 1999 1 commit
  23. 21 Jul, 1999 1 commit
    • Gerd Moellmann's avatar
      (scroll_bar_end_scroll): New. · 6820433e
      Gerd Moellmann authored
      (scroll_bar_to_top): New.
      (scroll_bar_to_bottom): New.
      (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
       Some hooks with prototypes.
      Add function prototypes.
      6820433e
  24. 22 Feb, 1999 1 commit
  25. 02 Dec, 1998 1 commit
  26. 01 May, 1998 1 commit
  27. 14 Apr, 1998 1 commit
  28. 03 Sep, 1997 1 commit
  29. 19 Nov, 1996 1 commit
  30. 08 May, 1996 1 commit
  31. 07 May, 1996 1 commit
  32. 29 Jan, 1996 1 commit
  33. 27 Jan, 1996 1 commit
  34. 15 Jan, 1996 1 commit
  35. 12 Jan, 1996 1 commit
  36. 05 Jan, 1996 1 commit
  37. 25 Jul, 1995 1 commit
  38. 22 Feb, 1995 1 commit
  39. 27 Oct, 1994 1 commit
  40. 04 May, 1994 1 commit