aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate originalAndrew Innes2001-01-201-0/+11
| | | | redefinition.
* (update_end): Don't check updating_frame; for some reasonAndrew Innes2001-01-051-1/+1
| | | | | this can be 0 sometimes, such as after dismissing a popup menu, and isn't necessary given the explicit frame argument.
* (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.Andrew Innes2001-01-021-12/+0
|
* (encode_terminal_code): Remove unused variable `c'.Eli Zaretskii2001-01-021-1/+0
|
* Don't try to include termcap.h; see comment there.Gerd Moellmann2000-11-211-1/+5
|
* (reassert_line_highlight): Reverse the inverse-video effectEli Zaretskii2000-10-281-1/+1
| | | | if inverse_video is non-zero.
* Initial check-in: changes for building Emacs under Mac OS.Andrew Choi2000-10-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-23 Andrew Choi <akochoi@i-cable.com> * dispextern.h [macintosh]: Include macgui.h instead of macterm.h. * dispnew.c [macintosh]: Include macterm.h. (init_display) [macintosh]: initialization for window system. * emacs.c (main) [macintosh]: Call syms_of_textprop, syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm, syms_of_search, x_term_init, and init_keyboard before calling init_window_once. Also, call syms_of_xmenu. * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of default fontset to Monaco. * frame.c [macintosh]: Include macterm.h. Remove declarations of NewMacWindow and DisposeMacWindow. (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame instead of calling NewMacWindow and setting fields of f->output_data.mac directly. Call init_frame_faces. (Fdelete_frame) [macintosh]: Remove unused code. (Fmodify_frame_parameters) [macintosh]: Call x_set_frame_parameters instead of mac_set_frame_parameters. * frame.h [macintosh]: Define menu_bar_lines field in struct frame. Define FRAME_EXTERNAL_MENU_BAR macro. * keyboard.c [macintosh]: Include macterm.h. (kbd_buffer_get_event) [macintosh]: Generate delete_window_event and menu_bar_activate_event type events as for X and NT. (make_lispy_event) [macintosh]: Construct lisp events of type MENU_BAR_EVENT as for X and NT. * sysdep.c [macintosh]: Remove declaration for sys_signal. Include stdlib.h. Remove definition of Vx_bitmap_file_path. (sys_subshell) [macintosh]: Remove definition entirely. (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and Vwindow_system_version here. Remove initialization of Vx_bitmap_file_path. (read_input_waiting): Correct the number of parameters passed to read_socket_hook. Move all Macintosh functions to mac/mac.c. * term.c [macintosh]: Include macterm.h. * window.c [macintosh]: Include macterm.h. * xdisp.c [macintosh]: Include macterm.h. Declare set_frame_menubar and pending_menu_activation. (echo_area_display) [macintosh]: Do not return if terminal frame is the selected frame. (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f). Allow only the selected frame to set menu bar. (redisplay_window) [macintosh]: Obtain menu bar to redisplay by calling FRAME_EXTERNAL_MENU_BAR (f). (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f). * xfaces.c [macintosh]: Include macterm.h. Define x_display_info and check_x. Declare XCreateGC. Define x_create_gc and x_free_gc. Initialize font_sort_order. (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT, but call x_list_fonts instead of w32_list_fonts. (Finternal_face_x_get_resource) [macintosh]: Do not call display_x_get_resource. (prepare_face_for_display) [macintosh]: Set xgcv.font. (realize_x_face) [macintosh]: Load the font if it is specified in ATTRS. (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt. * cus-edit.el (custom-button-face): Use 3D look for mac. (custom-button-pressed-face): Likewise. * faces.el (set-face-attributes-from-resources): Handle mac frames in the same way as x and w32 frames. (face-valid-attribute-values): Likewise. (read-face-attribute): Likewise. (defined-colors): Likewise. (color-defined-p): Likewise. (color-values): Likewise. (display-grayscale-p): Likewise. (face-set-after-frame-default): Likewise. (mode-line): Same default face as for x and w32. (tool-bar): Likewise. * frame.el: Remove call to frame-notice-user-settings at end of the file. * info.el (Info-fontify-node): make underlines invisible for mac as for x, pc, and w32 frame types. * term/mac-win.el: New file.
* Avoid some more compiler warnings.Gerd Moellmann2000-09-211-1/+1
|
* Include keyboard.h before frame.h.Andrew Innes2000-08-221-1/+1
|
* (write_glyphs): Also turn off inverse video after turningGerd Moellmann2000-08-161-6/+11
| | | | | | | | | | off other appearances in case TS_exit_attribute_mode is not equal to TS_end_standout_mode. (insert_glyphs): Turn inverse video on/off for each run of glyphs with the same face. (turn_off_face): Reset standout_mode only if TS_exit_attribute_mode has been output and TS_exit_attribute_mode is equal to TS_end_standout_mode.
* (write_glyphs): Use a locally declared conversion_buffer.Kenichi Handa2000-08-161-5/+9
| | | | (insert_glyphs): Likewise.
* (turn_off_face): Reset standout_mode when resettingGerd Moellmann2000-08-151-1/+4
| | | | | apparances with capability `me'. (write_glyphs): Switch on inverse video before each face change.
* [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.Dave Love2000-06-251-0/+5
|
* (append_glyph): Revert change of 2000-06-06.Gerd Moellmann2000-06-061-1/+1
|
* (encode_terminal_code): Change the way to check ifKenichi Handa2000-06-061-2/+5
| | | | | terminal coding does any conversion. (append_glyph): Set glyph->pixel_width correctly.
* Correct a typo in a comment.Eli Zaretskii2000-05-281-1/+1
|
* (produce_glyphs): Don't treat eight-bit-* charsets as multibyte.Eli Zaretskii2000-05-281-0/+11
| | | | From Kenichi Handa.
* (encode_terminal_code): Set coding->src_multibyte properly.Kenichi Handa2000-05-231-0/+4
|
* (produce_special_glyphs): Use CHAR_BYTES instead ofKenichi Handa2000-05-201-2/+2
| | | | CHAR_LEN.
* (produce_glyphs): Remove reference to struct it's prompt_width.Gerd Moellmann2000-04-241-2/+2
|
* make_number/XINT/XUINT conversions; EQ/== fixes; ==Qnil -> NILPKen Raeburn2000-04-051-1/+1
|
* (TN_no_color_video): New variable.Gerd Moellmann2000-04-011-9/+52
| | | | | | | | (term_init): Intitialize TN_no_color_video. (enum no_color_bit): New enumeration. (MAY_USE_WITH_COLORS_P): New macro. (turn_on_face): Use it to determine if attributes may be used combined with colors.
* (calculate_costs): Remove code dealing with X frames.Gerd Moellmann2000-03-191-10/+0
|
* (term_init) [WINDOWSNT]: Initialize TN_max_colors.Jason Rumney2000-01-301-0/+1
|
* (encode_terminal_code): Fix the previous change.Kenichi Handa2000-01-041-2/+5
|
* (Ftty_display_color_p): Accept an optional argument FRAME.Eli Zaretskii2000-01-021-3/+4
|
* (insert_glyphs): Pass glyph, not &glyph, toEli Zaretskii2000-01-021-2/+2
| | | | encode_terminal_code.
* (encode_terminal_code): Adjusted for the change of structKenichi Handa1999-12-271-41/+52
| | | | | | glyph and GLYPH_FROM_CHAR_GLYPH. (write_glyphs) (insert_glyphs) (append_glyph): Adjusted for the change of struct glyph.
* Changes for separate unspecified foreground and background colorsEli Zaretskii1999-12-151-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on character terminals: * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR) (FACE_TTY_DEFAULT_BG_COLOR): New macros. * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables. (syms_of_xfaces): Initialize and staticpro them. (tty_defined_color): If the color name is unspecified-fg or unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value. (tty_color_name): If the color pixel value is either FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg or Qunspecified_bg, respectively. (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg and Qunspecified_bg for foreground and background colors. (realize_default_face): If the foreground and background colors are not specified, default to Qunspecified_fg and Qunspecified_bg. (realize_tty_face): By default, set the face colors to FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR. [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined. Reverse the colors if the default colors were reversed. * dispnew.c (init_display): Initialize the frame pixels of the initial frame to FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR. * term.c (turn_on_face): If the default fore- and background colors are reversed, enter inverse video mode. Don't send color escape sequences for unspecified foreground and background colors. (turn_off_face): Handle unspecified-fg and unspecified-bg colors. * dosfns.c (unspecified_colors): New variable. (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg color names, return FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR, respectively. (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and Qunspecified_bg, respectively. * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR as pixel values. * faces.el (face-read-integer, read-face-attribute) (color-defined-p, color-values): Allow color values unspecified-fg and unspecified-bg, handle them as unspecified.
* (encode_terminal_code): Delete codes for a compositeKenichi Handa1999-12-151-21/+17
| | | | | | character. Adjusted for the change of CHAR_STRING. (produce_glyphs): When called, it->what can be IT_COMPOSITION. Delete codes for a composite character.
* (term_init): If "op" isn't available, don't support colorGerd Moellmann1999-11-121-9/+14
| | | | | because we can't switch back to the default foreground and background.
* (OUTPUT_IF, OUTPUT1_IF): Use do-while.Gerd Moellmann1999-09-151-10/+11
| | | | | | (encode_terminal_code): Remove unused variables. (turn_off_face): Ditto. (toplevel): Include termcap.h if HAVE_TERMCAP_H.
* (OUTPUT): Change for Lisp_Object selected_frame.Gerd Moellmann1999-09-131-64/+79
| | | | | | | | (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes, set_terminal_window, set_scroll_region, reassert_line_highlight, change_line_highlight, cursor_to, raw_cursor_to, clear_to_end, clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw, encode_terminal_code, write_glyphs, term_init): Ditto.
* (produce_glyphs): Set iterator's physical heightGerd Moellmann1999-08-061-2/+2
| | | | information.
* Rewritten.Gerd Moellmann1999-07-211-77/+566
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (append_glyph): New. (update_end): Turn cursor on only if selected window's cursor_off_p flag is not set. (TS_cursor_visible): Renamed from TS_visual_mode. (TS_cursor_normal): Renamed from TS_end_visual_mode. (TS_cursor_invisible): New. (term_init): Initialize TS_cursor_invisible. (tty_hide_cursor): New. (tty_show_cursor): New. (update_end): Show tty cursor. (update_begin): Hide tty cursor to prevent cursor flickering during redisplays triggered by timers (stealth fontification). (estimate_mode_line_height): New. (estimate_mode_line_height_hook): New. (OUTPUT_IF): Make replacement text have statement form. (OUTPUT1_IF): Ditto. (TS_italic_mode, TS_end_italic_mode): Removed. (TS_bold_mode): Removed. (TS_underscore_mode, TS_end_underscore_mode): Removed. (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New. (TS_enter_reverse_mode): New. (TS_enter_underline_mode, TS_exit_underline_mode): New. (TN_magic_cookie_glitch_ul): New. (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New. (TS_exit_attribute_mode): New. (TN_max_colors, TN_max_pairs, TS_orig_pairs): New. (TS_set_foreground, TS_set_background): New. (reset_terminal_modes): Switch colors back to default. (write_glyphs): Turn face on before writing text, turn it off afterwards. (insert_glyphs): Ditto. (term_init): Initialize new terminal capability variables. (turn_on_face): Turn a face on. (turn_off_face): Turn a face off. (global): Rewrite for new glyphs.
* (term_init): Use xmalloc, not malloc.Karl Heuer1999-03-041-3/+3
|
* (encode_terminal_code): Fix previous change.Kenichi Handa1999-02-051-9/+15
|
* (encode_terminal_code): Handle raw 8-bit codes correctly.Kenichi Handa1998-09-281-6/+12
|
* (write_glyphs): When terminal_coding require flushing,Kenichi Handa1998-08-181-1/+1
| | | | | call encode_coding with "" as the SOURCE arg so that ccl_driver correctly processes eof block of a CCL program.
* Include cm.h after dispextern.h to avoid name conflictsGeoff Voelker1998-04-291-2/+3
| | | | | in Windows system headers. (term_init) [WINDOWSNT]: Do not include remainder of function.
* (reset_terminal_modes): Only invoke hook if defined.Geoff Voelker1998-04-171-1/+2
|
* Fix -Wimplicit warnings.Andreas Schwab1998-04-141-34/+63
|
* (encode_terminal_code): Adjusted for the change ofKenichi Handa1998-01-221-24/+22
| | | | | | | encode_coding. (write_glyphs): Likewise. Adjusted for the change of struct coding_system. (insert_glyphs): Likewise.
* (encode_terminal_code): Use new macros defined inKenichi Handa1997-11-081-2/+2
| | | | | coding.h. (write_glyphs): Likewise.
* (term_get_fkeys_1): Use kH as alternate for move-to-last-line.Richard M. Stallman1997-08-161-0/+2
|
* (encode_terminal_code): Use safe_terminal_coding ifKenichi Handa1997-08-101-12/+22
| | | | | terminal_coding seems to encode Emacs' internal code as is. (write_glyphs): Likewise.
* Minor cleanup.Richard M. Stallman1997-07-301-2/+5
|
* (insert_glyphs): Use &, not &&.Richard M. Stallman1997-05-311-1/+1
|
* Fix comment typo.Karl Heuer1997-04-031-1/+1
|
* (insert_glyphs): Fix a bug which turns up whenKenichi Handa1997-03-191-1/+1
| | | | TS_ins_multi_chars is 0.