1. 15 Sep, 2003 3 commits
    • Nalin Dahyabhai's avatar
      add options for exercising the cursor and highlight colors. flush output · 77672669
      Nalin Dahyabhai authored
      * src/vteapp.c: add options for exercising the cursor and highlight colors.
      * src/debug.c: flush output streams when we check if debugging is enabled,
      	because we'll probably output a string next.
      * src/iso2022.c: don't print a zero-length string.  Yay compiler warnings.
      * src/interpret.c: use g_print() instead of fprintf() to print.
      * src/keymap.c,src/ssfe.c: include <stdarg.h>, hopefully fixing bug #121880
      	(or not).
      77672669
    • Nalin Dahyabhai's avatar
      add vte_terminal_set_color_cursor. add vte_terminal_set_color_highlight · 2227ee86
      Nalin Dahyabhai authored
      * src/vte.h,src/vte.c: add vte_terminal_set_color_cursor.
      * src/vte.h,src/vte.c: add vte_terminal_set_color_highlight (#69776).
      * src/vte.c(vte_terminal_determine_colors): add parameters for specifying if
      	the cell being rendered is the cursor or is highlighted, probably for
      	being selected.  If either flag is set, and we've been given a color to
      	use for the purpose by a caller, use the supplied color, else use
      	inverse colors.
      2227ee86
    • Nalin Dahyabhai's avatar
      don't reset the conversion state when we hit an end-of-line. I wasn't · ac5d608c
      Nalin Dahyabhai authored
      * src/iso2022.c(process_control): don't reset the conversion state when we hit
      	an end-of-line.  I wasn't reading RFC1468 closely enough, as it states
      	that each line begins in the same encoding as the end of the previous
      	line, and read "application should reset before end-of-line" as
      	"terminal resets at end-of-line" (bug #122156).
      ac5d608c
  2. 11 Sep, 2003 5 commits
    • Nalin Dahyabhai's avatar
      silence a compiler warning. · 3f890cec
      Nalin Dahyabhai authored
      * src/vteapp.c: silence a compiler warning.
      3f890cec
    • Nalin Dahyabhai's avatar
      ask for LC_* in addition to LANG if weird spacing errors crop up. add · c52b22bd
      Nalin Dahyabhai authored
      * README: ask for LC_* in addition to LANG if weird spacing errors crop up.
      * src/vteconv.c,src/vteconv.h: add wrappers for _vte_conv which weed out some
      	compiler warnings.
      * src/iso2022.c: use _vte_conv_cu instead of _vte_conv.
      * src/trie.c: use _vte_conv_cu instead of _vte_conv.
      * src/vte.c: give _vte_terminal_fudge_pango_colors a return type again.
      * src/vtebg.c: ifdef out vte_bg_source_name, which is unused.
      * src/vtebg.c,src/vterdb.c: wrap calls to gdk_property_get to weed out some
      	compiler warnings.
      c52b22bd
    • Nalin Dahyabhai's avatar
      properly resolve colors and cell properties to drawing colors. add a · 47cdbfa5
      Nalin Dahyabhai authored
      * src/vte.c(vte_terminal_draw_cells_with_attributes): properly resolve colors
      	and cell properties to drawing colors.
      * src/vte.c(_vte_terminal_fudge_pango_colors): add a function for mapping GTK+
      	white-on-black preedit text to default reverse-colored text for the
      	terminal.
      * src/vte.c(_vte_terminal_translate_pango_cells): don't bother doing anything
      	with the attribute for a range if the list is NULL.  Fudge
      	white-on-black text to default colors in reverse so that it works when
      	the terminal is in a black-on-white color scheme.
      47cdbfa5
    • Nalin Dahyabhai's avatar
      map weight attributes to the terminal's bold attribute. · f92917c8
      Nalin Dahyabhai authored
      * src/vte.c(_vte_terminal_apply_pango_attr): map weight attributes to the
      	terminal's bold attribute.
      f92917c8
    • Nalin Dahyabhai's avatar
      add. don't discard the attributes list for the preedit string -- save · c9a838b1
      Nalin Dahyabhai authored
      * src/vte.c(_vte_terminal_map_pango_color): add.
      * src/vte.c(vte_terminal_im_preedit_changed): don't discard the attributes
      	list for the preedit string -- save them.
      * src/vte.c(vte_terminal_draw_cells_with_attributes): add.
      * src/vte.c(vte_terminal_paint): use draw_cells_with_attributes to use the
      	preedit attributes list when drawing the preedit string.  This changes
      	the way the preedit string is presented to the user, but it now looks
      	[more] like GTK+ suggests it should look, so it should be a good change.
      c9a838b1
  3. 13 Aug, 2003 6 commits
    • Nalin Dahyabhai's avatar
      add sequences for linux-console-cursor-attributes, which we'll ignore (bug · 3df7fa7f
      Nalin Dahyabhai authored
      * src/caps.c: add sequences for linux-console-cursor-attributes, which we'll
      	ignore (bug #108232).
      3df7fa7f
    • Nalin Dahyabhai's avatar
      doc update to note that directory and envv can be NULL for both. · 23eec875
      Nalin Dahyabhai authored
      * src/vte.c(vte_terminal_fork_command,vte_terminal_forkpty): doc update to note
      	that directory and envv can be NULL for both.
      23eec875
    • Nalin Dahyabhai's avatar
      exit on any error, to avoid leaving random unreaped children running. · bfabf9b4
      Nalin Dahyabhai authored
      * src/pty.c(_vte_pty_run_on_pty): exit on any error, to avoid leaving random
      	unreaped children running.  Accept NULL command indicating that no
      	exec() should occur, but still error out if command isn't NULL and
      	exec() fails.
      * src/pty.c(_vte_pty_fork_on_pty_name,_vte_pty_fork_on_pty_fd): store 0 as the
      	new child's PID if we're the child.
      * src/pty.c(main): don't run "tty" by default, test the forkpty() case instead.
      * src/vte.c(vte_terminal_fork_command): rename to _vte_terminal_fork_basic.
      	Remove code to replace NULL command with the user's shell.
      * src/vte.c(vte_terminal_fork_command): new (sort of)! wrap
      	_vte_terminal_fork_basic, replacing a NULL command with the user's
      	shell.
      * src/vte.c(vte_terminal_forkpty),src/vte.h: new! wrap _vte_terminal_fork_basic,
      	passing NULL for the command and argv arguments (bug #116450).
      * src/Makefile.am: update shared library version.
      * doc/reference/vte-sections.txt: add vte_terminal_forkpty.
      bfabf9b4
    • Nalin Dahyabhai's avatar
      don't create an accessible peer at init() time in debug mode. add a field · ed3e478c
      Nalin Dahyabhai authored
      * src/vte.c: don't create an accessible peer at init() time in debug mode.
      * gnome-pty-helper/gnome-pty-helper.c(struct pty_info): add a field to keep
      	track of whether or not we created a lastlog record (bug #116091).
      * gnome-pty-helper/gnome-pty-helper.c(shutdown_pty): also try to write a logout
      	record if pi->lastlog is true, because in doing so we free pi->data,
      	closing a leak (bug #116091).
      ed3e478c
    • Nalin Dahyabhai's avatar
      don't add the padding in when calculating the new window size. · b9cb58a1
      Nalin Dahyabhai authored
      * src/vteapp.c(resize_window): don't add the padding in when calculating the
      	new window size.
      b9cb58a1
    • Nalin Dahyabhai's avatar
      remove redundant type checks. return a boolean indicating whether or not · 21d67c81
      Nalin Dahyabhai authored
      * src/vte.c(vte_sequence_handler_character_attributes,
      	vte_sequence_handler_decset_internal): remove redundant type checks.
      * src/vte.c(all signal handlers): return a boolean indicating whether or not
      	to exit the processing loop instance early to allow the application to
      	deal with some input (usually along the lines of a signal requesting
      	that the terminal be resized) (bug #118938).
      21d67c81
  4. 12 Aug, 2003 1 commit
    • Padraig O'Briain's avatar
      New function containing initialization code previously in · 56a84e5e
      Padraig O'Briain authored
      2003-08-12  Padraig O'Briain  <padraig.obriain@sun.com>
      
      	* src/vteaccess.c:
      	(vte_terminal_initialize): New function containing initialization code
      	previously in vte_terminal_accessible_new. Also set role in
      	this function.
      	(vte_terminal_accessible_class_init): Specify function pointer for
      	vte_terminal_initialize.
      	(vte_terminal_accessible_get_type): Do not set instance data size or
      	GInstanceInitFunc. Remove vte_terminal_accessible_init.
      
      	This fixes bug #119694.
      56a84e5e
  5. 11 Aug, 2003 1 commit
  6. 05 Aug, 2003 1 commit
  7. 10 Jul, 2003 2 commits
  8. 04 Jul, 2003 1 commit
  9. 27 Jun, 2003 1 commit
    • Nalin Dahyabhai's avatar
      treat the "big5hkscs" encoding as an East Asian encoding, which uses · ddad9e00
      Nalin Dahyabhai authored
      * src/iso2022.c: treat the "big5hkscs" encoding as an East Asian encoding,
      	which uses ambiguous widths (#116078).  Report and patch from Roger So.
      * src/dumpkeys.c, src/iso2022.c, src/iso8859mode.c, src/nativeecho.c,
      	src/utf8echo.c, src/utf8mode.c, src/vte.c: don't use the literal escape
      	character, express it as an octal sequence.
      ddad9e00
  10. 16 Jun, 2003 4 commits
    • Nalin Dahyabhai's avatar
      add vertical-tab and form-feed to the list of control sequences. add. add. · 7e35a7b6
      Nalin Dahyabhai authored
      * src/caps.c: add vertical-tab and form-feed to the list of control sequences.
      * src/vte.c(vte_controL_sequence_handler_form_feed): add.
      * src/vte.c(vte_controL_sequence_handler_vertical_tab): add.
      7e35a7b6
    • Nalin Dahyabhai's avatar
      fix a compiler warning. · 790ab531
      Nalin Dahyabhai authored
      * src/vteaccess.c(xy_from_offset): fix a compiler warning.
      790ab531
    • Nalin Dahyabhai's avatar
      - add new header · 20073178
      Nalin Dahyabhai authored
      20073178
    • Nalin Dahyabhai's avatar
      add. Move private VteTerminal stuff which needs to be shared with other · 8adb2183
      Nalin Dahyabhai authored
      * src/vteint.h: add.  Move private VteTerminal stuff which needs to be shared
      	with other modules in the library here.
      * src/vtedraw.c, src/vtedraw.h: add get_char_width(), for use in drawing the
      	cursor.
      * src/vte.c(vte_invalidate_cursor_once): if the character under the cursor
      	doesn't fit into its cell, expose the column to the right of it so
      	that we can paint into the adjacent cell.
      * src/vte.c(vte_terminal_paint): when clearing the area behind the cursor or
      	drawing the hollow rectangle to indicate its position when we don't
      	have focus, use the visible width of the character instead of just
      	assuming it will fit.  This complies better with assertion 2.
      8adb2183
  11. 10 Jun, 2003 1 commit
  12. 04 Jun, 2003 2 commits
  13. 03 Jun, 2003 4 commits
  14. 01 Jun, 2003 1 commit
  15. 30 May, 2003 3 commits
    • Nalin Dahyabhai's avatar
      fix logic for skipping over particular settings so that setting 1048 · 3dc885c4
      Nalin Dahyabhai authored
      * src/vte.c(vte_sequence_handler_decset_internal): fix logic for skipping over
      	particular settings so that setting 1048 actually works.
      * src/vte.c(vte_terminal_process_incoming): in debug mode, print out characters
      	with codepoints higher than 255 in hex rather than decimal.
      * src/iso2022.c(_vte_iso2022_ambiguous_width): rename to
      	_vte_iso2022_ambiguous_width_guess because that's all we can do without
      	more context.
      * src/iso2022.c(_vte_iso2022_ambiguous_width): add for using the current
      	encoding to determine what the width of an ambiguously-wide character
      	should be.  This seems to work better.
      3dc885c4
    • Padraig O'Briain's avatar
      Add implementation for get_character_extents, get_offset_at_point and · 7fe2fc15
      Padraig O'Briain authored
      2003-05-30  Padraig O'Briain  <padraig.obriain@sun.com>
      	* src/vteaccess.c: Add implementation for get_character_extents,
      	get_offset_at_point and get_run_attributes. This fixes bug #110770.
      	Add casts to fix complier warnings on Solaris.
      
      	* src/vtexft.c (_vte_xft_text_extents): Do not call return as function
      	returns void. Fixes compiler error on Solaris.
      7fe2fc15
    • Nalin Dahyabhai's avatar
      require -i for icon-title-changed messages, which got really annoying · 1e67e734
      Nalin Dahyabhai authored
      * src/vteapp.c: require -i for icon-title-changed messages, which got really
      	annoying really fast.
      * src/trie.c(main): use g_quark_from_static_string for static strings.
      1e67e734
  16. 29 May, 2003 2 commits
    • Nalin Dahyabhai's avatar
      fix newline stuffing (used in linefeed mode). rename to · 815eb0a3
      Nalin Dahyabhai authored
      * src/vte.c(vte_terminal_send): fix newline stuffing (used in linefeed mode).
      * src/vte.c(vte_unicode_strlen): rename to vte_unichar_strlen.
      * src/vte.c(vte_terminal_set_title_internal): don't leak the new title in the
      	unlikely cases.
      * src/vte.c(vte_terminal_process_incoming): be more careful with control
      	characters to avoid cases where we could be tricked into a loop.
      * src/vteapp.c: emit a message when the icon title is changed.
      815eb0a3
    • Nalin Dahyabhai's avatar
      handle control characters in the middle of control sequences. fix origin · 8de1e351
      Nalin Dahyabhai authored
      * src/vte.c(vte_terminal_process_incoming): handle control characters in the
      	middle of control sequences.
      * src/vte.c(vte_sequence_handler_cm): fix origin mode.
      * src/vte.c(vte_sequence_handler_cv): fix origin mode.
      * src/vte.c(vte_sequence_handler_cs): snap the cursor to the scrolling region
      	which is set.
      * src/table.c(_vte_table_extract_number): extract a number digit by digit as
      	we do in the trie parser.
      * src/vte.h: declare 'struct vte_char_attributes' again to restore API back
      	compat with 0.10.x.
      * src/iso2022.c(_vte_iso2022_sequence_length): don't recognize PM messages --
      	Xterm doesn't do anything with them and we don't want to appear to hang
      	when we're really just waiting for the end of the message.
      8de1e351
  17. 28 May, 2003 2 commits
    • Nalin Dahyabhai's avatar
      only apply DPI if we were able to get a value. use the display and screen · fe6545d6
      Nalin Dahyabhai authored
      * src/vtefc.c(_vte_fc_defaults_from_rdb): only apply DPI if we were able to get
      	a value.
      * src/vterdb.c, src/vterdb.h: use the display and screen of a passed-in widget
      	if asked to do so, else use screen 0 of the default display.
      fe6545d6
    • Nalin Dahyabhai's avatar
      check for GTK+ 2.2, and if found, force use of multihead-safe APIs to try · d5839378
      Nalin Dahyabhai authored
      * configure.in: check for GTK+ 2.2, and if found, force use of multihead-safe
      	APIs to try to flush out some bugs.
      * src/vte.c, src/vteapp.c, src/vtedraw.c, src/vtefc.c, src/vteglyph.c: clean
      	up some sloppy multihead changes.
      * src/vte.c, src/vte.h (vte_terminal_match_set_cursor_type): add.
      * src/vtedraw.c, src/vtedraw.h: add a draw_char() method which is allowed to
      	fail.
      * src/vte.c(vte_terminal_draw_graphic): separate the width of a column and the
      	number of columns to be drawn.  Use _vte_draw_char() to avoid
      	crude approximations of characters when we have a font for them.
      d5839378