aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (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.
* (encode_terminal_code): Check validity of character code.Kenichi Handa1997-03-181-4/+9
|
* Include charset.h and coding.h.Karl Heuer1997-02-201-43/+139
| | | | | | | | | | | (TS_end_italic_mode, TS_italic_mode, TS_bold_mode): New variables. (TS_end_bold_mode, TS_end_underscore_mode): New variables. (TS_underscore_mode): New variable. (encode_terminal_code): New function. (write_glyphs, insert_glyphs): Perform character code conversion on output to a terminal. (term_init): Initialize TS_bold_mode, TS_end_bold_mode, TS_end_underscore_mode, and TS_underscore_mode.
* (fatal): Print a newline at the end.Richard M. Stallman1997-01-201-9/+10
| | | | (term_init): Calls to fatal changed.
* (term_init): Use new name initialize_w32_display.Geoff Voelker1997-01-201-1/+1
|
* (term_init): Use new vertical scroll bar enumerated type.Richard M. Stallman1996-09-211-5/+9
| | | | Use new macro SET_FRAME_WIDTH.
* (OUTPUT_IF, OUTPUT): Cast frame height to int.Richard M. Stallman1996-09-031-2/+2
|
* (term_init): Avoid type-mismatch calling get_frame_size.Richard M. Stallman1996-09-031-2/+7
|
* (Vring_bell_function): New variable.Richard M. Stallman1996-08-291-0/+28
| | | | | (syms_of_term): Set up Lisp variable. (ring_bell): Use Vring_bell_function.
* (FRAME_TERMCAP_P) [WINDOWSNT && !HAVE_NTGUI]:Richard M. Stallman1996-04-261-2/+0
| | | | Remove conditional for HAVE_NTGUI.
* (calculate_ins_del_char_costs): Use proper frame's width.Richard M. Stallman1996-04-101-1/+1
|
* Update FSF's address in the preamble.Erik Naggum1996-01-151-1/+2
|
* Comment fixes.Karl Heuer1996-01-051-1/+1
|
* [HAVE_NTGUI] (FRAME_TERMCAP_P): Don't redefine.Geoff Voelker1995-11-071-0/+2
|
* (term_init): Alternative error messages for TERMCAP/TERMINFO.Richard M. Stallman1995-06-281-2/+12
|
* (cursor_to, clear_to_end_of_line_raw):Karl Heuer1995-06-051-0/+11
| | | | | If chars_wasted is 0, do nothing. (clear_end_of_line): Don't die if chars_wasted is 0.
* (term_init): MagicWrap implies AutoWrap.Karl Heuer1995-04-241-2/+4
|
* Update copyright.Karl Heuer1995-04-071-1/+1
|
* Comment change.Richard M. Stallman1995-03-291-1/+1
|
* (term_init) [TERMINFO]: Make error message more accurate.Karl Heuer1995-02-251-4/+20
|
* (calculate_costs): Update max_frame_height, max_frame_width.Richard M. Stallman1995-02-171-10/+20
| | | | They determine length of chars_wasted, copybuf and char_ins_del_vector.
* (term_get_fkeys_1): Bug fix for function key above f19.Richard M. Stallman1995-01-191-2/+2
|
* (write_glyphs, insert_glyphs): Call checkmagic.Karl Heuer1995-01-171-2/+4
|
* (term_init): Fatal error if screen is too small.Richard M. Stallman1995-01-041-0/+5
|
* (scroll_region_cost): New variable.Richard M. Stallman1994-12-261-0/+4
| | | | (calculate_costs): Put scroll region overhead in scroll_region_cost.
* (calculate_costs): Set FRAME_COST_BAUD_RATE.Richard M. Stallman1994-12-061-10/+4
| | | | | | Don't test dont_calculate_costs. (dont_calculate_costs): Variable deleted. (term_init): Don't set dont_calculate_costs.