2007-02-04 Chris Wilson Micro-opts. * src/table.c: (_vte_table_match): No need set to NULL. * src/vte.c: (_vte_terminal_ensure_cursor): If we have added some rows, the last is the current. 2007-02-04 Chris Wilson Move window/icon title changed to the post-processing emission - helps with the artificial benchmark of replaying a recorded jhbuild script. * src/vte-private.h: * src/vte.c: (vte_terminal_finalize), (vte_terminal_emit_icon_title_changed), (vte_terminal_emit_window_title_changed), (vte_terminal_emit_pending_signals): * src/vteseq.c: (vte_sequence_handler_set_title_internal): 2007-02-04 Chris Wilson Broke clear-to-end-of-line by lowering the number of cells appended, instead of the number of cells invalidated. * src/vte.c: (vte_terminal_draw_rows): * src/vteseq.c: (vte_sequence_handler_ce): 2007-02-04 Chris Wilson cf Bug 83285 – Treacle-slow scrolling in gnome-terminal on unaccelerated X server Another chunk of performance improvements - the majority focusing on reducing the amount of work down per interrupt (input data from child). To handle reads without addition copies VTE_INPUT_CHUNK_SIZE chunks are allocated on demand and filled from read with no further copy - previously the read was into a local buffer and then immediately copied into a _vte_buffer. _vte_iso2022_process() is then adjusted to use a ptr+length, rather than a _vte_buffer and is called for every input chunk (taking special care over the boundary cases). * src/interpret.c: (main): * src/iso2022.c: (_vte_iso2022_fragment_input), (process_8_bit_sequence), (process_cdata), (_vte_iso2022_process): * src/iso2022.h: * src/vte-private.h: * src/vte.c: (get_chunk), (release_chunk), (prune_chunks), (_vte_incoming_chunks_release), (_vte_incoming_chunks_length), (_vte_incoming_chunks_count), (_vte_incoming_chunks_reverse), (vte_terminal_match_check_internal), (_vte_terminal_ensure_cursor), (vte_terminal_set_colors), (_vte_terminal_insert_char), (vte_terminal_catch_child_exited), (vte_terminal_eof), (vte_terminal_process_incoming), (_vte_terminal_feed_chunks), (vte_terminal_io_read), (vte_terminal_feed), (vte_terminal_send), (vte_terminal_init), (vte_terminal_finalize), (vte_terminal_reset), (remove_from_active_list), (need_processing), (update_regions), (update_repeat_timeout): * src/vte.h: * src/vteseq.c: (vte_sequence_handler_cb), (vte_sequence_handler_ce), (vte_sequence_handler_ec): 2007-02-04 Chris Wilson Store whether the codeset is ambiguous in a state variable, rather than recomputing the ambiguous width every processing loop. * src/iso2022.c: (_vte_iso2022_is_ambiguous), (_vte_iso2022_state_new), (_vte_iso2022_find_nextctl): 2007-02-04 Chris Wilson * src/vtexft.c: (_vte_xft_create), (_vte_xft_destroy): Remove zero-initialisers after g_slice_new0(). * src/vtexft.c :(_vte_xft_set_text_font): Print out the width range. 2007-02-04 Chris Wilson * configure.in: Missing space between -Wflags. 2007-02-04 Chris Wilson Eliminate the temporary g_sliced parameter list, in favour of an on-stack list. * src/table.c: (_vte_table_arginfo_head_init), (_vte_table_arginfo_alloc), (_vte_table_arginfo_head_revert), (_vte_table_arginfo_head_reverse), (_vte_table_arginfo_head_finalize), (_vte_table_addi), (_vte_table_matchi), (_vte_table_extract_string), (_vte_table_match): 2007-02-02 Chris Wilson * src/vtefc.c: (_vte_fc_patterns_from_pango_font_desc): Dump the chosen fonts to VTE_DEBUG_MISC. * src/vteft2.c: (_vte_ft2_set_text_font): Print out the font metrics ala vtexft.c 2007-02-02 Chris Wilson Bug 322241 – Please switch to pkg-config to check for freetype * configure.in: Prefer to use the freetype2.pc if available. 2007-02-02 Chris Wilson Bug 322240 – Usage of pkg-config privates header * vte.pc.in: Move @FT2_LIBS@ to Libs.private. 2007-02-01 Chris Wilson cf Bug 403275 – crash in Terminal: I was typing reset on th... Not the crash, just a freeze found whilst trying to reproduce the bug on trunk. * src/vte.c: (remove_from_active_list): Don't remove the terminal from the active list if it still has pending redraws. * src/vte.c: (process_timeout), (update_timeout): Reorder the loop to remove the terminal from the active list if it no longer needs processing. 2007-02-01 Chris Wilson * perf/scroll.vim: Extract the bits the test needs out of debian.vim. 2007-02-01 Chris Wilson As spotted on bug 399617c8, we convert an array of unichars to a string and then iterate over the string interpreting bytes as unichars. * src/table.c: (_vte_table_extract_numbers): Dispense with the temporary string and process the unichar array directly. 2007-02-01 Chris Wilson Bug 403159 – XftDrawSetClipRectangles() silently fails on ppc->i386 * src/vtexft.c: (_vte_xft_clip): Precompute clip offsets. 2007-02-01 Chris Wilson Bug 382245 – __PyGtk_API multiply defined in python module * configure.in: Add -fno-common to MAYBE_WARN in order to catch future errors of this type. * python/vte.override: Define PYGTK_NO_IMPORT. 2007-01-31 Chris Wilson Bug 155687 – Scroll region \E[NN;MMr should set cursor to home Patch originally by Michele Baldessari. * src/vteseq.c: (vte_sequence_handler_cs): Move the cursor to (0,0) rather than clamping the cursor to be inside the scroll region. 2007-01-31 Chris Wilson In a few places the contents of a GValue were being used without checking that they were of the expected type. cf Bug 117945 which mentions stack corruption inside vte_sequence_handler_delete_lines() - one of the corrected instances. * src/vteseq.c: (vte_sequence_handler_al), (vte_sequence_handler_cs), (vte_sequence_handler_cS), (vte_sequence_handler_dl), (vte_sequence_handler_character_attributes), (vte_sequence_handler_insert_lines), (vte_sequence_handler_delete_lines), (vte_sequence_handler_device_status_report), (vte_sequence_handler_dec_device_status_report): Check that the GValue holds a long before dereference. 2007-01-31 Chris Wilson Back to the old-style io loop as _vte_buffer_append() is too slow - on a slow system the read can fill before the data is copied (even more apparent under valgrind). * src/vte-private.h: * src/vte.c: (vte_terminal_io_read): 2007-01-31 Chris Wilson Use the display stashed inside the font and not the default display! * src/vtexft.c: (_vte_xft_char_exists), (_vte_xft_text_extents), (_vte_xft_font_open), (_vte_xft_font_close), (_vte_xft_font_for_char), (_vte_xft_draw_text): 2007-01-31 Chris Wilson A mixed bag of cleanups. * configure.in: * src/pty.c: (_vte_pty_set_utf8): Test for existence of tc[sg]etattr. * src/vte-private.h: * src/vte.c: (vte_terminal_emit_adjustment_changed), (vte_terminal_queue_adjustment_changed), (vte_terminal_set_color_internal), (vte_terminal_handle_sequence), (_vte_terminal_enable_input_source), (vte_terminal_io_read), (vte_terminal_init), (vte_terminal_unrealize), (vte_terminal_finalize), (vte_terminal_background_update), (vte_terminal_queue_background_update), (vte_terminal_emit_pending_signals), (process_timeout), (update_repeat_timeout), (update_timeout): Move idle signal emission to display handlers. * src/vtedraw.h: Add '&' to the single width characters. * src/vteseq.c: (_vte_sequence_get_handler): * src/vteseq.h: Drop the extraneous GQuark parameter. * src/vtexft.c: (_vte_xft_set_text_font): Avoid use of strlen for a compile-time fixed length string. 2007-01-31 Chris Wilson Bug 147784 – cursor unvisible under mouse highlight Original patch by Chris Health * src/vte.c: (vte_terminal_paint): Reverse cursor color if it is in the selected region and draw it as an outline. 2007-01-31 Chris Wilson Bug 368894 – crash in Terminal: I started gnome-terminal... * src/vtebg.c: (vte_bg_cache_search), (vte_bg_get_pixmap), (vte_bg_get_pixbuf): When retrieving a cached pixmap check that the visual matches the current request. 2007-01-31 Chris Wilson Use gdk_error_trap_{push,pop} around raw Xft calls - about a path outside of vte_draw_{begin,end}. * src/vtexft.c: (_vte_xft_set_text_font): 2007-01-31 Chris Wilson Use gdk_error_trap_{push,pop} around raw X11 and Xft calls. cf Bug 368894. * src/vtexft.c: (_vte_xft_font_for_char), (_vte_xft_start), (_vte_xft_end): 2007-01-31 Chris Wilson Use gperf to calculate a more optimal vte_sequence_get_handler(). This reduces vte_sequence_get_handler() from ~13% of the runtime during 'seq 1 1e6' to ~.5% (cumulative). * src/Makefile.am: * src/vteseq-2.c: (vteseq_2_hash), (vteseq_2_lookup): * src/vteseq-2.gperf: * src/vteseq-n.c: (vteseq_n_hash), (vteseq_n_lookup): * src/vteseq-n.gperf: * src/vteseq.c: (_vte_sequence_get_handler): 2007-01-31 Chris Wilson Rudimentary vim scrolling benchmark. * perf/Makefile.am: * perf/UTF-8-demo.txt: * perf/scroll.vim: * perf/vim.sh: 2007-01-30 Chris Wilson Bug 402329 – Rendering problem with underlines and cursor * src/vte.c: (vte_terminal_paint): Check hilite state when redrawing character under cursor. 2007-01-29 Chris Wilson * src/vte-private.h: * src/vte.c: (vte_terminal_io_read): Clean up the read IO loop. 2007-01-29 Chris Wilson NULL return from pcre_study() does not necessarily mean an error occurred. * src/vteregex.c: (_vte_regex_compile), (_vte_regex_exec): 2007-01-29 Chris Wilson * src/vte.c: (_vte_terminal_set_pointer_visible), (_vte_terminal_fudge_pango_colors): Kill a couple more compiler warnings. 2007-01-29 Chris Wilson Bug 336105 – gnome-terminal crashes when termcap not found * src/matcher.c: (_vte_matcher_init): * src/vte-private.h: * src/vte.c: (vte_terminal_set_default_tabstops), (vte_terminal_key_press), (vte_terminal_set_emulation), (_vte_terminal_inline_error_message), (vte_terminal_set_termcap), (vte_terminal_init), (vte_terminal_finalize), (vte_terminal_draw_cells): Detect and issue an inline warning when we fail to load a termcap. 2007-01-29 Chris Wilson Tighten the invalidated cells. * src/vte.c: (_vte_terminal_select_text): * src/vteseq.c: (vte_sequence_handler_cb): 2007-01-29 Chris Wilson More compiler warnings. * src/vtepangox.c: (_vte_pango_x_set_text_font), (_vte_pango_x_draw_text): * src/vteregex.c: (_vte_regex_exec): 2007-01-29 Chris Wilson Detect availability of PCRE. * configure.in: * src/Makefile.am: 2007-01-29 Chris Wilson Improve handling of multi-row clears. * src/vte.c: (vte_terminal_draw_cells), (vte_terminal_draw_rows), (vte_terminal_paint): 2007-01-29 Chris Wilson Add debugging flags for printing out cells contents and attributes as they are rendered. * src/debug.c: (_vte_debug_parse_string): * src/debug.h: * src/vte.c: (vte_terminal_draw_cells): 2007-01-29 Chris Wilson * src/vte.c: (vte_terminal_draw_rows): Don't issue glyph items for blank cells. 2007-01-29 Chris Wilson * configure.in: Add -Wshadow to MAYBE_WARN * src/ring.c: (_vte_ring_remove): * src/table.c: (_vte_table_matchi): * src/vtedraw.c: (_vte_draw_clip): * src/vteskel.c: Clean up some compiler warnings. 2007-01-29 Chris Wilson * src/vteskel.c: Add the NULL clip func to the skeleton function table. 2007-01-29 Chris Wilson Update match hilite before showing the pointer as the choice of cursor depends on whether the pointer is above a matched region. * src/vte.c: (vte_terminal_motion_notify), (vte_terminal_button_press), (vte_terminal_button_release): 2007-01-29 Chris Wilson Only update the matched region if we move the pointer outside of the currently matched region. And only invalidate the cells underneath the matched region. * src/vte.c: (_vte_invalidate_region), (vte_terminal_match_hilite_clear), (cursor_inside_match), (vte_terminal_match_hilite), (vte_terminal_draw_rows): 2007-01-29 Chris Wilson * src/table.c: (_vte_table_free): Fix a memleak. 2007-01-29 Chris Wilson ==26147== 2,895 (352 direct, 2,543 indirect) bytes in 22 blocks are definitely lost in loss record 107 of 170 ==26147== at 0x4021380: malloc (vg_replace_malloc.c:149) ==26147== by 0x4E85965: g_malloc (gmem.c:131) ==26147== by 0x4E95537: g_slice_alloc (gslice.c:777) ==26147== by 0x4E7C255: g_list_prepend (glist.c:95) ==26147== by 0x428B887: vte_terminal_feed (vte.c:10991) ==26147== by 0x429DD20: vte_terminal_io_read (vte.c:3214) ==26147== by 0x4EA7A8C: g_io_unix_dispatch (giounix.c:162) ==26147== by 0x4E7E481: g_main_context_dispatch (gmain.c:2045) ==26147== by 0x4E8145E: g_main_context_iterate (gmain.c:2677) ==26147== by 0x4E81808: g_main_loop_run (gmain.c:2881) ==26147== by 0x45BA503: gtk_main (gtkmain.c:1148) ==26147== by 0x805F7A3: main (terminal.c:1773) * src/vte.c: (remove_from_active_list), (process_timeout), (update_repeat_timeout): g_list_delete_link() is the one that actually frees the link. s/g_list_remove_link/g_list_delete_link/. 2007-01-29 Chris Wilson ==26147== Conditional jump or move depends on uninitialised value(s) ==26147== at 0x42AB9F7: _vte_rdb_search (vterdb.c:95) ==26147== by 0x42ABB40: _vte_rdb_quark (vterdb.c:201) ==26147== by 0x42ABB9F: _vte_rdb_get_hintstyle (vterdb.c:241) ==26147== by 0x42A7952: _vte_fc_patterns_from_pango_font_desc (vtefc.c:302) ==26147== by 0x42B4E9B: _vte_xft_set_text_font (vtexft.c:103) ==26147== by 0x42A6BE5: _vte_draw_set_text_font (vtedraw.c:258) ==26147== by 0x428C62B: vte_terminal_ensure_font (vte.c:5963) ==26147== by 0x4290295: vte_terminal_size_request (vte.c:6613) ==26147== by 0x4E25228: g_cclosure_marshal_VOID__BOXED (gmarshal.c:566) ==26147== by 0x4E17038: g_type_class_meta_marshal (gclosure.c:567) ==26147== by 0x4E188FC: g_closure_invoke (gclosure.c:490) ==26147== by 0x4E29779: signal_emit_unlocked_R (gsignal.c:2370) ==26147== * src/vterdb.c: (_vte_rdb_get): Check the result of the get_property_string before using the returned values. 2007-01-29 Chris Wilson * src/vte.c: (vte_terminal_draw_cells), (vte_terminal_draw_rows): Merge draw_cells() with the background clear, as generating items for many rows and then splitting again in draw cells is simply inefficient. 2007-01-28 Chris Wilson Bug 401215 – Multi-pass renderering * src/vte.c: (vte_terminal_draw_cells), (vte_terminal_clear_cells), (vte_terminal_draw_cells_with_attributes), (vte_terminal_draw_rows), (vte_terminal_paint): Break the draw_rows() loop into two passes - first clear the background and second render the text. Add another function based on draw_cells() that just clears the background and make clearing the background optional in draw_cells() - updating callers accordingly. Adventurous souls are required to clean up draw_rows(). 2007-01-27 Chris Wilson Fix compilation *with* debugging enabled. Grrr. * src/keymap.c: (_vte_keysym_print): 2007-01-27 Chris Wilson Fix compilation without debugging enabled. * src/keymap.c: (_vte_keysym_print), (_vte_keymap_map): * src/vte.c: (display_control_sequence): * src/vteapp.c: (main): 2007-01-26 Chris Wilson * src/debug.h: Provide a safe fallback for non-C99 compilers (well actually anything that isn't a recent gcc at the moment). 2007-01-26 Chris Wilson Bug 157267 – _vte_terminal_fudge_pango_colors() breaks Japanese input style Patch by ynakai@redhat.com. * src/vte.c: (_vte_terminal_fudge_pango_colors): Check the attributes for each cell rather than assuming the pango attributes (and cell attributes) are the same for the whole string. 2007-01-26 Chris Wilson * src/vteseq.c: (vte_sequence_handler_vb): Iterating over all queued exposures and drawing on top of the flash does not sense. Simply flush the draw. 2007-01-26 Chris Wilson s/_VTE_DEBUG_ON/_VTE_DEBUG_IF/ and don't include the code block inside the macro. * src/debug.h: * src/iso2022.c: (process_control), (_vte_iso2022_process): * src/keymap.c: (_vte_keymap_map): * src/matcher.c: (_vte_matcher_init): * src/pty.c: (_vte_pty_run_on_pty): * src/table.c: (_vte_table_addi), (_vte_table_matchi), (_vte_table_extract_numbers), (_vte_table_match): * src/trie.c: (_vte_trie_addx): * src/vte.c: (vte_terminal_match_check_internal), (vte_terminal_match_check), (vte_terminal_handle_sequence), (vte_terminal_catch_child_exited), (vte_terminal_process_incoming), (vte_terminal_io_write), (vte_terminal_send), (vte_terminal_key_press), (vte_terminal_copy_cb), (vte_terminal_set_font_full), (vte_terminal_realize), (vte_terminal_paint), (vte_terminal_scroll): * src/vteapp.c: (main): * src/vtebg.c: (vte_bg_root_pixmap): 2007-01-26 Chris Wilson Bug 400834 – Use a global display/process timeout Currently each terminal uses it own display timeout. Given that typical usage is several active terminals, there is an immediate advantage (context switches, fairness, smoothness) to using a single common timeout. * src/debug.c: (_vte_debug_parse_string): * src/debug.h: Add VTE_DEBUG_TIMEOUT * src/vte-private.h: * src/vte.c: (update_regions), (_vte_invalidate_cells), (_vte_invalidate_all), (vte_terminal_init), (vte_terminal_class_init), (add_update_timeout), (remove_from_active_list), (remove_update_timeout), (add_process_timeout), (vte_terminal_stop_processing), (vte_terminal_is_processing), (process_timeout), (update_repeat_timeout), (update_timeout): Modify to use a global timeout rather than individual private timeouts. 2007-01-26 Chris Wilson Unable to set background scrolling mode from cmdline due to variable name confusion. * src/vteapp.c: (main): --scroll should set scroll=TRUE rather than cursor=TRUE! 2007-01-26 Chris Wilson Bug 401082 – double-draw issue The main cause of this bug was not expanding the cleared area to cover all the cells affected by the draw and forgetting to offset the clear by VTE_PAD_WIDTH. To counter the performance hit due to the expanded repaint area, each backend is presented with the opportunity to apply a clip to the exposed region before painting. This also fixes bug 333157, * src/vte.c: (_vte_invalidate_cells), (vte_terminal_paint_area), (vte_terminal_paint): * src/vtedraw.c: (_vte_draw_clip): * src/vtedraw.h: * src/vteft2.c: (_vte_ft2_end), (_vte_ft2_clip): * src/vtegl.c: * src/vtepango.c: (_vte_pango_clip): * src/vtepangox.c: (_vte_pango_x_clip): * src/vtexft.c: (_vte_xft_clip), (_vte_xft_draw_text): 2007-01-26 Chris Wilson * src/vte.c: (vte_terminal_match_hilite): * src/vteseq.c: (vte_sequence_handler_ce), (vte_sequence_handler_dc), (vte_sequence_handler_ec): Tighten the _vte_invalidate_cells() to only those that we potentially modify. 2007-01-26 Chris Wilson * src/vtexft.c: (_vte_xft_set_text_font): Remove the additional pixel inter-character spacing. Compactness over clarity ;) 2007-01-26 Chris Wilson Apply a one pixel fudge to the Xft character position and width. This greatly improves text appearance and hides the misrendering of pseudo-bold characters. cf bugs 317691, 333157. * src/vte.c: (vte_terminal_paint): Increase the cursor size to fit around the cell. * src/vtexft.c: (_vte_xft_set_text_font), (_vte_xft_draw_text): Fudge the Xft font positioning. 2007-01-26 Chris Wilson Bug 318307 – Cursor colour changes to foreground when unfocused Whilst setting the colour, tweak the position of the rectangle, and extended the invalidate region to account for the OBO nature of bold font. * src/vte.c: (_vte_invalidate_cells): Include the padding to accomodate cell effects. * src/vte.c: (vte_terminal_paint): Use the cursor color for the rectangle when unfocused. 2007-01-26 Behdad Esfahbod * src/vte.c (vte_terminal_visibility_notify): Correctly handle visibility events: set invalidated_all to FALSE, and invalidate_all if fully unobscured. 2007-01-26 Behdad Esfahbod * src/vte.c (vte_terminal_visibility_notify): Make sure we redraw after becoming unobscured. There still is a bug that I've not found, but after obscuring the widget and coming back, a first redraw happens, but no update after that. 2007-01-26 Chris Wilson * src/vte.c: (vte_terminal_draw_area): Occasionally we generate an exposed area which is computed as 0x0 cells. Discard early, before we spend an infinity drawing nothing. 2007-01-26 Chris Wilson Janitorial work - near elimination of #ifdef VTE_DEBUG from within functions, trimming a thousand lines of code. We introduce a _vte_debug_print macro to cover the more common occurrence of printing a message at a certain debug level. And a _VTE_DEBUG_ON for a conditional code block. src/debug.h | 11 src/iso2022.c | 201 ++------- src/keymap.c | 41 - src/matcher.c | 24 - src/pty.c | 134 +----- src/reaper.c | 21 src/ring.c | 78 +-- src/table.c | 11 src/trie.c | 19 src/vte.c | 1187 ++++++++++--------------------------------------- src/vteaccess.c | 198 +++------ src/vteapp.c | 21 src/vtebg.c | 43 -- src/vteconv.c | 60 +- src/vteconv.h | 12 src/vtedraw.c | 6 src/vtefc.c | 4 src/vteft2.c | 5 src/vteglyph.c | 27 - src/vtepango.c | 11 src/vtepangox.c | 7 src/vteregex.c | 2 src/vteseq.c | 385 +++++------------- src/vtexft.c | 26 - 24 files changed, 789 insertions(+), 1745 deletions(-) * src/debug.h: * src/iso2022.c: (_vte_iso2022_ambiguous_width_guess), (_vte_iso2022_state_new), (_vte_iso2022_state_set_codeset), (process_8_bit_sequence), (process_cdata), (process_control), (_vte_iso2022_process): * src/keymap.c: (_vte_keymap_map): * src/matcher.c: (_vte_matcher_init), (_vte_matcher_create), (_vte_matcher_destroy): * src/pty.c: (vte_pty_child_setup), (_vte_pty_run_on_pty), (_vte_pty_set_size), (_vte_pty_get_size), (_vte_pty_ptsname), (_vte_pty_open_unix98), (_vte_pty_open_with_helper), (_vte_pty_open): * src/reaper.c: (vte_reaper_emit_signal), (vte_reaper_child_watch_cb), (vte_reaper_init), (vte_reaper_finalize): * src/ring.c: (_vte_ring_insert), (_vte_ring_insert_preserve), (_vte_ring_remove): * src/table.c: (_vte_table_addi): * src/trie.c: (char_class_string_extract), (_vte_trie_addx), (_vte_trie_add): * src/vte.c: (update_regions), (_vte_invalidate_cells), (_vte_invalidate_all), (_vte_invalidate_cell), (_vte_invalidate_cursor_once), (vte_terminal_emit_selection_changed), (vte_terminal_emit_commit), (vte_terminal_emit_emulation_changed), (vte_terminal_emit_encoding_changed), (vte_terminal_emit_child_exited), (_vte_terminal_emit_contents_changed), (vte_terminal_emit_cursor_moved), (vte_terminal_emit_eof), (vte_terminal_emit_char_size_changed), (_vte_terminal_emit_status_line_changed), (vte_terminal_emit_increase_font_size), (vte_terminal_emit_decrease_font_size), (_vte_terminal_emit_text_inserted), (_vte_terminal_emit_text_deleted), (vte_terminal_emit_text_modified), (vte_terminal_emit_text_scrolled), (vte_terminal_deselect_all), (vte_terminal_match_check_internal), (vte_terminal_match_check), (vte_terminal_emit_adjustment_changed), (vte_terminal_queue_adjustment_changed), (_vte_terminal_adjust_adjustments), (vte_terminal_scroll_pages), (vte_terminal_maybe_scroll_to_bottom), (vte_terminal_set_encoding), (_vte_terminal_set_pointer_visible), (vte_terminal_new), (vte_terminal_generate_bold), (_vte_terminal_insert_char), (vte_terminal_handle_sequence), (vte_terminal_catch_child_exited), (vte_terminal_fork_command), (vte_terminal_emit_pending_text_signals), (vte_terminal_process_incoming), (vte_terminal_io_read), (vte_terminal_io_write), (vte_terminal_send), (vte_terminal_im_commit), (vte_terminal_im_preedit_start), (vte_terminal_im_preedit_end), (vte_terminal_im_preedit_changed), (vte_terminal_configure_toplevel), (vte_terminal_hierarchy_changed), (vte_terminal_style_changed), (vte_terminal_key_press), (vte_terminal_paste_cb), (vte_terminal_match_hilite_clear), (vte_terminal_match_hilite), (vte_terminal_clear_cb), (vte_terminal_copy_cb), (vte_terminal_copy), (vte_terminal_paste), (vte_terminal_start_selection), (vte_terminal_extend_selection), (vte_terminal_autoscroll), (vte_terminal_motion_notify), (vte_terminal_button_press), (vte_terminal_button_release), (vte_terminal_focus_in), (vte_terminal_focus_out), (vte_terminal_set_font_full), (vte_terminal_set_size), (vte_terminal_handle_scroll), (vte_terminal_set_emulation), (vte_terminal_set_termcap), (vte_terminal_reset_rowdata), (vte_terminal_fc_settings_changed), (vte_terminal_init), (vte_terminal_size_request), (vte_terminal_size_allocate), (vte_terminal_unrealize), (vte_terminal_finalize), (vte_terminal_realize), (vte_terminal_draw_cells), (_vte_terminal_map_pango_color), (vte_terminal_draw_area), (vte_terminal_paint), (vte_terminal_expose), (vte_terminal_scroll), (vte_terminal_class_init), (vte_terminal_copy_clipboard), (vte_terminal_paste_clipboard), (vte_terminal_copy_primary), (vte_terminal_paste_primary), (vte_terminal_background_update), (vte_terminal_queue_background_update), (vte_terminal_set_background_saturation), (vte_terminal_set_background_tint_color), (vte_terminal_set_background_transparent), (vte_terminal_set_background_image), (vte_terminal_set_background_image_file), (vte_terminal_set_word_chars), (process_timeout), (update_repeat_timeout), (update_timeout): * src/vteaccess.c: (xy_from_offset), (emit_text_caret_moved), (emit_text_changed_insert), (emit_text_changed_delete), (vte_terminal_accessible_update_private_data_if_needed), (vte_terminal_accessible_text_modified), (vte_terminal_accessible_text_scrolled), (vte_terminal_accessible_invalidate_cursor), (vte_terminal_accessible_finalize), (vte_terminal_accessible_get_text), (vte_terminal_accessible_get_text_somewhere), (vte_terminal_accessible_get_run_attributes), (vte_terminal_accessible_text_init), (vte_terminal_accessible_component_init), (vte_terminal_accessible_action_init), (vte_terminal_accessible_factory_new): * src/vteapp.c: (destroy_and_quit_eof), (destroy_and_quit_exited), (take_xconsole_ownership), (main): * src/vtebg.c: (vte_bg_root_pixmap), (vte_bg_set_root_pixmap), (_vte_bg_resize_pixbuf): * src/vteconv.c: (_vte_conv_utf8_utf8), (_vte_conv_open), (_vte_conv), (_vte_conv_cu), (_vte_conv_uu), (_vte_conv_uc): * src/vteconv.h: * src/vtedraw.c: (_vte_draw_new): * src/vtefc.c: (_vte_fc_transcribe_from_pango_font_description): * src/vteft2.c: (_vte_ft2_draw_text): * src/vteglyph.c: (_vte_glyph_cache_free), (_vte_glyph_cache_set_font_description): * src/vtepango.c: (_vte_pango_set_text_font), (_vte_pango_draw_text): * src/vtepangox.c: (_vte_pango_x_set_text_font): * src/vteregex.c: (_vte_regex_exec): * src/vteseq.c: (vte_terminal_emit_deiconify_window), (vte_terminal_emit_iconify_window), (vte_terminal_emit_icon_title_changed), (vte_terminal_emit_window_title_changed), (vte_terminal_emit_raise_window), (vte_terminal_emit_lower_window), (vte_terminal_emit_maximize_window), (vte_terminal_emit_refresh_window), (vte_terminal_emit_restore_window), (vte_terminal_emit_move_window), (vte_terminal_emit_resize_window), (vte_sequence_handler_set_title_internal), (vte_sequence_handler_decset_internal), (vte_sequence_handler_bt), (vte_sequence_handler_application_keypad), (vte_sequence_handler_normal_keypad), (vte_sequence_handler_reset_mode), (vte_sequence_handler_decset), (vte_sequence_handler_decreset), (vte_sequence_handler_erase_in_display), (vte_sequence_handler_erase_in_line), (vte_sequence_handler_restore_mode), (vte_sequence_handler_save_mode), (vte_sequence_handler_window_manipulation): * src/vtexft.c: (_vte_xft_set_text_font): 2007-01-26 Chris Wilson Bug 317449 – The cursor disappears when clicking on windows above gnome-terminal Enter a command that causes partial obscuration of the terminal, though it must cover the cursor. Close the new window, observe the pointer disappears. The issue is that we hide the pointer whilst typing and show it after receiving a mouse movement. However in this case we steal the pointer away from the terminal without any mouse events and the cursor remains invisible. * src/vte.c: (vte_terminal_focus_in): Ensure the mouse pointer is visible on focus-in. 2007-01-26 Chris Wilson Spend half an hour a day killing warnings... * configure.in: Remove -Wswitch-enum from MAYBE_WARN. I am that lazy. * src/buffer.c: * src/iso2022.c: (_vte_iso2022_is_ambiguous), (_vte_iso2022_ambiguous_width), (_vte_iso2022_map_get), (_vte_iso2022_find_nextctl), (_vte_iso2022_sequence_length), (_vte_iso2022_fragment_input), (process_8_bit_sequence), (process_cdata), (_vte_iso2022_process_single), (process_control), (_vte_iso2022_process): * src/keymap.c: (_vte_keymap_map): * src/table.c: * src/trie.c: (char_class_none_extract), (char_class_digit_extract), (char_class_multi_extract), (char_class_any_extract), (unichar_snlen), (unichar_sncmp), (char_class_string_extract), (_vte_trie_addx), (_vte_trie_add), (_vte_trie_matchx), (_vte_trie_match), (_vte_trie_printx), (_vte_trie_print), (convert_mbstowcs), (main): * src/vte-private.h: * src/vte.c: (vte_terminal_find_charcell), (_vte_row_data_find_charcell), (vte_terminal_emit_commit), (vte_terminal_match_clear_all), (vte_terminal_match_remove), (vte_terminal_match_add), (vte_terminal_match_set_cursor), (vte_terminal_match_check_internal), (vte_terminal_set_colors), (vte_terminal_emit_pending_text_signals), (vte_terminal_is_word_char), (vte_terminal_finalize), (vte_terminal_realize), (_vte_terminal_map_pango_color), (_vte_terminal_apply_pango_attr), (_vte_terminal_translate_pango_cells), (vte_terminal_set_scrollback_lines): * src/vteseq.c: (vte_sequence_handler_decset_internal): Fixup compiler warnings, mostly of the type mixing signed and unsigned compares and pointers. 2007-01-25 Chris Wilson * src/vte.c: (mark_input_source_invalid), (_vte_terminal_connect_pty_read), (mark_output_source_invalid), (_vte_terminal_connect_pty_write): Use the GDestroyNotify to mark the source as invalid. * src/vte.c: (vte_terminal_ensure_font): Protect ensure fonts against the VteDraw being destroyed. * src/vte.c: (vte_terminal_realize): Reorder code to setup the style before the fonts. * src/vte.c: (vte_terminal_class_init): The ->show() handler was redundant. 2007-01-25 Behdad Esfahbod * src/vte.c (_vte_terminal_set_default_attributes), (_vte_invalidate_cells), (_vte_invalidate_all), (_vte_invalidate_cell), (_vte_invalidate_cursor_once), (vte_terminal_visibility_notify), (vte_terminal_handle_scroll): Replace most of checks for terminal->pvt->visibility_state == GDK_VISIBILITY_FULLY_OBSCURED by terminal->pvt->invalidated_all, and adapt. 2007-01-25 Chris Wilson Bug 400759 – update problem with vte trunk Otherwise known as the I can't count bug. The number of rows and columns to paint were not properly taking account of the discrete nature of the cells ie although the floor(x) moved the start to the left by one, the extra cell was not being added to the width. Also since the howmany() macro is pulled from , it can not be guarranteed to exist on all platforms. So in that case, provide a local copy. * src/vte.c: (vte_terminal_draw_area): Calculate the width as the distance between the explicity calculated start and end cells. 2007-01-25 Chris Wilson Bug 400671 – crash in Terminal: detaching of tabs The fontdirty flag needed to be set on unrealize to ensure the fonts get set on the VteDraw should the terminal be realized again (e.g drag'n'dropping). * src/vte.c: (vte_terminal_unrealize): Set the fontdirty flag to TRUE. * src/vtexft.c: (_vte_xft_set_text_font), (_vte_xft_get_char_width), (_vte_xft_draw_text), (_vte_xft_draw_char): Add safe guards to avoid dereferencing a NULL font as it is possible for _vte_xft_font_open() to fail. 2007-01-25 Chris Wilson Bug 399137 – UTF-8 problem in VteAccess Improve the UTF-8 string handling within vteaccess.c A long and fraught history to this apparently simple change. Many thanks to Joanmarie Diggs and Rich Burridge for testing the patches and ensuring they caused no regressions in the ally interface. * src/vteaccess.c: (emit_text_changed_insert), (emit_text_changed_delete): Use g_utf8_pointer_to_offset() rather than open coding. * src/vteaccess.c: (vte_terminal_accessible_text_modified): Convert the caret into a byte offset before performing the ASCII character lookup. Iterate backwards over the string using a g_utf8_prev_char, and g_utf8_get_char. 2007-01-25 Chris Wilson Bug 400493 – Mouse selection seriously broken The rendering of non-text attributes, e.g highlight, backgrounds, underlines, was broken by the change to multi-row run of glyphs. This was most apparent when selecting regions with a mouse. * src/vte.c: (_vte_invalidate_cursor_once), (vte_terminal_extend_selection), (vte_terminal_draw_rows), (vte_terminal_draw_area), (vte_terminal_paint): Some janitorial work (a memleak, whitespace, improving debug messages, comments). * src/vte.c: (vte_terminal_draw_cells): Loop over cells and draw attributes for groups of cells on each row. 2007-01-25 Chris Wilson Bug 400438 – _vte_invalidate_all triggered on GDK_VISIBILITY_UNOBSCURED * src/vte.c: (vte_terminal_visibility_notify): Only force an _vte_invalidate_all if we can trivially detect that we have switch from fully obscured to fully unobscured. Otherwise, we will just handle the GDK expose in the normal manner. * src/vte.c: (vte_terminal_expose): Check the event area to see if we can use _vte_invalidate_all, has a slight benefit of discarding further exposed area processing. 2007-01-25 Chris Wilson GDK tries to coalesce multiple expose events into a single event. This is passed to the application as a large region containing multiple rectangles. The unfortunate effect of this is having broken the invalidated region into 2 small components for vim, the expose event was still operating on a single region covering both. The reason the effect was invisible to the eye is due to the double buffer - GDK generated a backing pixmap for the exposed event and only copied from the pixmap to the window exactly the pixels exposed. So we regenerated draw commands for the entire area, and only saved on the later blit. The improvement to this is only issue draw commands for the individual rectangles rather than the region as a whole. * src/vte.c: (vte_terminal_draw_area), (vte_terminal_paint), (vte_terminal_expose): Paint the exposed rectangles not the event clipbox! 2007-01-25 Chris Wilson Print out the painted area for VTE_DEBUG_UPDATES. * src/vte.c: (vte_terminal_paint): 2007-01-24 Chris Wilson cf Bug 400072 – Handling of ; in control sequences Moral of the story: wait until the morning. Revert r1512, the mistaken attempt at parsing '\e[;30m'. * src/table.c: (_vte_table_addi), (_vte_table_matchi), (_vte_table_match): 2007-01-24 Chris Wilson cf Bug 399617 – Avoid memory allocations during an expose event. Currently we cannot generate long glyph runs due to the text painting being broken up into single rows and setting a low max run cap. The benefit of longer runs is the backends can do more caching within a run and potentially generate fewer render calls and/or less network traffic. In the simple test case, this increased the performance of a remote hexdump by 10%. * src/vte.c: (vte_terminal_draw_rows), (vte_terminal_paint): Scan entired exposed area for glyph runs. * src/vtedraw.h: Increase VTE_DRAW_MAX_LENGTH * src/vtexft.c: (_vte_xft_draw_text): Create GlyphSpecs rather than CharFontSpecs, saves a conversion and potential malloc inside libXft, and our own malloc. 2007-01-24 Chris Wilson Bug 147495 – screen flicker when opening new terminal windows Last in a series of work to reduce extraneous redraws. I no longer see the flicker when opening a white terminal. * src/vte.c: (_vte_terminal_scroll_region): Detect when we can just invalidate all. * src/vte.c: (_vte_terminal_fork_basic): Don't force an unnecessary redraw. 2007-01-24 Chris Wilson * src/vte.c: (vte_terminal_set_emulation): Add a missing '\n' to the debug printerr. * src/vte.c: (vte_terminal_init): Initialize the row count to VTE_MIN_SCROLLBACK (was to 0 first and then later within the same function to VTE_MIN_SCROLLBACK). 2007-01-24 Chris Wilson Bug 334755 – Incomplete information from vte_terminal_get_font In many situations the font_desc stored in the terminal is incomplete. _vte_fc_transcribe_from_pango_font_description() automagically fills in default values for the backends but this is hidden from the application. By filling in default values up front from the widget font description control is returned to the application and theme designers. Patch by Pedro de Medeiros. Also cf bug 335269. * src/vte.c: (vte_terminal_set_font_full): Pull default font description from widget. * src/vtefc.c: (_vte_fc_transcribe_from_pango_font_description): Remove default values. 2007-01-24 Chris Wilson Bug 400184 – _vte_pty_open declaration mismatch - breaks on Solaris actually revealed a faux-pas in the conversion of the public interfaces to GPid - that it broke the ABI. However, the intention is to remove the exposed pid_t, cf bug 400333. * python/vte.defs: * python/vte.override: * src/pty.c: (_vte_pty_open): * src/pty.h: * src/vte.c: (_vte_terminal_fork_basic), (vte_terminal_forkpty): * src/vte.h: Revert the exposed GPids back to pid_t. 2007-01-24 Chris Wilson ==25123== Invalid read of size 1 ==25123== at 0x4055992: vte_terminal_accessible_text_modified (vteaccess.c:497) ==25123== by 0x46A1248: g_cclosure_marshal_VOID__VOID (gmarshal.c:77) ==25123== by 0x4693EAA: g_closure_invoke (gclosure.c:490) ==25123== by 0x46A4972: signal_emit_unlocked_R (gsignal.c:2440) ==25123== by 0x46A5E96: g_signal_emit_valist (gsignal.c:2199) ==25123== by 0x46A85ED: g_signal_emit_by_name (gsignal.c:2267) ==25123== by 0x403E9E2: _vte_terminal_emit_text_inserted (vte.c:863) ==25123== by 0x40517EF: vte_terminal_process_incoming (vte.c:3032) ==25123== by 0x40522B5: update_repeat_timeout (vte.c:11332) * src/vteaccess.c: (vte_terminal_accessible_text_modified): Check that the caret is inside the old string before accessing. 2007-01-24 Chris Wilson Revert changes in conjunction with bug 399137 back to r1487, which contains Rich Burridge's fix for bug 397724. * src/vteaccess.c: (emit_text_changed_insert), (emit_text_changed_delete), (vte_terminal_accessible_text_modified): 2007-01-24 Chris Wilson * src/vteaccess.c: (vte_terminal_accessible_text_modified): Valgrind pointed out a couple of places where we tried to access before the start of the string. 2007-01-24 Chris Wilson Bug 400184 – _vte_pty_open declaration mismatch - breaks on Solaris Patch by Damien Carbery. * src/pty.h: Update prototype to match new definition. 2007-01-24 Chris Wilson hm, vte is not matching «ESC [ ; 7 m» :/ * src/table.c: (_vte_table_addi), (_vte_table_matchi), (_vte_table_match): s/GList/GSList/ g_slist_append -> g_slist_reverse(g_slist_prepend) And finally add the subtable to handle the leading ';' in the variable length parameters. 2007-01-23 Chris Wilson A couple of minor buggets. * src/iso2022.c: (_vte_iso2022_state_set_codeset): Use g_intern_string() instead of from_quark(to_quark(str)) * src/vtepango.c: (_vte_pango_create), (_vte_pango_destroy), (_vte_pango_start), (_vte_pango_end), (_vte_pango_set_text_font): Use the widget pango context (we're guarranteed to have a screen by this point) and don't unref it! Inspired by Pedro de Medeiros in Bug 335269. 2007-01-23 Chris Wilson Regression on Bug 123591: mkdir /tmp/aa; cd /tmp/aa; bash; cd ..; rmdir aa Open a new tab in g-t -> Failure. * src/pty.c: (_vte_pty_run_on_pty): Check the error return from g_spawn and try again with the pwd if it reports that the child could not change directory. 2007-01-23 Chris Wilson * src/pty.c: (_vte_pty_run_on_pty): Add all g_spawn parameters to VTE_DEBUG_MISC output. 2007-01-22 Behdad Esfahbod Released vte-0.15.2. * NEWS: Updated. * configure.in: Bumped version to 0.15.2. * src/Makefile.am: Bumped libtool version to 10:9:1. 2007-01-22 Chris Wilson Bug 399137 - continuation. * src/vteaccess.c: (vte_terminal_accessible_text_modified): Classic bug: clen = cp - old rather than the more correct clen = cp - current 2007-01-22 Chris Wilson * src/vteapp.c: (char_size_changed), (char_size_realized), (main): Don't try to perform gdk operations on unrealized windows. 2007-01-22 Chris Wilson * src/pty.c: (_vte_pty_run_on_pty): Print out the argument vector for VTE_DEBUG_MISC. 2007-01-22 Chris Wilson * src/pty.c: (_vte_pty_run_on_pty): Protect against g_strv_length(NULL) 2007-01-22 Chris Wilson Bug 399137 - continuation. * src/vteaccess.c: (vte_terminal_accessible_text_modified): After walking back along the UTF-8 string, remember to update the string lengths that are used to detect insertions and deletions! 2007-01-22 Chris Wilson If the caret is at the end of the buffer, then it set past the end of the offset array - do not use this as a lookup! * src/vteaccess.c: (vte_terminal_accessible_text_modified): If the caret points to past the last character, set the offset to the string's NUL terminator. 2007-01-22 Chris Wilson * configure.in: Earlier configure.in update introduced a trailing ']', pair it with its '[' 2007-01-22 Chris Wilson Bug 132316 – terminal widget's context menu posting isn't exposed as an AtkAction Original patch by * src/vteaccess.c: (vte_terminal_accessible_free_private_data), (vte_terminal_accessible_component_init), (vte_terminal_accessible_do_action), (vte_terminal_accessible_get_n_actions), (vte_terminal_accessible_action_get_description), (vte_terminal_accessible_action_get_name), (vte_terminal_accessible_action_get_keybinding), (vte_terminal_accessible_action_set_description), (vte_terminal_accessible_action_init), (vte_terminal_accessible_get_type): Remove grab_focus and defer to the parent's implementation. Add an AtkAction iface. 2007-01-22 Chris Wilson Bug 156161 – AccessibleText_getTextAtOffset returns wrong values in gnome-terminal The code for ATK_TEXT_BOUNDARY_WORD_START and ATK_TEXT_BOUNDARY_WORD_END is the same. Patch by * src/vteaccess.c: (vte_terminal_accessible_get_text_somewhere): Actually provide an implementation for ATK_TEXT_BOUNDARY_WORD_END. 2007-01-22 Chris Wilson Bug 399137 – UTF-8 problem in VteAccess * src/vteaccess.c: (emit_text_changed_insert), (emit_text_changed_delete): use g_utf8_pointer_to_offset() instead of open coding (vte_terminal_accessible_update_private_data_if_needed): add the number of UTF-8 characters to the debug output. (vte_terminal_accessible_text_modified): iterate backwards over the UTF-8 string using g_utf8_prev_char() and convert the caret into a byte offset before it as such. 2007-01-22 Chris Wilson Bug 123591 – vte_terminal_fork_command succeeds even when it does not * python/vte.defs: * python/vte.override: * src/reaper.c: (vte_reaper_child_watch_cb): * src/vte-private.h: * src/vte.c: (vte_terminal_catch_child_exited), (_vte_terminal_fork_basic), (vte_terminal_forkpty): * src/vte.h: * src/vteapp.c: s/pid_t/GPid/ portable variant, no API/ABI implications * src/pty.c: (vte_pty_child_setup), (_vte_pty_run_on_pty), (_vte_pty_fork_on_pty_name), (_vte_pty_fork_on_pty_fd), (_vte_pty_open_unix98), (_vte_pty_pipe_open), (n_read), (n_write), (_vte_pty_start_helper), (_vte_pty_open_with_helper), (_vte_pty_open), (main): Replace custom fork() and pipe based syncrohonisation scheme with g_spawn_async_with_pipes() as it actually handles all failure modes correctly, and gives us overtures of portability. 2007-01-22 Chris Wilson Hack'n'slash my way through doing a bit of weeding. Fixed: - Bug 345514 – -no-undefined doesn't work with latest libtool - Bug 162003 – vte configure.in X checking can fail – though this may cause other regressions! - Bug 314669 – Please specialize AC_PATH_XTRA * configure.in: Export LIBTOOL_EXPORT_OPTIONS for -no-undefined on windos. Add to rather than override X_CFLAGS, X_LIBS AC_PATH_XTRA - Find X11 using XFlush() rather than XtMalloc(). Print configuration details. * src/Makefile.am: Conditional compilation of backends. 2007-01-22 Chris Wilson Bug 389538 – crash in Terminal: nothing * src/vteaccess.c: (vte_terminal_accessible_get_text): Guard against negative length strings. 2007-01-22 Chris Wilson Bug 161479 – Scroll wheel generates Release events vte sends release events on scroll but xterm doesn't which breaks mc among others. Patch by Benedikt Meurer. * src/vte.c: (vte_terminal_scroll): Remove the offending release event. 2007-01-20 Chris Wilson ickle: sparse complains about dubious 1 bit bitfields if you use gboolean instead of guint so s/gboolean/guint at line 166 and 174 unless that changes the API, of course... it doesn't gboolean a:1 is not very correct anyways ickle: we've done the same change in other modules if I do it quick, behdad might not even notice ;) * src/vte.h: Convert signed single bit field to unsigned. The code was setting it to 1 anyhow (and not -1 as the type indicated). 2007-01-20 Chris Wilson Bug 398602 – Build Failure * src/vte.c: (vte_terminal_expose): Fixup typo. [Grrr. Must get git-svn back into sync] 2006-11-19 Rich Burridge * src/vteaccess.c: Fixed bug #397724 - Orca incorrect echo's certain input in gnome-terminal when key echo is set to off (on Ubuntu Feisty). 2007-01-20 Chris Wilson * src/vte.c: (vte_terminal_expose): Also if the entire terminal is invalidated, do not add more GTK+ exposes to it. 2007-01-20 Chris Wilson Track when we have invalidated the entire terminal and skip adding new regions when possible. * src/vte-private.h: * src/vte.c: (update_regions), (_vte_invalidate_cells), (_vte_invalidate_all), (vte_terminal_size_allocate), (reset_update_regions): 2007-01-20 Chris Wilson Bug 398244 – Gnome-terminal opens a huge sized window * src/vte.c: (vte_terminal_ensure_font), (vte_terminal_set_font_full), (vte_terminal_size_request), (vte_terminal_realize), (vte_terminal_get_char_width), (vte_terminal_get_char_height), (vte_terminal_get_char_descent), (vte_terminal_get_char_ascent): Ensure the font metrics are calculated before use. 2007-01-19 Chris Wilson * src/vte.c: (vte_terminal_process_incoming): Do not invalidate the old cursor position if it was not visible. 2007-01-19 Chris Wilson * src/vte.c: (process_timeout): Make sure ->process_timeout is set to VTE_INVALID_SOURCE on all paths that remove the timeout. 2007-01-19 Chris Wilson Add <> to mark boundaries of process_timeout(). * src/vte.c: (vte_terminal_class_init), (process_timeout): 2007-01-19 Chris Wilson Add {},[] to mark boundaries of update_timeout() and notice that the display limited update_timeout was not dying. * src/vte.c: (vte_terminal_class_init), (update_repeat_timeout), (update_timeout): 2007-01-19 Chris Wilson * src/vte.c: (vte_terminal_realize), (remove_process_timeout): Small cleanup: - protect remove_process_timeout against an invalid source. - move static prototypes into common block. - gdk_window_show() is done in map not realize. 2007-01-19 Chris Wilson * src/vte-private.h: * src/vte.c: (vte_terminal_process_incoming): Introduce a bit of slack in the bbox check to allow for a small of amount of cursor motion e.g. due to line scrolling. This turns the long sequence of '(?!?!??? ... ????!)' during a hexdump into the better behaved '.(?!?!?!??!)-+=.(?!?!??!)-+=........'. Although it is puzzling why we now how have a block of IO and then two quick display upates... 2007-01-19 Chris Wilson * src/vte.c: (process_timeout), (update_repeat_timeout), (update_timeout): Repeat _vte_terminal_process_incoming until we have drained the incoming buffers or we can handle no more. Fixes a problem where the display wouldn't update if we hadn't processed enough data (e.g. on startup, displaying the first prompt). This bug corresponds with the sequence '*-+=..()?!(?!?!?!)-+=' below, which now reads '*-+=..()(?!?!?!)-+=' 2007-01-19 Chris Wilson * src/vte.c: (_vte_invalidate_cursor_once): "%ld" for cursor indices. 2007-01-19 Chris Wilson * src/vte.c: (_vte_invalidate_cells), (_vte_invalidate_cursor_once): Cursor indices are long. 2007-01-19 Chris Wilson * src/vte-private.h: * src/vte.c: (_vte_invalidate_cell): Cursor indices are long. * src/vte.c: (_vte_terminal_expose): Prepend the GTK+ generated expose if we already have an display update pending. 2007-01-19 Chris Wilson Add a new debug flag to visualize the work flow. VTE_DEBUG_FLAGS=work generates output like: Debugging work flow (top input to bottom output): . _vte_terminal_process_incoming ( start _vte_terminal_process_incoming ? _vte_invalidate_cells (call) ! _vte_invalidate_cells (dirty) * _vte_invalidate_all ) end _vte_terminal_process_incoming - gdk_window_process_all_updates + vte_terminal_expose = vte_terminal_paint *?!**+=*-+=..()?!(?!?!?!)-+=?!-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.().(?!?!?!)-+=.().(?!?!?!)-+=.().().(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!)-+=.............................................................................................................................................................................................................................................................................(?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????!??!)-+=....................................................................... Which tells me I have two bugs to track: 1. the initial '..()' is a missing invalidate. 2. '(?!?!????????????????????!??!)' is not very efficient. * src/debug.c: (_vte_debug_parse_string): * src/debug.h: * src/vte.c: (update_regions), (_vte_invalidate_cells), (_vte_invalidate_all), (vte_terminal_process_incoming), (vte_terminal_io_read), (vte_terminal_paint), (vte_terminal_expose), (vte_terminal_class_init): Add VTE_DEBUG_WORK 2007-01-19 Chris Wilson Bug 398150 – cursor leaves trail behind in vim * src/vte-private.h: * src/vte.c: (_vte_invalidate_cell), (vte_terminal_process_incoming): * src/vteseq.c: (vte_sequence_handler_decset_internal): Invalidate the old cursor position if we detect the cursor moved during the sequence or if the cursor changed state. 2007-01-19 Chris Wilson * src/Makefile.am: Missing $(X_CFLAGS) 2007-01-19 Chris Wilson Bug 398243 – Crash * src/vtebg.c: (vte_bg_cache_prune_int): Use the return from g_list_delete_link to maintain the list head. 2007-01-18 Chris Wilson * src/vte.c: (_vte_invalidate_cells): Check that the start of the invalid region is on screen. 2007-01-18 Chris Wilson Bug 398116 – lags behind when widget not visible * src/vte.c: (vte_terminal_handle_scroll): During the spring clean, I converted a few GTK_WIDGET_REALIZED() checks to GTK_WIDGET_DRAWABLE()+visibility check. Unfortunately, it broke keeping the scroll delta in sync with the insert delta. Sync the pair, then perform the check before making updates on the visible area. 2007-01-18 Chris Wilson Bug 398083 – background not painted correctly when starting up * src/vte.c: (_vte_invalidate_all): Compute drawable area in window co-ordinates and not widget co-ordinates. 2007-01-18 Chris Wilson * src/vte.c: (vte_terminal_expose): Small bit of logic inversion that would have tried to paint on unmapped and invisible widgets. 2007-01-18 Chris Wilson And the corresponding overrides. [The downsides of losing track of which machine you are working on.] * python/vte.override: Add (get_text_include_trailing_spaces) 2007-01-18 Chris Wilson Add missing export of vte_terminal_get_text_include_trailing_spaces, needed for building a simple testcase for Bug 397724. vte.defs needs a bit of love... * python/vte.defs: Add (get_text_include_trailing_spaces) 2007-01-18 Chris Wilson * src/vterdb.c: (_vte_rdb_search), (_vte_rdb_boolean): Fix a couple of compiler warnings. 2007-01-18 Chris Wilson * src/vte.c: (vte_terminal_process_incoming): Delete some dead code. 2007-01-18 Chris Wilson * configure.in: Restore --enable-debugging. 2007-01-18 Chris Wilson Copy Behdad's MAYBE_WARN comprehensive set of warnings from Cairo, and fixup the immediate compilation failures. * configure.in: Iterate over a list of warnings and check that they are valid for the compiler. * src/debug.c: (_vte_debug_on): Kill fflush() [redundant with g_printerr]. 2007-01-18 Behdad Esfahbod * configure.in: Don't call AC_CANONICAL_HOST. Libtool calls it already. * src/Makefile.am: Don't build extra, test, programs by default. Speeds build up. 2007-01-18 Behdad Esfahbod * src/ring.c (_vte_ring_insert_preserve): * src/vte.c (vte_terminal_paint): Fix loop-optimization warnings. 2007-01-18 Behdad Esfahbod * src/ssfe.c (cleanupexit), (barf): * src/vtebg.c (vte_bg_cache_prune_int): * src/vtetc.c (main): Fix more warnings. 2007-01-18 Behdad Esfahbod * src/table.c (main): * src/trie.c (_vte_trie_addx), (main): * src/utf8echo.c (main): Fix int vs long int mismatches in printf args. 2007-01-18 Behdad Esfahbod * src/iso2022.c (_vte_iso2022_find_nextctl): * src/reaper.c (vte_reaper_finalize): * src/vte.c (_vte_terminal_insert_char), (vte_terminal_key_press), (vte_terminal_init), (vte_terminal_size_allocate): * src/vteapp.c (main): * src/vtedraw.c (_vte_draw_init_default): * src/vteglyph.c (_vte_glyph_cache_free): * src/vtergb.c (_vte_rgb_copy): * src/vtexft.c (_vte_xft_font_for_char): Remove unused variables. 2007-01-18 Chris Wilson Bug 161342 revisited. Reset the box to +-inf and not the current cursor otherwise you just reproduce the slow behaviour (an overly large invalidation area). * src/vte.c: (vte_terminal_process_incoming): Reset bbox to +-inf. 2007-01-17 Chris Wilson Second breakage: VTE_INVALID_SOURCE !=0 and calling vte_terminal_set_scrollback_lines with lines == ->scrollback_lines is not a nop. * src/vte.c: (vte_terminal_background_update), (vte_terminal_queue_background_update): VTE_INVALID_SOURCE != 0 (vte_terminal_set_scrollback_lines): reset the rowdata everytime. 2007-01-17 Chris Wilson Bug 397414 - port vteapp to GOption * src/vteapp.c: (main): Translation of getopt switch to GOptionEntry[]. Missing help for --geometry. 2007-01-17 Chris Wilson First breakage spotted: the realized flag is set too late in the realize handler. Note to self: not everybody uses a black background. * src/vte.c: (vte_terminal_realize): Restore GTK_WIDGET_SET_FLAGS(REALIZED) 2007-01-17 Chris Wilson Bug 395373 - Allow the user to specify backend priorities. * src/vtedraw.c: (_vte_draw_init_user), (_vte_draw_init_default), (_vte_draw_new): Scan $ENV{VTE_BACKEND} for the user's preferred backend and failover to the first working backend. Discard checking VTE_USE_* * src/vtedraw.h: * src/vteft2.c: * src/vteft2.h: * src/vtegl.c: * src/vtegl.h: * src/vtepango.c: * src/vtepango.h: * src/vtepangox.c: * src/vtepangox.h: * src/vteskel.c: (_vte_skel_check), (_vte_skel_create), (_vte_skel_destroy), (_vte_skel_start): * src/vteskel.h: * src/vtexft.c: * src/vtexft.h: Remove the environment variable field, drop the "Vte" prefix from the backend names and make the exported structure const. 2007-01-17 Chris Wilson As part of Bug 397439. * src/iso2022.c: (_vte_iso2022_is_ambiguous): * src/vte-private.h: * src/vte.c: (_vte_terminal_set_default_attributes), (vte_terminal_set_default_tabstops), (vte_terminal_set_encoding), (vte_terminal_set_opacity), (vte_terminal_set_default_colors), (vte_terminal_emit_pending_text_signals), (vte_terminal_feed_child_using_modes), (vte_terminal_hierarchy_changed), (vte_terminal_send_mouse_button_internal), (vte_terminal_maybe_send_mouse_drag), (vte_terminal_set_font), (vte_terminal_set_font_from_string), (vte_terminal_set_size), (vte_terminal_handle_scroll), (vte_terminal_set_scroll_adjustment), (vte_terminal_set_emulation), (vte_terminal_set_termcap), (vte_terminal_init), (vte_terminal_size_allocate), (vte_terminal_unrealize), (vte_terminal_finalize), (vte_terminal_realize), (vte_terminal_determine_colors), (vte_terminal_background_update), (vte_terminal_queue_background_update), (vte_terminal_set_background_transparent), (vte_terminal_set_cursor_blinks), (vte_terminal_set_scrollback_lines), (vte_terminal_reset), (vte_terminal_set_pty): * src/vteseq.c: (vte_sequence_handler_st), (vte_sequence_handler_vb), (vte_sequence_handler_device_status_report), (vte_sequence_handler_dec_device_status_report), (vte_sequence_handler_window_manipulation): Janitorial work to improve code readability and small micro-optimisations, such as use the length returned by g_snprintf rather then calling strlen on the result or just using a constant string. 2007-01-17 Chris Wilson As part of Bug 397439. * src/ring.h: Make the debug checks conditional on VTE_DEBUG. 2007-01-17 Chris Wilson As part of Bug 397439. * src/matcher.c: (_vte_matcher_add), (_vte_matcher_create), (_vte_matcher_destroy), (_vte_matcher_new), (_vte_matcher_match), (_vte_matcher_print): * src/matcher.h: * src/table.c: (_vte_table_new): * src/table.h: * src/trie.c: (_vte_trie_new): * src/trie.h: _vte_match_match() is called extremely frequently, and the switch shows up on the profiles. Replace the switch with a function pointer obtained by introducing function tables for the matcher implementations. 2007-01-17 Chris Wilson As part of Bug 397439. * src/vte-private.h: * src/vte.c: (vte_terminal_set_font_full), (vte_terminal_realize): Don't load a font until the terminal is realized. Saves decoding 2 or 3 fonts before g-t is mapped. 2007-01-17 Chris Wilson As part of Bug 397439. * src/vteseq.c: (vte_g_array_fill): Micro-optimise the loop. 2007-01-17 Chris Wilson As part of Bug 397439. * src/vteft2.c: (_vte_ft2_create), (_vte_ft2_start), (_vte_ft2_end), (update_bbox), (_vte_ft2_set_text_font), (_vte_ft2_draw_text): * src/vtergb.c: (_vte_rgb_buffer_new), (_vte_rgb_buffer_resize), (_vte_rgb_draw_color_rgb), (_vte_rgb_copy): * src/vtergb.h: Reuse converted glyphs within a run. 2007-01-17 Chris Wilson As part of Bug 397439. * src/vteconv.c: (_vte_conv_utf8_strlen), (_vte_conv): Micro-optimise the loops. 2007-01-17 Chris Wilson As part of Bug 397439. * src/vteglyph.c: (_vte_glyph_free), (_vte_cached_glyph_free), (_vte_glyph_cache_new), (_vte_glyph_cache_free), (_vte_glyph_cache_set_font_description), (_vte_glyph_cache_has_char), (_vte_glyph_remap_char), (_vte_glyph_get_uncached), (_vte_glyph_get), (_vte_glyph_draw): * src/vteglyph.h: Avoid the double glyph lookup in _vte_glyph_get and replace the tree with a hash. 2007-01-17 Chris Wilson As part of Bug 397439. * src/iso2022.c: (_vte_iso2022_state_new), (_vte_iso2022_state_free), (_vte_iso2022_state_set_codeset): * src/trie.c: (_vte_trie_add), (convert_mbstowcs): * src/utf8echo.c: (main): * src/vte.c: (vte_terminal_set_encoding), (vte_terminal_send), (vte_terminal_init), (vte_terminal_finalize), (vte_terminal_set_word_chars): * src/vteconv.c: (_vte_conv_open), (_vte_conv_close), (_vte_conv): * src/vteconv.h: * src/vteseq.c: (vte_sequence_handler_set_title_internal): s/(VteConv)-1/VTE_INVALID_CONV/ 2007-01-17 Chris Wilson As part of Bug 397439. * src/vte.c: (_vte_new_row_data), (_vte_new_row_data_sized), (_vte_terminal_find_row_data), (_vte_row_data_find_charcell), (vte_line_is_wrappable), (vte_terminal_extend_selection), (vte_terminal_draw_row): Refactor vte_find_row_data to simplify and improve some logic. 2007-01-17 Chris Wilson As part of Bug 397439. * src/vte.c: (vte_g_array_fill), (vte_terminal_emit_commit), (_vte_terminal_ensure_cursor), (_vte_terminal_insert_char), (_vte_terminal_fork_basic), (vte_terminal_process_incoming), (vte_terminal_key_press), (vte_terminal_visibility_notify), (vte_terminal_apply_metrics), (vte_terminal_paint), (vte_terminal_expose): Callgrind driven rewrite of critical loops. 2007-01-17 Chris Wilson As part of Bug 397439. * src/vte-private.h: * src/vte.c: (_vte_terminal_connect_pty_write), (_vte_terminal_disconnect_pty_write), (vte_terminal_io_read), (vte_terminal_feed), (vte_terminal_feed_child_binary), (vte_terminal_init), (vte_terminal_unrealize), (add_process_timeout), (add_update_timeout), (remove_process_timeout), (vte_terminal_stop_processing), (vte_terminal_is_processing), (vte_terminal_start_processing), (process_timeout), (update_repeat_timeout), (update_timeout): The rate-limiting step is the display update - we do not need to process input faster than we are displaying it. So use the update display timeout to process new input (and dirty some more pixels). 2007-01-17 Chris Wilson As part of Bug 397439. * src/interpret.c: (main): * src/iso2022.c: (_vte_iso2022_fragment_input), (_vte_iso2022_process), (main): * src/vte.c: (vte_terminal_match_contents_refresh), (vte_terminal_process_incoming), (vte_terminal_init), (vte_terminal_set_word_chars): * src/vteaccess.c: (vte_terminal_accessible_update_private_data_if_needed): * src/vtefc.c: (_vte_fc_patterns_from_pango_font_desc): * src/vtefc.h: * src/vteglyph.c: (_vte_glyph_cache_new), (_vte_glyph_cache_free), (_vte_glyph_cache_set_font_description): * src/vteglyph.h: * src/vteregex.c: (_vte_regex_sort_matches): * src/vtexft.c: (_vte_xft_font_open), (_vte_xft_font_close), (_vte_xft_font_for_char): s/g_array_new(TRUE, TRUE/g_array_new(FALSE, FALSE/ All uses of GArray respect their lengths and do not zero-termination or untouched members to be cleared. 2007-01-17 Chris Wilson As part of Bug 397439. * src/iso2022.c: (_vte_iso2022_state_free): * src/matcher.c: (_vte_matcher_free_params_array): * src/ring.c: (_vte_ring_free): * src/table.c: (_vte_table_free): * src/trie.c: (_vte_trie_match): * src/vte.c: (_vte_terminal_match_contents_clear), (_vte_terminal_fork_basic), (vte_terminal_get_text_range_maybe_wrapped), (vte_terminal_copy), (vte_terminal_finalize), (vte_terminal_draw_cells_with_attributes): * src/vteaccess.c: (vte_terminal_accessible_free_private_data): * src/vtebg.c: (vte_bg_root_pixmap), (vte_bg_cache_item_free): * src/vteconv.c: (_vte_conv_close): * src/vtedraw.c: (_vte_draw_free): * src/vteft2.c: (_vte_ft2_destroy): * src/vtegl.c: (_vte_gl_destroy): * src/vteglyph.c: (_vte_glyph_cache_free): * src/vtepango.c: (_vte_pango_destroy): * src/vtepangox.c: (_vte_pango_x_destroy): * src/vtergb.c: (_vte_rgb_buffer_new), (_vte_rgb_buffer_free): * src/vteseq.c: (vte_sequence_handler_se), (vte_sequence_handler_so): * src/vteskel.c: (_vte_skel_destroy): * src/vtexft.c: (_vte_xft_font_close), (_vte_xft_destroy): Do not zero memory in destructors, as glib will zero all freed memory if G_DEBUG=gc-friendly. 2007-01-17 Chris Wilson As part of Bug 397439. * src/reaper.c: (vte_reaper_add_child), (vte_reaper_init), (vte_reaper_constructor), (vte_reaper_finalize), (vte_reaper_class_init), (vte_reaper_get), (main): * src/vte.c: (G_DEFINE_TYPE_WITH_CODE), (_vte_terminal_fork_basic), (vte_terminal_key_press), (vte_terminal_init), (vte_terminal_show), (vte_terminal_finalize), (vte_terminal_get_accessible), (vte_terminal_class_init): * src/vteaccess.c: (vte_terminal_initialize), (vte_terminal_accessible_finalize), (vte_terminal_accessible_class_init), (vte_terminal_accessible_get_type), (vte_terminal_accessible_factory_init), (vte_terminal_accessible_factory_new): * src/vtebg.c: (vte_bg_native_new), (vte_bg_finalize), (vte_bg_class_init), (vte_bg_init), (vte_bg_get_for_screen), (vte_bg_cache_item_free), (vte_bg_cache_prune_int), (_vte_bg_resize_pixbuf), (vte_bg_set_root_pixmap), (vte_bg_cache_add), (vte_bg_cache_search), (vte_bg_get_pixmap), (vte_bg_get_pixbuf): Use GObject boiler-plate code (G_DEFINE_TYPE), as opposed to open coding. 2007-01-17 Chris Wilson As part of Bug 397439. * src/vte-private.h: * src/vte.c: (vte_free_row_data), (vte_g_array_fill), (vte_terminal_find_charcell), (vte_terminal_preedit_width), (vte_terminal_preedit_length), (_vte_invalidate_cursor_once), (vte_invalidate_cursor_periodic), (vte_terminal_deselect_all), (vte_terminal_set_default_tabstops), (vte_terminal_match_contents_refresh), (vte_terminal_cursor_new), (vte_terminal_match_check_internal), (vte_terminal_emit_adjustment_changed), (vte_terminal_queue_adjustment_changed), (vte_terminal_scroll_pages), (vte_terminal_maybe_scroll_to_top), (vte_terminal_maybe_scroll_to_bottom), (_vte_terminal_set_pointer_visible), (vte_terminal_new), (vte_terminal_set_color_internal), (vte_terminal_set_color_bold), (vte_terminal_set_color_dim), (vte_terminal_set_color_foreground), (vte_terminal_set_color_background), (vte_terminal_set_color_cursor), (vte_terminal_set_color_highlight), (vte_terminal_handle_sequence), (vte_terminal_catch_child_exited), (_vte_terminal_connect_pty_read), (_vte_terminal_connect_pty_write), (_vte_terminal_fork_basic), (vte_terminal_eof), (vte_terminal_im_reset), (vte_terminal_process_incoming), (vte_terminal_io_read), (vte_terminal_io_write), (vte_terminal_send), (vte_terminal_im_commit), (vte_terminal_im_preedit_start), (vte_terminal_im_preedit_end), (vte_terminal_im_preedit_changed), (vte_terminal_configure_toplevel), (vte_terminal_hierarchy_changed), (vte_terminal_style_changed), (add_cursor_timeout), (vte_terminal_key_press), (vte_same_class), (vte_line_is_wrappable), (vte_terminal_paste_cb), (vte_terminal_send_mouse_button_internal), (vte_terminal_maybe_send_mouse_drag), (vte_terminal_clear_cb), (vte_terminal_copy_cb), (vte_terminal_get_text_range_maybe_wrapped), (vte_terminal_clipboard_get), (vte_terminal_copy), (vte_terminal_paste), (vte_terminal_autoscroll), (vte_terminal_start_autoscroll), (vte_terminal_motion_notify), (vte_terminal_button_press), (vte_terminal_button_release), (vte_terminal_focus_in), (vte_terminal_focus_out), (vte_terminal_visibility_notify), (vte_terminal_apply_metrics), (vte_terminal_set_font_full), (vte_terminal_refresh_size), (vte_terminal_handle_scroll), (vte_terminal_set_scroll_adjustment), (vte_terminal_connect_xft_settings), (vte_terminal_disconnect_xft_settings), (_vte_terminal_codeset_changed_cb), (vte_terminal_init), (vte_terminal_size_request), (vte_terminal_size_allocate), (vte_terminal_show), (root_pixmap_changed_cb), (vte_terminal_unrealize), (vte_terminal_finalize), (vte_terminal_realize), (vte_terminal_determine_colors), (vte_terminal_paint), (vte_terminal_expose), (vte_terminal_scroll), (vte_terminal_get_accessible), (vte_terminal_im_append_menuitems), (vte_terminal_background_update), (vte_terminal_queue_background_update), (vte_terminal_set_background_image), (vte_terminal_set_background_image_file), (vte_terminal_set_cursor_blinks), (vte_terminal_reset), (vte_terminal_set_pty): * src/vteaccess.c: (vte_terminal_initialize), (vte_terminal_accessible_finalize): * src/vtedraw.c: (_vte_draw_new), (_vte_draw_free), (_vte_draw_start), (_vte_draw_end): * src/vtefc.c: (_vte_fc_transcribe_from_pango_font_description), (_vte_fc_defaults_from_gtk), (_vte_fc_connect_settings_changes), (_vte_fc_disconnect_settings_changes): * src/vteft2.c: (_vte_ft2_destroy), (_vte_ft2_set_background_image), (_vte_ft2_clear): * src/vtegl.c: (_vte_gl_destroy), (_vte_gl_set_background_image), (_vte_gl_clear): * src/vtepango.c: (_vte_pango_destroy), (_vte_pango_start), (_vte_pango_end), (_vte_pango_set_background_image), (_vte_pango_set_text_font): * src/vtepangox.c: (_vte_pango_x_destroy), (_vte_pango_x_start), (_vte_pango_x_end), (_vte_pango_x_set_background_image), (_vte_pango_x_set_text_font): * src/vterdb.c: (_vte_rdb_get): * src/vteseq.c: (vte_sequence_handler_scroll_up_or_down), (vte_sequence_handler_set_title_internal), (vte_terminal_beep), (vte_sequence_handler_do), (vte_sequence_handler_sf), (vte_sequence_handler_sr), (vte_sequence_handler_vb), (vte_sequence_handler_window_manipulation): * src/vteskel.c: (_vte_skel_destroy): * src/vtetree.c: (_vte_tree_new), (_vte_tree_destroy): * src/vtexft.c: (_vte_xft_set_background_image), (_vte_xft_clear): Remove superfluous checks and run-time checked type casts. 2007-01-17 Chris Wilson As part of Bug 397439. * src/debug.c: * src/iso2022.c: (_vte_iso2022_ambiguous_width_guess), (_vte_iso2022_state_new), (_vte_iso2022_state_set_codeset), (process_8_bit_sequence), (process_cdata), (process_control), (_vte_iso2022_process): * src/keymap.c: (_vte_keymap_map): * src/matcher.c: (_vte_matcher_init), (_vte_matcher_create), (_vte_matcher_destroy): * src/pty.c: (_vte_pty_run_on_pty), (_vte_pty_fork_on_pty_name), (_vte_pty_fork_on_pty_fd), (_vte_pty_set_size), (_vte_pty_get_size), (_vte_pty_ptsname), (_vte_pty_open_unix98), (_vte_pty_open_with_helper), (_vte_pty_open), (main): * src/reaper.c: (vte_reaper_emit_signal), (vte_reaper_child_watch_cb), (vte_reaper_init), (vte_reaper_finalize): * src/reflect.c: (text_changed_insert), (text_changed_delete): * src/ring.c: (_vte_ring_insert), (_vte_ring_insert_preserve), (_vte_ring_remove), (scrolled_off), (main): * src/slowcat.c: (main): * src/table.c: (_vte_table_printi), (_vte_table_print): * src/trie.c: (char_class_string_extract): * src/vte.c: (_vte_invalidate_cursor_once), (vte_terminal_emit_selection_changed), (vte_terminal_emit_commit), (vte_terminal_emit_emulation_changed), (vte_terminal_emit_encoding_changed), (vte_terminal_emit_child_exited), (_vte_terminal_emit_contents_changed), (vte_terminal_emit_cursor_moved), (vte_terminal_emit_eof), (vte_terminal_emit_char_size_changed), (_vte_terminal_emit_status_line_changed), (vte_terminal_emit_increase_font_size), (vte_terminal_emit_decrease_font_size), (_vte_terminal_emit_text_inserted), (_vte_terminal_emit_text_deleted), (vte_terminal_emit_text_modified), (vte_terminal_emit_text_scrolled), (vte_terminal_deselect_all), (vte_terminal_match_check_internal), (vte_terminal_match_check), (vte_terminal_emit_adjustment_changed), (vte_terminal_queue_adjustment_changed), (_vte_terminal_adjust_adjustments), (vte_terminal_scroll_pages), (vte_terminal_maybe_scroll_to_bottom), (vte_terminal_set_encoding), (_vte_terminal_set_pointer_visible), (vte_terminal_new), (vte_terminal_generate_bold), (_vte_terminal_insert_char), (display_control_sequence), (vte_terminal_fork_command), (vte_terminal_emit_pending_text_signals), (vte_terminal_process_incoming), (vte_terminal_io_write), (vte_terminal_send), (vte_terminal_im_commit), (vte_terminal_im_preedit_start), (vte_terminal_im_preedit_end), (vte_terminal_im_preedit_changed), (vte_terminal_configure_toplevel), (vte_terminal_hierarchy_changed), (vte_terminal_style_changed), (vte_terminal_key_press), (vte_terminal_paste_cb), (vte_terminal_match_hilite_clear), (vte_terminal_match_hilite), (vte_terminal_clear_cb), (vte_terminal_copy_cb), (vte_terminal_copy), (vte_terminal_paste), (vte_terminal_start_selection), (vte_terminal_extend_selection), (vte_terminal_autoscroll), (vte_terminal_motion_notify), (vte_terminal_button_press), (vte_terminal_button_release), (vte_terminal_focus_in), (vte_terminal_focus_out), (vte_terminal_set_font_full), (vte_terminal_set_size), (vte_terminal_handle_scroll), (vte_terminal_set_emulation), (vte_terminal_set_termcap), (vte_terminal_reset_rowdata), (vte_terminal_fc_settings_changed), (vte_terminal_init), (vte_terminal_size_request), (vte_terminal_size_allocate), (vte_terminal_show), (vte_terminal_unrealize), (vte_terminal_finalize), (vte_terminal_realize), (vte_terminal_draw_cells), (_vte_terminal_map_pango_color), (vte_terminal_paint), (vte_terminal_scroll), (vte_terminal_class_init), (vte_terminal_get_type), (vte_terminal_copy_clipboard), (vte_terminal_paste_clipboard), (vte_terminal_copy_primary), (vte_terminal_paste_primary), (vte_terminal_background_update), (vte_terminal_queue_background_update), (vte_terminal_set_background_saturation), (vte_terminal_set_background_tint_color), (vte_terminal_set_background_transparent), (vte_terminal_set_background_image), (vte_terminal_set_background_image_file), (vte_terminal_set_word_chars): * src/vteaccess.c: (emit_text_caret_moved), (emit_text_changed_insert), (emit_text_changed_delete), (vte_terminal_accessible_update_private_data_if_needed), (vte_terminal_accessible_invalidate_cursor), (vte_terminal_accessible_finalize), (vte_terminal_accessible_get_text), (vte_terminal_accessible_get_text_somewhere), (vte_terminal_accessible_text_init), (vte_terminal_accessible_component_init), (vte_terminal_accessible_factory_new): * src/vteapp.c: (main): * src/vtebg.c: (vte_bg_root_pixmap), (_vte_bg_resize_pixbuf): * src/vtedraw.c: (_vte_draw_new): * src/vtepango.c: (_vte_pango_set_text_font): * src/vtepangox.c: (_vte_pango_x_set_text_font): * src/vteseq.c: (vte_terminal_emit_deiconify_window), (vte_terminal_emit_iconify_window), (vte_terminal_emit_icon_title_changed), (vte_terminal_emit_window_title_changed), (vte_terminal_emit_raise_window), (vte_terminal_emit_lower_window), (vte_terminal_emit_maximize_window), (vte_terminal_emit_refresh_window), (vte_terminal_emit_restore_window), (vte_terminal_emit_move_window), (vte_terminal_emit_resize_window), (vte_sequence_handler_set_title_internal), (vte_sequence_handler_decset_internal), (vte_sequence_handler_bt), (vte_sequence_handler_application_keypad), (vte_sequence_handler_normal_keypad), (vte_sequence_handler_window_manipulation): * src/vtetc.c: (main): * src/vtexft.c: (_vte_xft_set_text_font): s/fprintf(stderr,/g_printerr(/ 2007-01-17 Chris Wilson Only invalidate groups of inserted chars and not the whole bbox. This speeds up applications like vim which maintain a status line at the bottom of the screen. Fixes bug 161342. * src/vte-private.h: * src/vte.c: (update_regions), (_vte_invalidate_cells), (_vte_invalidate_all), (_vte_terminal_scroll_region), (vte_terminal_process_incoming), (reset_update_regions), (remove_update_timeout), (update_repeat_timeout), (update_timeout): 2007-01-15 Behdad Esfahbod Bug 387171 – vte fails to install on FreeBSD due to missing header Patch from Roy Marples * src/vteseq.c: #include 2007-01-15 Behdad Esfahbod Bug 396831 – Unable to compile without X Patch from Chris Wilson * src/vtebg.c (_vte_bg_display_sync), (vte_bg_root_pixmap): Add stubs. 2007-01-09 Ryan Lortie Bug 394890 – Segfault when running vte or gnome-terminal * src/vtetc.c (_vte_termcap_find_string): change 'int' to 'gssize' to match previous fixup. Hopefully that does it. :) 2007-01-08 Behdad Esfahbod Released vte-0.15.1. * NEWS: Updated. * configure.in: Bumped version to 0.15.1. * src/Makefile.am: Bumped libtool version to 10:8:1. 2006-12-29 Ryan Lortie Small fix to the previous patch. * src/vtetc.c (_vte_termcap_find_string_length): 'int' is not the same as 'gssize' on 64bit platforms, causing compile errors. 2006-12-27 Ryan Lortie Bug 354061 – Excessive use of strlen by _vte_termcap_create * src/vtetc.c: near-complete rewrite to use a GMappedFile rather than reading a line at a time with excessive strlen/realloc use. * str/matcher.c: this shouldn't be calling the strip code as the strings it has are already unescaped. 2006-12-27 Ryan Lortie Bug 387475 – Gtk-Warning spew in gnome-terminal Problem introduced by fix to bug 356552. * src/vte.c (vte_invalidate_cursor_periodic): Add a temporary backward compatibility hack to prevent GObject from spewing warnings about missing GtkSettings properties in old GTK versions. 2006-12-20 Behdad Esfahbod Bug 387482 – Variable modified in signal handler should be volatile Patch from Bastien Nocera * gnome-pty-helper/gnome-pty-helper.c: Make variable "done" volatile. 2006-12-08 Behdad Esfahbod Red Hat Bug 218626: "last -ad" print junk in last column * gnome-pty-helper/gnome-utmp.c (write_logout_record), (write_login_record): Don't gettimeofday directly into ut.ut_tv. That overruns on x86_64. 2006-12-05 Behdad Esfahbod Released vte-0.15.0. * NEWS: Updated. * configure.in: Bumped version to 0.15.0. * src/Makefile.am: Bumped libtool version to 10:7:1. 2006-12-05 Ryan Lortie Bug 356552 – cursor timeout runs all the time * src/vte-private.h: Rework how cursor blinking works. * src/vte.c: Rework how cursor blinking works. Only register the cursor blink callback when cursor blink is enabled and the window is focused. 2006-11-16 Mariano Suárez-Alvarez Bug 307396 – Mouse scroll mode not controllable * src/vte.c(vte_terminal_scroll): make the scrollwheel scroll by tenths of a screen (or 1 line, whichever is bigger) instead of half screens. 2006-11-16 Mariano Suárez-Alvarez Bug 356602 – const cast warning fixes for libvte Patch by Ryan Lortie (desrt) * src/matcher.h: Use const char * where appropriate. * src/matcher.c: Use const char * where appropriate. Cast g_strdup to (GCacheDupFunc) to avoid a warning. * src/vtetc.h: Use const char * where appropriate. * src/vtetc.c: Use const char * where appropriate. Cast g_strdup to (GCacheDupFunc) to avoid a warning. * src/vte.c: Use const char * where appropriate. 2006-11-01 Rich Burridge * src/vteaccess.c: Fixed bug #150858 - In gnome-terminal, the deleted character is reported as "space". 2006-10-13 Behdad Esfahbod * po/POTFILES.in: Include vteseq.c 2006-10-11 Mariano Suárez-Alvarez Bug 337252 – ALT + Arrow keys don't work in irssi through gnome-terminal * src/keymap.c (_vte_keymap_key_add_key_modifiers): Match the (newer) xterm behavior when reporting modifiers to things running in a terminal. 2006-10-02 Behdad Esfahbod Released vte-0.14.1. * NEWS: Updated. * configure.in: Bumped version to 0.14.1. * src/Makefile.am: Bumped libtool version to 10:6:1. 2006-10-02 Behdad Esfahbod Bug 358344 – autoscroll only works one way in fullscreen [PATCH] Patch by Egmont Koblinger * src/vte.c (vte_terminal_autoscroll), (vte_terminal_motion_notify): Fix forward autoscrolling in fullscreen mode. 2006-09-20 Behdad Esfahbod Bug 353756 – font setting cleanup * src/vte.c (vte_terminal_set_font_full): Use 'monospace' family if no font is set on a terminal widget * src/vte.c (vte_terminal_set_font_from_string_full): Don't g_return_if_fail(strlen(name) > 0). An empty string is a perfectly valid pango font description string. * src/vte.c (vte_terminal_show): Make sure we have a font loaded. * src/vteapp.c (main): Don't fallback on "Monospace 12". Let the widget decide what font to use if no font is set. 2006-09-18 Ryan Lortie Bug 356616 – libvte broken with new autotools * configure.in: * src/Makefile.am: Fix broken variable substitution for newer versions of automake. 2006-09-13 Behdad Esfahbod Bug 354024 – Suppress multiple warnings for missing control sequence handlers Patch from Chris Wilson * src/vte.c (vte_terminal_handle_sequence): Suppress multiple warnings for missing control sequence handlers in non-debugging builds. 2006-09-13 Behdad Esfahbod Bug 354620 – vte-0.14.0: undefined C code Patch from Ales Nosek * src/ssfe.c (inschar), (dokbdchar): Replace "*(tmp+1)=(*tmp--);" with something well-defined. 2006-09-08 Behdad Esfahbod * src/Makefile.am: Define G_LOG_DOMAIN=Vte. 2006-09-04 Behdad Esfahbod Released vte-0.14.0. * NEWS: Updated. * configure.in: Bumped version to 0.14.0. * src/Makefile.am: Bumped libtool version to 10:5:1. 2006-08-31 Behdad Esfahbod Bug 340631 – Printed lines containing tab characters are not wrapped correctly * src/vteseq.c (vte_sequence_handler_ta): make sure we don't move the cursor back when tabbing past the end of the line. * src/pty.c: * src/ring.c: * src/trie.c: * src/vte.c: * src/vtebg.c: * src/vtetc.c: Minor doc syntax update. 2006-08-26 Behdad Esfahbod * src/vte.c (vte_terminal_get_text_range_maybe_wrapped): Followup on the fix for bug 350236. It was causing empty lines not to be copied. 2006-08-24 Behdad Esfahbod Released vte-0.13.7. * NEWS: Updated. * configure.in: Bumped version to 0.13.7. * src/Makefile.am: Bumped libtool version to 10:4:1. 2006-08-24 Behdad Esfahbod Bug 352365 – font caching problem for not-found glyphs * src/vtexft.c (_vte_xft_font_for_char): Add caching on a missing path. This only affects the second time a character is looked up. * src/vtexft.c (_vte_xft_font_close), (_vte_xft_font_for_char), (_vte_xft_char_width): Remove g_assert()'s that are not needed, as we will definitely crash pretty soon if the assertion is not true anyway. 2006-08-24 Behdad Esfahbod Bug 350236 – Cannot copy text containing invalid character sequences * src/vte.c (vte_terminal_get_text_range_maybe_wrapped): Fix another bug in my rewritten selection code, that was assuming that last_nonempty character is one byte long. 2006-08-24 Behdad Esfahbod Bug 352439 – URL highlighting seriously broken * src/vte.c (vte_terminal_get_text_range_maybe_wrapped): Followup to changes made for bug 350623. Put back the g_array_set_size(), in the correct place this time. 2006-08-22 Behdad Esfahbod Bug 351494 – Gnome-terminal doesn't kills bash on tab close Patch from Aivars Kalvans * src/vte.c (vte_terminal_unrealize): Undo the change from bug 348814. Dispose draw in unrealize again, but also set has_fonts to FALSE. 2006-08-20 Behdad Esfahbod Released vte-0.13.6. * NEWS: Updated. * configure.in: Bumped version to 0.13.6. * src/Makefile.am: Bumped libtool version to 10:3:1. 2006-08-17 Behdad Esfahbod Bug 351696 – crash on Terminal * src/vteseq.c (vte_sequence_handler_set_title_internal): Check ->window is not NULL before setting icon/window title. 2006-08-16 Willie Walker Bug 350623 – Accessible text getTextAtOffset is broken * src/vte.c (vte_terminal_get_text_range_maybe_wrapped): Do not resize array before calling vte_g_array_fill since it nullifies any effect vte_g_array_fill will have. 2006-08-16 Behdad Esfahbod * src/vte.c (vte_terminal_get_text_range_maybe_wrapped): Make sure attr.column is initialized. 2006-07-31 Behdad Esfahbod Released vte-0.13.5. * NEWS: Updated. * configure.in: Bumped version to 0.13.5. * src/Makefile.am: Bumped libtool version to 10:2:1. 2006-07-30 Behdad Esfahbod Bug 158200 – terminal backspace behavior not set to UTF-8 mode Based on patch from Egmont Koblinger * src/vte.c (_vte_terminal_setup_utf8), (vte_terminal_set_encoding), (_vte_terminal_fork_basic), (vte_terminal_set_pty): Make sure UTF-8 state is correctly set when pty changes. 2006-07-27 Behdad Esfahbod Bug 348814 – crash on Terminal Patch from Aivars Kalvans * src/vte.c (vte_terminal_unrealize): Do not dispose draw in unrealize. 2006-07-24 Behdad Esfahbod Released vte-0.13.4. * NEWS: Updated. * configure.in: Bumped version to 0.13.4. * src/Makefile.am: Bumped libtool version to 10:1:1. 2006-07-24 Behdad Esfahbod Bug 336947 – [patch] Redundant vte_terminal_set_font_full() calls Patch from Aivars Kalvans * src/vte-private.h: * src/vte.c (vte_terminal_set_font_full), (vte_terminal_init), (vte_terminal_realize): AVoid redundant set_font_full and invalidate_all calls. 2006-07-19 Behdad Esfahbod Bug 134800 – gnome-termnal hung up when input by ATOK Patch from Yukihiro Nakai * src/vte.c (vte_terminal_unrealize): Delay _vte_draw_free(). 2006-07-19 Behdad Esfahbod * src/vte.c (vte_terminal_extend_selection): Oops. Fix selection that I broke recently. 2006-07-11 Behdad Esfahbod Bug 339983 – gnome-pty-helper should log username Patch from Brian Cameron * gnome-pty-helper/gnome-pty-helper.c (pty_remove), (shutdown_pty), (pty_add), (open_ptys): * gnome-pty-helper/gnome-pty.h: * gnome-pty-helper/gnome-utmp.c (write_logout_record): Log username if system supports it. 2006-07-10 Behdad Esfahbod Released vte-0.13.3. * NEWS: Updated. * configure.in: Bumped version to 0.13.3. * src/Makefile.am: Bumped libtool version to 10:0:1. 2006-07-10 Behdad Esfahbod Bug 141985 – vte does not respond to 'CSI 2 1 t' or 'CSI 2 0 t' with the correct window/icon title Patch from Mariano Suárez-Alvarez * src/vte.c (vte_terminal_realize), src/vteseq.c * (vte_sequence_handler_set_title_internal): Set window/icon titles. 2006-07-10 Behdad Esfahbod Bug 121904 – copy-paste of empty line Bug 25290 – Small UI tweak to select-by-word (only select only letter at a time for non-word characters) Bug 339986 – Patch to select localized strings exactly * src/vte-private.h: * src/vte.c (_vte_terminal_set_default_attributes), (_vte_terminal_insert_char), (vte_terminal_is_word_char), (vte_same_class), (vte_terminal_get_text_range_maybe_wrapped), (vte_terminal_extend_selection): * src/vteseq.c (vte_sequence_handler_screen_alignment_test): Fix a bunch of selection-related issues. We now recognize explicitly put space at the end of lines, and copy/paste it. The other change is that non-wordchar characters are not grouped together. Also fixes the fallback on Unicode properties that I added two commits ago. 2006-07-10 Behdad Esfahbod Bug 311855 – Race in vte leads to blocking of input. Patch from Kalle Raiskila * src/vte-private.h: * src/vte.c (_vte_terminal_connect_pty_write), (_vte_terminal_disconnect_pty_write), (vte_terminal_init): Use a mutex for pty_output_source. 2006-07-10 Behdad Esfahbod Bug 339986 – Patch to select localized strings exactly Patch from Takao Fujiwara * src/vte.c (vte_terminal_is_word_char): Fall back on Unicode properties for non-ASCII characters or when no array is set. 2006-07-10 Behdad Esfahbod Bug 342396 – Ctrl-space sends " ", not NUL. * src/keymap.c (_vte_keymap_map): Fix keymap lookup bug that I introduced during the char*->char[] work on 2006-04-18. 2006-07-10 Behdad Esfahbod Bug 345377 – real transparency Patch from Kristian Høgsberg * doc/reference/tmpl/vte.sgml: * doc/reference/vte-sections.txt: * python/vte.defs: * src/vte-private.h: * src/vte.c (vte_terminal_set_opacity), (vte_terminal_init), (vte_terminal_background_update): * src/vte.h: * src/vteapp.c (main): * src/vtedraw.c (_vte_draw_set_background_color): * src/vtedraw.h: * src/vteft2.c (_vte_ft2_set_background_color): * src/vtegl.c (_vte_gl_set_background_color): * src/vtepango.c (_vte_pango_set_background_color): * src/vtepangox.c (_vte_pango_x_set_background_color): * src/vteskel.c (_vte_skel_set_background_color): * src/vtexft.c (_vte_xft_create), (_vte_xft_set_background_color), (_vte_xft_clear): Add vte_terminal_set_opacity(). 2006-07-05 Behdad Esfahbod * src/Makefile.am: Allow _vte_debug_.* into exported symbols. 2006-06-21 Behdad Esfahbod Bug 345514 – -no-undefined doesn't work with latest libtool * src/Makefile.am: Remove -no-undefined. 2006-06-12 Behdad Esfahbod Released vte-0.13.2. * NEWS: Updated. * configure.in: Bumped version to 0.13.2. * src/Makefile.am: Bumped libtool version to 9:2:0. 2006-06-12 Behdad Esfahbod Bug 344666 – Problems with *_CFLAGS and *_LDFLAGS in makefiles Patch from Stepan Kasal . * src/Makefile.am (AM_CFLAGS, AM_LDFLAGS, *_CFLAGS, *_LDADD): Replace @FOO@ references by $(FOO), remove redundant (or buggy) occurences of `@CFLAGS@'. * gnome-pty-helper/Makefile.am (AM_CFLAGS, AM_LDFLAGS): Likewise. * python/Makefile.am (vtemodule_la_CFLAGS): Likewise. * src/Makefile.am (AM_CFLAGS): Add $(FT2_CFLAGS). 2006-06-08 Behdad Esfahbod * src/vte.c (remove_display_timeout): Fix typo which may have been causing things like crashes. Reported by muntyan. Also reordered some code around update_timeout for better matching the current timeouts in style. 2006-06-07 Behdad Esfahbod Bug 339529 – gnome-terminal (vte) crashes when detatched window is closed * src/vte.c (vte_invalidate_region): Bail out if terminal->window is NULL. 2006-05-27 Behdad Esfahbod Bug 342549 – uninitialized var (coverity) Patch from Paolo Borelli. * src/vte.c (vte_cell_is_selected): Remove uninitialized var ret. 2006-05-27 Behdad Esfahbod Bug 342082 – vte_invalidate_region() may check whether terminal is realiazed or not Patch from Kouhei Sutou. * src/vte.c (vte_invalidate_region): Return if not realized. 2006-05-22 Behdad Esfahbod Bug 340363 – vte Cygwin build fixes Patch from Cygwin Ports maintainer * configure.in, src/keymap.c, src/pty.c, src/ssfe.c, src/trie.c, src/utf8echo.c, src/vte.c, src/vteseq.c, src/vtetc.c: Check and include syslimits.h and ncurses/curses.h 2006-05-22 Behdad Esfahbod Bug 341793 – vte.h doesn't need to include X11/Xlib.h Patch from Kouhei Sutou * src/vte.h: Don't #include 2006-05-17 Wouter Bolsterlee * configure.in: Require intltool 0.35.0 to have translations in the dist tarballs. 2006-05-17 Behdad Esfahbod Released vte-0.13.1. * NEWS: Updated. * configure.in: Bumped version to 0.13.1. * src/Makefile.am: Bumped libtool version to 9:1:0. 2006-05-14 Behdad Esfahbod * NEWS, ChangeLog: Add vim and emacs footers for UTF-8. 2006-04-27 Behdad Esfahbod Bug 339980 – nativeecho needs glib in LDADD to build on Solaris Patch from Brian Cameron. * src/Makefile.am: Fix it. 2006-04-26 Behdad Esfahbod Bug 331803 – style needs to be attached/detached to the window on realize/unrealize Patch from Benjamin Berg . * src/vte.c: (vte_terminal_unrealize), (vte_terminal_realize): attach and detach the style of the terminal widget. 2006-04-25 Behdad Esfahbod * src/Makefile.am: Pass -no-undefined linker flag. 2006-04-23 Behdad Esfahbod Released vte-0.13.0. * NEWS: Updated. * configure.in: Bumped version to 0.13.0. * src/Makefile.am: Bumped libtool version to 9:0:0. 2006-04-23 Behdad Esfahbod Bug 339448 – selection doesn't respect hard newlines * src/vte.c (vte_terminal_get_text_range_maybe_wrapped): Add newline to the end of each line that is not soft-wrapped. 2006-04-23 Behdad Esfahbod Bug 148720 – Word selection erroneously captures text from next line Patch from Chris Heath. * src/vteseq.c (vte_sequence_handler_cd), (vte_sequence_handler_ce), (vte_sequence_handler_clear_current_line), (vte_sequence_handler_clear_above_current): Reset soft_wrapped flag. 2006-04-23 Behdad Esfahbod Bug 126376 – Uncoinditional definition of _XOPEN_SOURCE breaks build on NetBSD Patch from Dan Winship. * configure.in: * gnome-pty-helper/configure.in: Define XOPEN_SOURCE on solaris only. 2006-04-23 Behdad Esfahbod Bug 97719 – Selection: double/triple click doesn't cross line boundaries Patch from Chris Heath. * src/vte.c (vte_same_class): Fix problem with selecting whitespace from adjacent lines, on word selection. 2006-04-22 Behdad Esfahbod Bug 160782 – Vte isn't multi-screen safe Patch from Benedikt Meurer. * src/vte.c (vte_terminal_unrealize), (vte_terminal_realize): * src/vtebg.c (vte_bg_native_new), (_vte_bg_display_sync), (vte_bg_root_pixmap), (vte_bg_get_for_screen), (vte_bg_init), (vte_bg_get_pixmap), (vte_bg_get_pixbuf): * src/vtebg.h: * src/vteft2.c (_vte_ft2_set_background_image): * src/vtegl.c (_vte_gl_set_background_image): * src/vtepango.c (_vte_pango_set_background_image): * src/vtepangox.c (_vte_pango_x_set_background_image): * src/vtexft.c (_vte_xft_set_background_image): Handle per-screen backgrounds. 2006-04-22 Behdad Esfahbod * src/vte.c (vte_terminal_cursor_new), (vte_terminal_clipboard_get): * src/vteapp.c (take_xconsole_ownership): * src/vtebg.c (vte_bg_native_new), (_vte_bg_display_sync), (vte_bg_root_pixmap): * src/vtedraw.c (_vte_draw_get_colormap): * src/vtefc.c (_vte_fc_transcribe_from_pango_font_description), (_vte_fc_defaults_from_gtk): * src/vtepango.c (_vte_pango_start), (_vte_pango_set_text_font): * src/vtepangox.c (_vte_pango_x_set_text_font): * src/vterdb.c (_vte_rdb_get): * src/vteseq.c (vte_terminal_beep), (vte_sequence_handler_window_manipulation): * src/vtexft.c (_vte_xft_char_exists), (_vte_xft_text_extents), (_vte_xft_font_open): * src/vtegl.c: Remove obsolete #ifde GTK_CHECK_VERSION(2,2,0) checks. 2006-04-22 Behdad Esfahbod Bug 330441 – Remove libzvt support Patch from Guilherme de S. Pastore * configure.in, src/Makefile.am, src/reflect.c: remove remnants from the old, broken, and unmaintained libzvt. 2006-04-21 Behdad Esfahbod Bug 328850 – Crash when pasting selection * src/vte.c: Protect against passing NULL selection to strcmp. 2006-04-20 Behdad Esfahbod * doc/reference/tmpl/internals.sgml: * doc/reference/tmpl/reaper.sgml: * doc/reference/tmpl/vte-unused.sgml: * doc/reference/tmpl/vte.sgml: * doc/reference/tmpl/vteaccess.sgml: * doc/reference/vte-sections.txt: Misc fixes and updates. * python/vte.defs: * python/vte.override: Updates. Bug 160134 – mouse events occurring past column 95 are not passed through to terminal application Based on patch from Sean Estabrooks. * src/vte.h: * src/vte.c (vte_terminal_feed_child_binary): New public function. * src/vte.c (vte_terminal_send_mouse_button_internal), (vte_terminal_maybe_send_mouse_drag): Use feed_child_binary. 2006-04-19 Behdad Esfahbod Bug 135230 – Feature request to attach VTE to existing pty Based on patch from eric@brouhaha.com, John Swensen, and Chris Moller * src/vte.c: * src/vte.h: * python/vte.defs: * doc/reference/vte-sections.txt: Added vte_terminal_set_pty(). 2006-04-18 Behdad Esfahbod Bug 337442 – [patch] Reduce .plt section * src/Makefile.am: Pass export-symbols-regex to libtool. 2006-04-18 Behdad Esfahbod * src/caps.c (_vte_capability_init), src/caps.h: * src/keymap.c (_vte_keymap_map), src/keymap.h: Make some data structures const by changing char * to char []. * src/vte.c (vte_update_delay_timeout), (vte_update_timeout), (vte_terminal_extend_selection), (_vte_terminal_fudge_pango_colors): Fix warnings and adapt to above changes. 2006-04-18 Behdad Esfahbod * configure.in, po/LINGUAS: Use intltool 0.34.90 format. 2006-04-12 Behdad Esfahbod Bug 142247 – use of uninitialized value * src/pty.c: Initialize the arbitrary byte that we send on the pipe to zero. 2006-04-12 Behdad Esfahbod Bug 149633 – gnome-terminal messes up boxdrawing chars aligment * src/vte.c: Try to use the font first for all graphic characters. This results in better looking graphics with modern fonts. 2006-04-12 Behdad Esfahbod Bug 144456 – UK pound currency symbol rendered incorrectly * src/vte.c: Offset characters drawn in draw_graphic for padding. 2006-04-12 Behdad Esfahbod Bug 307403 – xticker doublefree * src/xticker.c: Avoid double free. 2006-04-10 Behdad Esfahbod Bug 337877 – Patch to use po/LINGUAS Patch from Michiel Sikkes. * configure.in, po/LINGUAS: Move list of translations to po/LINGUAS. 2006-04-06 Behdad Esfahbod Bug 337552 – Insufficient version requirement for gtk+ * configure.in: Depend on Gtk+ 2.6. 2006-03-30 Behdad Esfahbod Bug 168251 – add support for 256 colors terminals Patch from dann@godzilla.ics.uci.edu. * src/vte-private.h, src/vte.c, src/vteseq.c: Implement support for 256 colors. 2006-03-30 Behdad Esfahbod Bug 120276 – Wishlist: Support Rectangular Selection Patch from Pedro de Medeiros. * src/vte.c, src/vte-private.h: Implement block (rectangular) selection using ctrl+mouse. 2006-03-30 Behdad Esfahbod Bug 336117 – [patch] Use g_slice API Patch from Aivars Kalvans. * src/*.c: Use g_slice instead of g_malloc for structs. Also, replace g_string_new("") with g_string_new(NULL). 2006-03-30 Behdad Esfahbod Branchpoint for vte-0-12. 2006-03-30 Guntupalli Karunakar * configure.in: Added "dz" (Dzongkha) to ALL_LINGUAS. 2006-03-26 Behdad Esfahbod Bug 336128 – vim scrolling issues - emulation errors * src/vteseq.c (vte_sequence_handler_sf): Update start and end when updating insert_delta. 2006-03-15 Behdad Esfahbod Bug 334385 – Use intltool * Makefile.am, configure.in: Add intltool support. * src/iso2022.c, src/reaper.c, src/vteaccess.c, src/vteapp.c, src/vtebg.c, src/vtexft.c, src/vte.c: Include glib/gi18n-lib.h instead of #ifdefing gettext stuff. * src/vte.c (vte_terminal_class_init): Use GETTEXT_PACKAGE instead of PACKAGE in bindgettextdomain. 2006-03-14 Behdad Esfahbod * src/vte.c (vte_terminal_size_allocate): More tweaks to the previous changes. Reported by dholbach again. 2006-03-13 Behdad Esfahbod * src/vte.c (vte_terminal_size_allocate): Put the stuff changed in previous commit in their original order. Problem reported by dholbach. 2006-03-13 Behdad Esfahbod Bug 104841 – scrolling doesn't work inside "screen" windows * src/vte.c (vte_terminal_size_allocate): Fix restricted scrolling region readjustment. Moreover, do not do unnecessary updates when number of rows & columns has not changed. 2006-03-13 Behdad Esfahbod Bug 333768 – vteapp debug stuff should be conditional Patch from Egmont Koblinger. * src/vteapp.c: Make pwd and setting env vars conditional on debug. 2006-03-08 Behdad Esfahbod Released vte-0.12.0. * NEWS: Updated. * configure.in: Bumped version to 0.12.0. 2006-03-09 Abel Cheung * configure.in: Readd kn to ALL_LINGUAS and make sure everything builds fine. 2006-03-08 Behdad Esfahbod Released vte-0.11.21. * NEWS: Updated. * configure.in: Bumped version to 0.11.21. * configure.in: Removed kn from ALL_LINGUAS, as it was breaking the build. 2006-03-08 Behdad Esfahbod * src/vte.c, src/vte-private.h: Fix vte_update_timeout repeat to 25ms. (bug #333776, Egmont Koblinger) 2006-03-07 Abel Cheung * configure.in: Added "kn" "zh_HK" to ALL_LINGUAS. 2006-02-28 Behdad Esfahbod * src/vte-private.h: Step up COALESCE_TIMEOUT and DISPLAY_TIMEOUT from 2ms to 10ms. This is more compatible with the updated timeout that we are doing at around 25ms. 2006-02-27 Behdad Esfahbod * MAINTAINERS: Added. 2006-02-25 Behdad Esfahbod Released vte-0.11.20. * NEWS: Updated. * configure.in: Bumped version to 0.11.20. 2006-02-25 Behdad Esfahbod * src/vtexft.c: (_vte_xft_font_for_char): Rever the patch to optimize memory usage by releasing fonts that aren't needed early. Because that was inserting destroyed fonts into cache. Closes bug #332580 and reverts bug #309322. 2006-02-25 Behdad Esfahbod Released vte-0.11.19. * NEWS: Updated. * configure.in: Bumped version to 0.11.19. 2006-02-17 Behdad Esfahbod * src/vte.c: Make shift+insert paste PRIMARY and ctrl+shift+insert paste CLIPBOARD (switched them. bug #123844) 2006-02-17 Behdad Esfahbod * src/vte.c: Better update-timeout handling. Always delay updates a bit. Schedule updates as G_PRIORITY_DEFAULT_IDLE. And, set delay as the number of lines, in milliseconds. 2006-02-14 Behdad Esfahbod * src/vteseq-gen.c (main): Return 0. (bug #331178) 2006-02-14 Behdad Esfahbod * gnome-pty-helper/gnome-pty-helper.c (main): Use getpwnam to correctly log multiple users with the same UID. (bug #319564, patch from Laszlo (Laca) Peter. 2006-02-13 Behdad Esfahbod * src/vte.c (update_timeout): Only discontinue timer if nothing was updated in the last cycle. 2006-02-13 Behdad Esfahbod * gnome-pty-helper/gnome-pty-helper.c: Fix race condition when shutdown_helper may be called again from the signal handler when it's already running. (bug #331056) 2006-02-13 Behdad Esfahbod * configure.in: Do not prepend X_LIBS and X_CFLAGS to LIBS and CFLAGS. (bug #331021, Sylvain BERTRAND) 2006-02-13 Behdad Esfahbod * src/vte.c (vte_terminal_key_press): Handle Ctrl+Shift+Insert to paste PRIMARY. 2006-02-11 Behdad Esfahbod Released vte-0.11.18. * NEWS: Updated. * configure.in: Bumped version to 0.11.18. 2006-02-11 Behdad Esfahbod * src/iso2022.c: Change INVALID_CODEPOINT from 0xFFFF to 0xFFFD. (bug #317235, Egmont Koblinger) 2006-02-11 Behdad Esfahbod * src/vte.c (_vte_invalidate_cells): Guard more against off values. 2006-02-10 Behdad Esfahbod Update the build infrastructure. make distcheck works now! * autogen.sh: Use a generic autogen.sh that uses gnome-common. * configure.in: Simplify gtk-doc stuff. Update to newer syntax. * Makefile.am, src/Makefile.am, doc/reference/Makefile.am: Updated. 2006-02-10 Behdad Esfahbod * src/vte.c (_vte_invalidate_cells): Throttle invalidating to at most 40 times per second, using a timeout. 2006-02-10 Behdad Esfahbod * src/vteseq.c: Removed the huge sequence handler table. Changed to use the compact tables in vteseq-table.h. * src/vteseq-gen.c: Generator containing the table removed from above, that generates compact tables. * src/vteseq-table.h: Table generated by above. Can be regenerated using make. * src/Makefile.am: Adjusted. * src/vteapp.c: Set default font to Monospace instead of Sans. 2006-02-10 Behdad Esfahbod * src/vte.c: Allocate terminal->pvt using GObject private data. 2006-02-10 Behdad Esfahbod Moved all sequence handler codes into a separate file. * src/vte.c: Stuff moved to other files. * src/vte-private.h: Includes all struct definitions from vte.c. * src/vteseq.c, src/vteseq.h, src/vteseq-list.h: The sequence handlers are all here now. 2006-02-09 Behdad Esfahbod * src/vteapp.c: Make a couple debug messages conditional on DEBUG_MISC. 2006-02-03 Behdad Esfahbod * src/vte.c: Warning cleanup. A couple were actually bugs. * src/vteapp.c: No need to run $SHELL by default. Handled by vte.c now. A bug was causing nothing to be run... 2006-02-03 Behdad Esfahbod * src/debug.c, src/debug.h, src/matcher.c: Add the debug flag TRIE for printing out the trie (previous was using MISC.) * src/vte.c (vte_invalidate_cells): Update row_count and column_count when clamping their respective _start values. * src/vte.c (vte_terminal_extend_selection, _vte_terminal_select_text): Pass row_count to vte_invalidate_cells(), instead of row_stop. * src/vteapp.c: Run $SHELL by default. 2006-02-01 Behdad Esfahbod * doc/reference/tmpl/internals.sgml: Added to CVS. * vte/src/vte.c: Fix selection vs. primary that have been borked forever. Closes bug #123844. 2006-01-30 Guilherme de S. Pastore * src/trie.c: applied patch from Tomas Mraz to fix a double free. Closes bug #161337. 2006-01-30 Erdal Ronahi * configure.in: added ku (Kurdish) to ALL_LINGUAS 2006-01-28 Guilherme de S. Pastore * src/Makefile.am: add -DG_DISABLE_ASSERT to CFLAGS. * NEWS: updated. * vte.spec: bumped version to 0.11.17. 2006-01-28 Guilherme de S. Pastore * src/vte.c: only try to guess the user's shell when actually forking, so we avoid unnecessary work if the application already has to do that itself. 2006-01-15 Guilherme de S. Pastore * src/: applied patch from Kjartan Maraas that replaces g_return functions with g_assert. Should give an 8% speed boost. 2006-01-14 Guilherme de S. Pastore * doc/reference/Makefile.am: install more than *.html, based on the patch from Ed Catmur. Closes bug #321909. 2006-01-14 Olav Vitters * src/caps.c: Support save and restore cursor position using \033[s and \033[u. Reported by Dag Wieers. Fixes bug 170032. 2005-12-31 Olav Vitters * vte.pc.in: Backup patch from Steve Langasek. It needs pkg-config changes. 2005-12-12 Kjartan Maraas * vte.pc.in: Cleanups for the pkg-config file. Patch from Steve Langasek. Closes bug #322240. 2005-12-12 Kjartan Maraas * python/vte.override: python-vte seems to have a small bug in the override file that prevents the forkpty() method to be generated. The attached patch fixes this problem. Patch from Michael Vogt. Closes bug #169201. 2005-11-30 Kjartan Maraas * src/vte.c: (vte_terminal_preedit_length): Remove some unused code. (vte_terminal_process_incoming): Don't emit signals for every character that's output. Patch from Padraig O'Briain. Huge performance gain when a11y is activated. 2005-11-16 Timur Jamakeev * confgiure.in: Added 'ky' to ALL_LINGUAS 2005-11-08 Kjartan Maraas * NEWS: Update. * Makefile.am: * autogen.sh: * configure.in: * python/Makefile.am: I'm attaching a patch that modernizes the python binding build stuff. Notably, it excludes python/vte.c from the dist. Right now as it stands, the file is disted, which means people's builds will not work unless they build against pygtk 2.8, which makes this bug somewhat important. Patch from Manish Sing Closes bug #320931. 2005-11-01 Bill Haneman * src/vteaccess.c: (vte_terminal_accessible_get_text): Swap offsets if start > end; fixes crasher bug #153405. Patch from padraig o'briain, thanks to Kjartan for review. 2005-10-02 Kjartan Maraas * src/vtebg.c: (_vte_property_get_pixmaps): * src/vterdb.c: (_vte_property_get_string): Fix gdk warnings. Patch from Michele Baldessari. Closes bug #309025. 2005-09-16 Kjartan Maraas * src/vtexft.c: (_vte_xft_font_for_char): Optimize memory usage by releasing fonts that aren't needed early. Patch from Mike Hearn. Closes bug #309322. 2005-08-13 Kjartan Maraas * gnome-pty-helper/gnome-pty-helper.c: (init_msg_pass): Make VTE work on NetBSD, OpenBSD (sparc and macppc). Reported by Adrian Bunk, patches by Dan Winship and Rich Edelman. Closes bug #126554. 2005-08-12 Kjartan Maraas * src/vtetc.c: (_vte_termcap_destroy): Don't crash if there's no termcap file. Michele Baldessari Closes bug #312260. 2005-08-12 Kjartan Maraas * configure.in: Correct test for recvmsg(). Patch from Robert Basch. Closes bug #304815 and possibly bug #122055. 2004-08-10 Kjartan Maraas Patch from: Padraig O'Briain Closes bug #113590. * src/vte.c, src/vteint.h: Add new functions to support accessible text selection: _vte_terminal_get_selection, _vte_terminal_get_start_selection, _vte_terminal_get_end_selection, _vte_terminal_select_text, _vte_terminal_remove_selection * src/vteaccess.c: (xy_from_offset): Fix for offset being entire text. (vte_terminal_accessibility_selection_changed): VteTerminal's selection-changed signal handler which emits text-selection-changed signal. (vte_terminal_accessible_initialize): Connect to VteTerminal's selection-changed signal. (vte_terminal_accessible_get_n_selections) Add implementation. (vte_terminal_accessible_get_selection) Add implementation. (vte_terminal_accessible_add_selection) Add implementation. (vte_terminal_accessible_remove_selection) Add implementation. (vte_terminal_accessible_set_selection) Add implementation. 2005-08-05 Kjartan Maraas * gnome-pty-helper/gnome-pty-helper.c: (exit_handler), (main): Clean up utmp/wtmp under vncserver if things fall apart under the terminal. (Dave Lehman). Closes bug #312373 2005-07-26 Michele Baldessari * python/vte.override (_wrap_vte_terminal_set_colors): pyg_boxed_get should be on item not py_palette. Reported with fix by Ethan Glasser-Camp Closes bug #311570 2005-07-25 Michele Baldessari * src/vtepango.c (_vte_pango_create): Initialize PangoContext * data->ctx with NULL. Closes bug #126262 2005-07-21 Danilo Šegan Fixes #149925. * src/vte.c (vte_terminal_io_read): Added simple comment for translators. 2005-07-07 Matthias Clasen * src/vte.c (vte_terminal_unrealize): Unset the user data on the gdk window. 2005-06-15 Theppitak Karoonboonyanan * configure.in: Added 'th' (Thai) to ALL_LINGUAS. 2005-06-11 Kjartan Maraas * NEWS: Update some. * doc/reference/tmpl/reaper.sgml: * doc/reference/tmpl/vte-unused.sgml: * doc/reference/tmpl/vte.sgml: * doc/reference/tmpl/vteaccess.sgml: Docs updates. * src/vte.c: (vte_terminal_init), (vte_terminal_finalize), (vte_terminal_get_accessible), (vte_terminal_class_init): Apply patch from Padraig O'Briain to fix a crash. Closes bug #119913. 2005-06-09 Kjartan Maraas * src/vte.c: (vte_terminal_style_changed): Fix a crash when reparenting. Closes bug #169326. Patch from Michele Baldessari. 2005-06-05 Ignacio Casal Quinteiro * configure.in: Added 'gl' to ALL_LINGUAS. 2005-04-29 Kjartan Maraas * src/table.c: (_vte_table_literal_new), (_vte_table_free), (_vte_table_addi), (_vte_table_matchi), (_vte_table_match), (_vte_table_printi): Final bits of the memory reduction patch from Aivars Kalvans. bug #160993 comment #9 * src/vte.c: (vte_terminal_scroll_region): Patch from Egmont Koblinger to fix some scrolling issues. bug #164153 * vte.spec: Bump version. 2005-04-07 Abduxukur Abdurixit * configure.in: Added "ug" to ALL_LINGUAS. 2005-04-01 Adi Attar * configure.in: Added "xh" to ALL_LINGUAS. 2005-03-31 Steve Murphy * configure.in: Added "rw" to ALL_LINGUAS. 2005-03-29 Kjartan Maraas * autogen.sh: Use head -n 1 instead of head -1 to avoid warning about the latter being deprecated in newer versions. Reported by Ali Akcaagac. Closes bug #156022. * vte.spec: Bump version 2005-03-16 Manish Singh * python/vtemodule.c: Remove stray underscores so python module works again. Fixes bug #150760. 2005-03-14 Kjartan Maraas * src/Makefile.am: * src/interpret.c: (main): * src/matcher.c: (_vte_matcher_add), (_vte_matcher_init), (_vte_matcher_create), (_vte_matcher_destroy), (_vte_matcher_new), (_vte_matcher_free): * src/matcher.h: * src/vte.c: (vte_terminal_set_emulation), (vte_terminal_init): * src/vtetc.c: (_vte_termcap_create), (_vte_termcap_destroy), (_vte_termcap_new), (_vte_termcap_free): * src/vtetc.h: Add patch for excessive memory consumption when opening new tabs. This patch makes struct _vte_matcher and struct _vte_termcap shared between terminals and should reduce memory consumption with multiple tabs a lot. Patch from Aivars Kalvans . From bug #160993. 2005-03-14 Kjartan Maraas * src/vte.c: (vte_terminal_scroll_region), (vte_sequence_handler_al), (vte_sequence_handler_dl), (vte_sequence_handler_sr), (vte_sequence_handler_insert_lines), (vte_sequence_handler_delete_lines), (vte_terminal_handle_scroll): Back out one of the fedora patches since it apparently causes screen corruption for some users. It was rumored to have issues from the start, so... 2005-03-02 Kjartan Maraas * src/vte.c: (vte_terminal_process_incoming): Fix the crash in minicom when resizing the window. Closes bug #163814. Also adjust the coalesce and display timeouts. This makes g-t and xterm behave just about the same visually but g-t is still a bit faster when using the same font and utf8. 2005-03-02 Kjartan Maraas * src/Makefile.am: Add vtetree.[ch] * src/vte.c: (vte_terminal_draw_row): Don't use a GArray but use calloc'ed memory to speed up things further. From bug #137864. Patch from Benjamin Otte. * src/vtetree.c: (_vte_tree_new), (_vte_tree_destroy), (_vte_tree_insert), (_vte_tree_lookup): New file * src/vtetree.h: New file * src/vtexft.c: (_vte_xft_font_open), (_vte_xft_font_close), (_vte_xft_font_for_char), (_vte_xft_char_width): Use the new functions to speed up things. From bug #137864. Patch from Benjamin Otte. There are still two patches in there that don't apply cleanly any more. Will look at those later. * vte.spec: Bump version. 2005-02-28 Kjartan Maraas * src/vte.c: (vte_sequence_handler_send_primary_device_attributes): Patch from Mariano to make vte claim to be the right type terminal. Closes bug #130671. 2005-02-28 Kjartan Maraas * src/iso2022.c: (_vte_iso2022_is_ambiguous), (_vte_iso2022_find_nextctl): * src/uniwidths: * src/vte.c: (vte_terminal_catch_child_exited), (vte_terminal_eof), (vte_terminal_process_incoming), (vte_terminal_feed), (vte_terminal_init), (vte_terminal_finalize), (vte_terminal_reset), (add_display_timeout), (add_coalesce_timeout), (remove_display_timeout), (remove_coalesce_timeout), (vte_terminal_stop_processing), (vte_terminal_start_processing), (vte_terminal_is_processing), (display_timeout), (coalesce_timeout): * src/vtexft.c: (_vte_xft_drawcharfontspec), (_vte_xft_draw_text): Apply fix from Fedora package for performance problems. Closes bug #143914. Patch was written by Søren Sandmann. 2005-02-28 Kjartan Maraas * src/vte.c: (vte_terminal_scroll_region): Fix for problem with redrawing when scrolling back then forward Closes bug #122150. Patch from Benjamin Otte. 2005-02-28 Kjartan Maraas * src/vte.c: (vte_terminal_unrealize): Fix a crash when trying to use input methods. From Fedora. Closes bug #168213. 2005-02-28 Kjartan Maraas * src/vte.c: (vte_terminal_scroll_region), (vte_sequence_handler_al), (vte_sequence_handler_dl), (vte_sequence_handler_sr), (vte_sequence_handler_insert_lines), (vte_sequence_handler_delete_lines), (vte_terminal_handle_scroll): Another patch from fedora. Make sure the screen is fully redrawn before scrolling. Apparently this patch has some issues, but those were found to be small enough to apply in Fedora, so I guess the same holds true here. Closes bug #168212 2005-02-28 Kjartan Maraas * src/iso2022.c: (_vte_iso2022_process): Apply another patch from Fedora. This should fix some screen corruption with multibyte charsets. Closes bug #168211 and possibly others. 2005-02-28 Kjartan Maraas * src/vte.c: (vte_terminal_adjust_adjustments), (vte_terminal_maybe_scroll_to_bottom), (vte_terminal_update_insert_delta), (vte_terminal_handle_scroll), (vte_terminal_set_scroll_adjustment), (vte_terminal_size_allocate): Apply patch from Fedora to fix some scrolling issues. Closes bug #168210 and possibly others. 2005-02-15 Kjartan Maraas * src/vte.c: (vte_terminal_visibility_notify): Fix black backgrounds in new terminals. Fix from Jon Nettleton . Closes bug #125364. Has been in Fedora Core for months already. 2005-02-15 Kjartan Maraas * src/keymap.c: (_vte_keymap_map): Fix keypad behaviour to be like xterm. Closes bug #128099. Fix is from and has been used in Fedora the last three months at least. 2005-02-15 Kjartan Maraas * src/vteregex.h: Don't include here. It breaks building on AIX and can cause problems for l10n. Closes bug #161352. 2005-02-15 Kjartan Maraas * src/dumpkeys.c: Fix build on NetBSD and Darwin. Patch from Adrian Bunk . Closes bug #126377. 2004-12-07 Rajesh Ranjan * configure.in: included the hi locale in ALL_LINGUAS 2004-11-16 nalin * src/vte.c(vte_terminal_io_read,vte_terminal_io_write): silence a couple of warnings by expecting a GIOCondition instead of a GtkInputCondition as a parameter. 2004-11-16 nalin * autogen.sh: accept more, newer versions of autoconf/automake. Treat autoconf >= 3 as acceptable instead of just > 3. 2004-11-16 nalin * src/vte.c(vte_terminal_sequence_handler_scroll_up_or_down): add. * src/vte.c(vte_terminal_sequence_handler_scroll_up_once): add. * src/vte.c(vte_terminal_sequence_handler_scroll_down_once): add. * src/vte.c(vte_terminal_sequence_handler_scroll_up): add. * src/vte.c(vte_terminal_sequence_handler_scroll_down): add. * src/table.c(_vte_table_addi): expand "%m" locally so that we can distinguish between control sequences which differ only in the number of numeric arguments they expect. This means we have a new upper limit on the length of a numeric argument list we'll recognize. * src/caps.c(_vte_xterm_capability_strings): remove alternates for strings which include '%m' as a specifier -- that's handled at the matching layer now. * src/vte.c(vte_terminal_paste_cb): drop the supplied data if it isn't valid UTF-8 (Red Hat #119099). * src/keymap.c(_vte_keymap_map): try xterm variants if we're xterm, not the other way around. 2004-08-18 David Lodge * configure.in: Added "ang" to ALL_LINGUAS. 2004-08-18 Kjartan Maraas * configure.in: Added «nb» to ALL_LINGUAS. 2004-08-16 Christian Rose * configure.in: Added "bs" to ALL_LINGUAS. 2004-08-13 Gora Mohanty * configure.in: Added "or" to ALL_LINGUAS. 2004-07-17 Dinesh Nadarajah * ta.po: Added tamil Translation 2004-05-02 nalin * src/reaper.c(vte_reaper_add_child): pass the global reaper in as data when adding the child source, not the terminal which called us. Stop accepting a data argument, because we'd discard it anyway. Return the ID of the source which is added, if that happens. * configure.in: define VTE_INVALID_SOURCE for internal use. 2004-05-01 nalin * README: add pointers to info on bidirectional text and shaping. 2004-05-01 nalin * src/vte.c(vte_terminal_get_text_maybe_wrapped): add a parameter to control whether or not trailing whitespace is trimmed (padraig.obriain, #141148). * src/vte.c,src/vte.h(vte_terminal_get_text_include_trailing_spaces): add as a wrapper for the new vte_terminal_get_text_maybe_wrapped() (padraig.obriain, #141148). * src/vteaccess.c(vte_terminal_accessible_update_private_d): use vte_terminal_get_text_include_trailing_spaces to ensure that we get trailing spaces (padraig.obriain, #141148). * src/vte.c(vte_terminal_insert_char): clean up some autowrap stuff. 2004-04-30 nalin * vte.pc.in, vte-uninstalled.pc.in: declare the defaultemulation variable as one kind of variable, not that other kind (#141515). 2004-04-30 nalin * src/vte.c(vte_terminal_button_release): complete selection if we were selecting, not just if Shift is held down (allows Press Shift, Press Button, Release Shift, Release Button in addition to already-recognized Press Shift, Press Button, Release Button, Release Shift) (#121905). * vte.spec: buildrequire gtk-doc, manually copy png images at install-time. 2004-04-29 nalin * src/vte.c, NEWS, doc/reference/vte-sections.txt, doc/reference/tmpl/vte-unused.sgml: documentation updates. * doc/reference/tmpl/reaper.sgml: note that we just proxy for glib 2.4 child_watch functionality, if present. 2004-04-29 nalin * python/vte.defs: include get_default_emulation binding. 2004-04-29 nalin * vte.spec: update version to 0.11.11 2004-04-29 nalin * src/vte.c(vte_terminal_unrealize): don't unref our accessible peer; it may be accessed while we're unrealized, causing it to be destroyed and re-created needlessly (#128049). * src/vte.c(vte_terminal_finalize): unref our accessible peer. 2004-04-29 nalin * src/vte.c(vte_terminal_finalize): don't clear the child's PID early, so that we'll SIGHUP it properly (the kernel should do that anyway, but...) (#128291). 2004-04-29 nalin * src/vte.c(vte_terminal_insert_char): only deselect the current selection if just-inserted text affected the selected region of the screen (#135259). 2004-04-29 nalin * README: assorted updates. * configure.in: check for * src/pty.c: include if found (#141392). * src/dumpkeys.c, src/mev.c, src/pty.c, src/ssfe.c, src/vte.c: do the same. * doc/reference/vte-sections.txt: add several functions which are new but which weren't in the generated docs. * doc/reference/vte-unused.txt: sort. 2004-04-29 nalin * src/vte.c(vte_terminal_scroll_region): remove stray debug printfs. 2004-04-29 nalin * configure.in: add a --with-default-emulation argument (part of #115750). Use AS_HELP_STRING wherever we need help strings. * vte.pc.in, vte-uninstalled.pc.in: add DefaultEmulation variable * vte.spec: specify "xterm" as the default-emulation, even though it's the default default * termcaps/Makefile.am: build and install the default emulation's termcap, assuming it's some kind of xterm variant. * src/keymap.c(_vte_keymap_map): check for xterm-xfree86 definitions if the terminal type includes xterm, not if it exactly matches xterm * src/reaper.c(vte_reaper_add_child): add. The glib 2.4 SIGCHLD watcher requires us to register particular PIDs for monitoring, so now we require applications to do so. * src/reaper.c(vte_reaper_child_watch_cb): add. * src/reaper.c(vte_reaper_init): Don't hook the SIGCHLD handler if we're running under glib 2.4, expect to use the g_child_watch mechanism. * src/vte.c: remove hard-coded definition of VTE_DEFAULT_EMULATION, to be picked up from config.h instead. * src/vte.c(vte_sequence_handler_cs): remove stray debug printfs. * src/vte.c(vte_terminal_insert_char): only do what we were doing for xn if LP was also set (#141445). * src/vte.c(vte_terminal_get_default_emulation): add. * src/vte.c(_vte_terminal_fork_basic): call vte_reaper_add_child for new children. 2004-04-27 nalin * src/vte.c(vte_terminal_fork_command): more clearly document what the argv and envv arguments are expected to contain (#127979). * src/vte.c(vte_terminal_insert_char): attempt to more closely match the behavior of am and xn on terminals -- if am is set {if xn is set, autowrap should only happen before a character is output, and then only if it's a graphic character, otherwise we autowrap after a character is output} 2004-04-21 nalin * src/vte.c(vte_terminal_get_text_range_maybe_wrapped): also trim back lines which are nothing but whitespace (#140765). * src/vte.c(vte_terminal_configure_toplevel): invalidate the whole window if we're "transparent", because we don't get expose events unless some portion of our area came out from behind something else, but we still need to repaint it (#122243). 2004-04-20 nalin * doc/reference/tmpl/reaper.sgml: document the child-exited signal. * doc/reference/tmpl/vte.sgml: document the emulation-changed and encoding-changed signals. 2004-04-20 nalin * Makefile.am: add rule for generating vte-uninstall.pc (Gman, #136129) * vte-uninstalled.pc.in: add (Gman, #136129) 2004-04-19 nalin * src/vte.c(vte_terminal_key_press): don't steal keys from the input method. 2004-04-19 nalin * src/pty.c(_vte_pty_set_utf8): toggle the IUTF8 flag, if it was defined at compile-time (maybe for #129317). * src/vte.c(vte_terminal_set_encoding): call _vte_pty_set_utf8. * src/vte.h (vte_terminal_anti_alias_get_type): declare. * src/vtebg.c(vte_bg_get_pixmap): Optimisation to fix the ridiculous amount of time required to render solid colour or extremely small image tiled backgrounds. This fixes bug #123903. (desrt) * src/vtebg.c(vte_bg_root_pixmap): move resize code into a separate function. * src/vtebg.c(vte_bg_get_pixmap): Resize all image sources, in case we're using a very small image file for the background. 2004-04-19 nalin * python/Makefile.am: move python module to site-packages/gtk-2.0, which is added to the search path only by pygtk 2 (#92252). 2004-04-19 nalin * python/vte.override: define a modulename override so that the Terminal class is registered in the proper namespace so that python's help() builtin sees the Terminal class (#130267). 2004-04-19 nalin * src/vte.c(vte_terminal_anti_alias_get_type): add, for the sake of bindings. 2004-04-19 nalin * src/vte.c(vte_terminal_key_press): call GtkWidget's key_press_event callback for keys, in case GtkWidget has pre-programmed behavior for that key (#133878). * configure.in, gnome-pty-helper/configure.in: quote names of defined functions (#133222). * configure.in: make compilation of gnome-pty-helper actually conditional (#133077). * src/vte.c(vte_terminal_process_incoming): Doh #132610, actually call vte_terminal_emit_contents_changed() when the contents change. 2004-04-19 nalin * src/vte.h, src/vte.c (vte_terminal_set_font_full): Add (#134429). * src/vteglyph.c(_vte_glyph_cache_set_font_description): take a VteTerminalAntiAlias argument. * src/vteft2.c, src/vtegl.c, src/pango.c, src/pango.x, src/vtexft.c (*_set_text_font): take a VteTerminalAntiAlias argument. 2004-04-19 Victor Zverovich * src/vte.h src/vte.c: Added default signal handlers to VteTerminalClass (#137961). [NOTE: ABI change.] 2004-04-19 nalin * src/vte.c(vte_terminal_configure_toplevel): don't re-invalidate everything, apparently unnecessary (#122243). Might need to back this out if I ever remember what specific combination of software and versions prompted its addition in the first place. * src/vte.c(vte_terminal_class_init): tell gettext that messages retrieved from this domain should be returned in UTF-8 (#139542). 2004-04-19 nalin * configure.in: don't disable use of deprecated APIs unless asked to do so. * src/keymap.c(_vte_keymap_GDK_space): add Meta case (gafton). * src/vtefc.c(_vte_fc_width_from_pango_stretch): add. * src/vtefc.c(_vte_fc_transcribe_from_pango_font_description): handle PangoStretch characteristics using _vte_fc_width_from_pango_stretch. * src/vteregex.c: add random comments. * src/vte.c(VteTerminal): track the "xn" terminal attribute. 2004-04-10 Guntupalli Karunakar * configure.in: Added "gu" (Gujarati) to ALL_LINGUAS. 2004-03-20 Gareth Owen * configure.in: Added en_GB to ALL_LINGUAS 2004-03-10 Alexander Winston * configure.in: Added en_CA to ALL_LINGUAS. 2004-03-04 Guntupalli Karunakar * configure.in: Added "pa" for Punjabi to ALL_LINGUAS. 2004-02-07 Robert Sedak * configure.in: Added "hr" (Croatian) to ALL_LINGUAS. 2004-02-02 Martin Kretzschmar * docs/reference/Makefile.am: use gtk-doc in xml-mode. * docs/reference/vte-docs.sgml: sgml->xml, update to DocBook XML 4.1.2 DTD (fixes Bug #132945) 2004-02-02 Alastair McKinstry * configure.in: Added 'ga' to ALL_LINGUAS * po/ga.po: Added Gaeilge (Irish) translation. 2004-01-27 Åsmund Skjæveland * configure.in: Added 'nn' to ALL_LINGUAS * po/nn.po: Added Norwegian Nynorsk translation. 2003-12-20 Arafat Medini * configure.in: Added Arabic Locale "ar" to ALL_LINGUAS 2003-12-10 Tõivo Leedjärv * configure.in: Added et to ALL_LINGUAS. 2003-12-06 Iñaki Larrañaga * configure.in: Added "eu" (Basque) to ALL_LINGUAS. 2003-10-14 Christian Rose * configure.in: Added "ne" to ALL_LINGUAS. 2003-10-07 Žygimantas Beručka * configure.in: Added "lt" to ALL_LINGUAS. 2003-09-15 nalin * 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 , hopefully fixing bug #121880 (or not). 2003-09-15 nalin * python/vte.defs: add specs for set_color_cursor and set_color_highlight. 2003-09-15 nalin * 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. 2003-09-15 nalin * 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). 2003-09-11 nalin * src/vteapp.c: silence a compiler warning. 2003-09-11 nalin * 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 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. 2003-09-11 nalin * 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. 2003-09-11 nalin * src/vte.c(_vte_terminal_apply_pango_attr): map weight attributes to the terminal's bold attribute. 2003-09-11 nalin * 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. 2003-08-13 nalin * src/caps.c: add sequences for linux-console-cursor-attributes, which we'll ignore (bug #108232). 2003-08-13 nalin * configure.in: if we don't find the python headers (even if we found python), disable compilation of python bindings (bug #116756). Make the checks for python support sequential for easier maintenance. * python/vte.defs: add def for vte_terminal_match_set_cursor_type. Make the color argument to vte_terminal_set_background_tint_color const. * python/vte.override(_wrap_vte_terminal_forkpty): add. * python/vte.override(_wrap_vte_terminal_fork_command): don't leak envv. 2003-08-13 nalin * src/vte.c(vte_terminal_fork_command,vte_terminal_forkpty): doc update to note that directory and envv can be NULL for both. 2003-08-13 nalin * src/vteapp.c(main): if -S is passed, use forkpty to start a child that just counts until killed with Ctrl-C. 2003-08-13 nalin * doc/reference/vte-sections.txt: add vte_terminal_forkpty. * 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! 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. 2003-08-12 nalin * configure.in: if isn't found, then we can't use any freetype-specific bits, and that's not useful. Error out, and say that we need freetype 2.0.2 or newer, which introduced this header into the procedure (bug #116341). 2003-08-12 nalin * 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. * 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). 2003-08-12 nalin * src/vteapp.c(resize_window): don't add the padding in when calculating the new window size. 2003-08-12 nalin * doc/reference/tmpl/vte.sgml: note that dimensions passed in with the resize-window signal include padding (more of bug #119141). 2003-08-12 nalin * 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). 2003-08-12 nalin * python/vte.override(get_text,get_text_range): reorder arguments to match the order for the C versions (#118882). * python/vte.override(get_text,get_text_range,call_callback): fix refcounting and callback argument marshalling (bug #118882). * python/vte-demo.py: exercise get_text() on "window-raise" signals. 2003-08-12 Padraig O'Briain * 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. 2003-08-11 nalin * python/vte.override: add binding for get_padding() (bug #118834). 2003-08-11 nalin * python/vte.override: add binding for get_cursor_position() (bug #118800). 2003-08-11 nalin * python/vte.defs: give length parameters for feed() and feed_child() default values of -1 (bug #118711). * python/vte.override: use the length parameter if it's supplied to the feed() and feed_child() methods. 2003-08-11 nalin * python/vte.override: add overrides for feed() and feed_child() methods which use the length of the string as given in C, to hopefully allow passing NUL bytes around as part of strings (bug #118711). Make the length parameter optional, and ignored, to try to avoid breaking existing Python code in an obvious way. 2003-08-11 nalin * src/vte.c(vte_terminal_start_selection,vte_terminal_extend_selection): drop an unnecessary cast-and-check, which we don't need because we have no use for the GtkWidget pointer to the terminal. Fix initial shift- click (bug #118106). 2003-08-11 nalin * configure.in: error out if we don't find ncurses, curses, or libtermcap development headers (bug #117754). 2003-08-11 nalin * autogen.sh: export WANT_AUTOCONF_2_5 for the sake of Mandrake autoconf wrapper (bug #119066). 2003-08-05 nalin * src/vte.c(vte_sequence_handler_decset_internal, vte_sequence_handler_window_manipulation): include the widget's padding widths in resize requests (bug #119141). 2003-07-30 nalin * autogen.sh: check for autoconf-2.51, autoconf-2.50, autoconf-2.5 when looking for autoconf 2.5x (bug #118627). 2003-07-21 nalin * gnome-pty-helper/configure.in: define _XOPEN_SOURCE_EXTENDED, _XOPEN_SOURCE, and __EXTENSIONS__ for Solaris, as we do in the top-level configure (#117636). 2003-07-16 nalin * gnome-pty-helper/configure.in: check for grantpt in libc and then in libpt. Check for openpty in libc before checking libutil. Check for sendmsg in libc before checking libsocket (with libnsl) (#117636). 2003-07-11 Pablo Saratxaga * configure.in: Added Walloon (wa) to ALL_LINGUAS 2003-07-10 nalin * src/vteregex.h, src/vteregex.c: add. * src/vte.c: use interfaces from vteregex for doing dingus matching. 2003-07-03 nalin * src/vte.c(vte_sequence_handler_return_terminal_status): return an empty string in response to the ENQ control sequence instead of "xterm". Report and patch from Mariano Suárez-Alvarez (#116495). 2003-06-27 nalin * 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. 2003-06-16 nalin * 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. 2003-06-16 nalin * src/vteaccess.c(xy_from_offset): fix a compiler warning. 2003-06-16 nalin * 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. 2003-06-09 nalin * src/vte.c(vte_terminal_set_encoding): set the encoding for the iso2022 converter (spotted by havill). 2003-06-04 nalin * src/vtebg.c, src/vterdb.c: sync the display before trapping errors to ensure that any errors we'll get will be handled before we remove the error handlers. 2003-06-03 nalin * src/vtebg.c(_vte_bg_get_pixmap, _vte_bg_get_pixbuf): trap X errors while retrieving the contents of the root pixmap. * doc/ambiguous.txt: add. * README: update. * vte.spec: rebuild. Tue Jun 3 15:50:38 2003 Jonathan Blandford * src/pty.c (n_read): add a missing break in the switch statement. 2003-06-03 Kenneth Rohde Christiansen * configure.in: Added Limburgish (li) to ALL_LINGUAS. 2003-06-02 nalin * src/Makefile.am: start using libtool versioning in earnest. 2003-06-01 nalin * src/vtegl.c(_vte_gl_set_text_font): compile fix. 2003-05-30 nalin * 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. 2003-05-30 Padraig O'Briain * 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. 2003-05-29 nalin * 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. 2003-05-29 nalin * 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. 2003-05-29 nalin * 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. 2003-05-28 nalin * 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. 2003-05-28 nalin * 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. 2003-05-21 nalin * src/vte.c(vte_terminal_scroll_region): force an entire window repaint if we're supposed to scroll the background but we're not scrolling the entire window. This means we need to repaint the scrolled region, and to keep things looking right, we need to repaint everything. * src/vteapp.c(main): enable visible bell if we're disabling the audible bell, and vice-versa. * src/vte.c: flesh out some doc comments. * doc/reference/tmpl/vte.sgml: flesh out some notes on signals. 2003-05-21 nalin * src/vteconv.c(_vte_conv): pass zero bytes which trigger EILSEQ through and keep going. * src/vteconv.c: replace use of g_utf8_strlen with an internal function which doesn't stop counting at NUL characters. 2003-05-21 nalin * src/interpret.c: use _vte_matcher_free_params_array. * src/vte.c(vte_invalidate_cursor_once): add a parameter for indicating if this is a "cursor blink" (periodic) refresh, and if it is set and the cursor isn't supposed to blink, suppress the invalidate. 2003-05-21 nalin * src/iso2022.c(_vte_iso2022_process): free the temporary array. * src/matcher.c(_vte_matcher_free_params_array): add. * src/vte.c: use _vte_matcher_free_params_array instead of the local copy, which is removed. * src/interpret.c, src/table.c, src/trie.c: use _vte_matcher_free_params_array to free parameter arrays instead of g_value_array_free, which doesn't take care of the pointer values. * src/vte.c(vte_sequence_handler_set_title_internal): only attempt to close the conversion descriptor if it was opened successfully. * src/vteapp.c: add the -k option to spin after gtk_main() returns. * src/vtefc.c: make copies of patterns with FcPatternDuplicate so that we know where all of the returned patterns came from. * src/vtexft.c(_vte_xft_font_for_char): set the item in the pattern array to NULL if we successfully opened a font using the pattern. 2003-05-20 nalin * src/iso2022.c: clarify comments near one of the warning messages. * src/vtefc.c(_vte_fc_transcribe_from_pango_font_description): unref the Pango context, which was created for us. * src/vtepango.c: keep track of the Pango context, and unref it when it is no longer needed. 2003-05-20 nalin * src/Makefile.am: try juggling the CFLAGS and LIBS order to let the xft CFLAGS/LIBS take precedence over everything else (#113335). 2003-05-20 nalin * src/ssfe.c: compile fix for Solaris, patch from #113344. 2003-05-20 nalin * src/vte.c: remove no-longer-used tree structure. * src/vtefc.c: free strings returned by g_object_get(). 2003-05-20 nalin * src/vte.c(vte_terminal_realize): create the terminal's draw structure. * src/vte.c(vte_terminal_unrealize): free the terminal's draw structure. * src/vteapp.c(main): enforce a clean shutdown by requiring that the terminal and top-level window are both finalized before gtk_main() returns. 2003-05-20 nalin * src/vte.c(vte_terminal_finalize): properly send a SIGHUP to the child process if it hasn't already exited (#112505). * src/vteapp.c: don't exit on EOF, only on child-exited. * src/vte.c(vte_sequence_handler_sf): increment the scrolling offset to avoid flickering when the application has defined a scrolling region with top row == 1. 2003-05-19 nalin * src/iso2022.c, src/keymap.c, src/mev.c, src/vtebg.h, src/vteglyph.h: remove comma from end of enum declaration (#111925). * src/vtetc.c: don't use parameter-as-array-size compiler extension (#111925). * src/ssfe.c: don't assume that the compiler interprets \e correctly, use %c with value of 27 instead (#111925). * doc/reference/Makefile.am: obey CPPFLAGS and LDFLAGS (#111925). * gnome-pty-helper/gnome-utmp.c: only include if HAVE_UTMP_H was defined (#111925). * src/keymap.c, src/ssfe.c: unconditionally include if we defined HAVE_CURSES or HAVE_NCURSES, as having the header is a precondition for defining either (#111925). * src/iso2022.c: make each array have at least one element (#111925). * src/pty.c, src/gnome-login-support.c: try to open /dev/ptc if opening /dev/ptmx fails due to ENOENT (#111925). 2003-05-19 nalin * src/vteapp.c: don't exit on eof, just child-exited. * src/vte.c(vte_terminal_eof): don't disconnect from SIGCHLD on eof, the child might still be running. 2003-05-19 nalin * src/Makefile.am: change all instances of "termcap" to "vtetc". * src/termcap.c, src/termcap.h: rename to vtetc.c, vtetc.h, to avoid conflicts with system headers. 2003-05-19 nalin * src/keymap.c: fix KP_PageDown in application keypad mode (#113187). * src/reaper.c: add a finalize method which properly cleans things up so that the singleton can at least theoretically be destroyed (part of a fix for #112172). * src/vte.c: obtain a ref to a reaper object whenever we are waiting for a child to exit. * po/POTFILES.in: add more source files for scanning. * src/iso2022.c: rework pieces to handle incomplete sequences at the end of input. Check for 8-bit SS2 and SS3 in case of EILSEQ. Build a fake ISO-8859-1 map for conversions using invalid maps. * src/iso2022.c(_vte_iso2022_state_free): free the state's buffer. * src/vteconv.c: internalize UTF-8 to UTF-8 conversions, fix handling of incomplete sequences at the end of the available data. * src/vte.c: implement send/receive and automatic linefeed modes. * src/vte.c(vte_sequence_handler_sr): invalidate the row which contains the cursor to ensure that it doesn't leave a trail. * src/vte.c(vte_sequence_handler_return_terminal_id): add. * src/vte.c(vte_terminal_feed_child_using_modes): add. 2003-05-19 Telsa Gwynne * configure.in: Add cy (Welsh) to ALL_LINGUAS 2003-05-13 nalin * src/iso2022.c(_vte_iso2022_find_nextctl): don't recognize 8-bit SS2 and SS3 by default, it breaks UTF-8 and other encodings (#112879). 2003-05-13 nalin * src/vtedraw.c, src/vtedraw.h: add _vte_draw_needs_repaint() to indicate if the drawing back-end can only handle entire-window paints. * src/vteconv.c: return a value from _vte_conv_close(), even though it isn't used. * src/vte.c(vte_terminal_paint): don't look at drawing starting at negative row or coumn offsets. * src/vtegl.c: prefer glX double-buffering to GDK's, and use double- buffered possibly-direct windows instead of indirect pixmaps. 2003-05-12 nalin * src/vtebg.c(_vte_bg_get_pixmap, _vte_bg_get_pixbuf): account for the foreign root pixmap not having a colormap by default, using the root window's colormap if it doesn't already have one set. 2003-05-12 nalin * src/iso2022.c(_vte_iso2022_state_new): if we can't convert from the locale encoding to UTF-8, use UTF-8 as the locale encoding (#112614). * src/vtegl.c(_vte_gl_start): enable point smoothing. 2003-05-08 nalin * src/vtedraw.c, src/vtedraw.h (_vte_draw_get_colormap): let the caller control whether or not we return the default colormap. * src/vtegl.c: enable blending. Don't specify any buffer depths. Set the current drawable before we do any drawing. Call gluOrtho2D with the right args to set up the right projection. * src/vteskel.c: quiet compiler warning by removing a "const". * src/vtedraw.c: juggle the preferred render order again. 2003-05-08 Abel Cheung * configure.in: Added "mk" to ALL_LINGUAS. 2003-05-07 nalin * src/iso2022.c: let OSC command sequences be subject to code conversion again (#112485). 2003-05-07 nalin * src/vteconv.c, src/vteconv.h: add VteConv as a thin wrapper around GIConv. * src/iso2022.c: use VteConv. * src/matcher.c(_vte_matcher_find_valid_encoding): remove. * src/matcher.c(_vte_matcher_wide_encoding): remove. * src/trie.c: use VteConv. * src/utf8echo.c: use VteConv. * src/vte.c: use VteConv (#112446). 2003-05-06 nalin * src/vte.c: add "Since: 0.11" to documentation for functions which aren't available in the 0.10 series. * src/iso2022.c: default G2 to JIS0201, G3 to JIS0212 for Japanese, because they appear to not be used by anyone else. * vte.spec: merge with .spec file from RHL. 2003-05-06 nalin * src/vtegl.c: get text rendering semi-working. 2003-05-06 nalin * src/vteft2.c, src/vtegl.c, src/vtepango.c, src/vtepangox.c, src/vtexft.c: when setting up backgrounds, don't deref an existing background before fetching a new one, in case they're the same. * src/vteglyph.c(_vte_glyph_draw): fix computation of the input offset. * src/vtegl.c: implement drawing of backgrounds. 2003-05-06 nalin * src/iso2022.c(_vte_iso2022_map_J): include the whole JIS0201 map instead of just the lower half. * src/iso2022.c(_vte_iso2022_map_get): set the and_mask to clear the high bits of pairs before looking them up in the maps. * src/iso2022.c(_vte_iso2022_fragment_input): recognize the 8-bit versions of SS2 and SS3. * src/iso2022.c(_vte_iso2022_process_control): recognize the 8-bit versions of SS2 and SS3. 2003-05-06 Danilo Šegan * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS. 2003-05-05 nalin * src/debug.h: include for gboolean type definition. * src/matcher.c: include "config.h" and "debug.h". * src/matcher.h: use G_BEGIN_DECLS/G_END_DECLS * src/table.h: use G_BEGIN_DECLS/G_END_DECLS * src/termcap.h: include , again for gboolean. * src/vtebg.h,src/vterdb.h,src/vtergb.h: adjust macro used to prevent multiple inclusions to match the rest of the tree. * src/vtefc.c(_vte_fc_patterns_from_pango_font_desc): provide a callback which can be used to override all defaults. * src/vtegl.h,src/vtexft.h: don't include "config.h" * src/vteglyph.c, src/vteglyph.h: add _vte_glyph_get_uncached(). 2003-05-04 nalin * gnome-pty-helper/gnome-login-support.c(n_read,n_write): if ERESTART is defined, treat it like EINTR and EAGAIN. * src/pty.c(n_read,n_write): if ERESTART is defined, treat it like EINTR and EAGAIN. 2003-05-02 nalin * configure.in: define _XOPEN_SOURCE_EXTENDED, _XOPEN_SOURCE, and __EXTENSIONS__ to get definitions for msg_control and msg_controllen on Solaris (#112036). * src/vtedraw.c(_vte_draw_set_scroll): don't try to return a value from this void function (#112036). Patch from Hidetoshi Tajima. * src/xticker.c: don't include getopt.h, which isn't even needed for regular getopt() (#112036). Patch from Hidetoshi Tajima. 2003-05-01 nalin * src/vtebg.c(vte_bg_set_root_pixmap,vte_bg_root_pixmap): remove some debugging g_print() calls. * src/iso2022.c(process_cdata): skip over NUL bytes (#112022). * src/vte.c(vte_terminal_background_update): map the bgcolor values to a pixel value before setting the window background color. * src/nativeecho.c(main): echo NUL bytes if asked to do so. 2003-05-01 nalin * src/vtebg.c, src/vtebg.h: add a singleton object for managing copies of background images, either the desktop background, an in-memory pixbuf, or an on-disk file, with tinting. Using a single store for this stuff lets multiple widgets share images and should reduce both CPU and memory consumption in applications which create more than one VteTerminal instance with similar settings. * src/vtedraw.c, src/vtedraw.h: adapt the set_background_pixbuf() interface to the vtebg method and rename to set_background_image(). * src/vteft2.c, src/vtegl.c, src/vtepango.c, src/vtepangox.c, src/vteskel.c, src/vtexft.c: update to work with newer vtebg/vtedraw interfaces. * src/vte.c(vte_terminal_filter_property_changes): remove in favor of vtebg method. Manage background state for vtebg. 2003-05-01 Kang Jeong-Hee * doc/reference/Makefile.am: s/index.sgml/index.html/. There's no index.sgml in html directory, but a index.html. 2003-04-29 nalin * src/vte.c(vte_sequence_handler_local_charset): remove the unused DEFAULT_ISO_8859_1 case. * src/vte.c(vte_terminal_class_init): don't call _vte_matcher_narrow_encoding(), because we don't need it any more. Change the error message emitted when _vte_matcher_wide_encoding() fails (#111925), and mark it for translation. * src/trie.c(main): don't call _vte_matcher_narrow_encoding() just to print its result. * src/vte.c(vte_terminal_set_encoding): include the right codeset name in the error message. * src/vteglyph.c(_vte_glyph_get): mark error message for translation. * src/matcher.c, src/matcher.h: remove _vte_matcher_narrow_encoding(). Make tables of strings "const". 2003-04-29 nalin * src/vte.c(vte_terminal_unrealize): set the IM context's client window to NULL before unreferencing it to avoid crashes when preedit is active. 2003-04-29 nalin * src/keymap.c: add keymaps for GDK_slash and GDK_question (#108299). 2003-04-29 nalin * src/vterdb.c(_vte_rdb_get): use INT_MAX instead of LONG_MAX when passing in the maximum length, because it's returned in an int. 2003-04-29 nalin * src/iso2022.txt: fix the UTF-8 sample text which corresponds to the ISO-2022-KR sample text so that it actually matches the text. 2003-04-29 nalin * src/iso2022.c(_vte_iso2022_map_U): add map for CP437. * src/unitable.CP437: add. * src/mkunitables.sh: add CP437. * src/Makefile.am: add unitable.CP437 to the file list. 2003-04-29 nalin * src/iso2022.c(_vte_iso2022_process_control): accept and warn about bogus map names (#110300). 2003-04-28 nalin * src/vte.c(vte_invalidate_cursor_once): rework to simplify the logic of how many cells to invalidate when we have a preedit string. * src/vte.c(vte_terminal_paint): draw the preedit string correctly for cases more complicated than the default IM (seems to fix #111767). * src/vterdb.c(_vte_rdb_get): use g_strncpy() and the property length to avoid going past the end of the possibly-not-nul-terminated string. * src/Makefile.am: build a standalone vterdb binary. 2003-04-28 nalin * src/vte.c(vte_terminal_insert_char): add another flag to skip over sanity-checking the buffer when adding characters. * src/vte.c(vte_terminal_process_incoming): sanity-check the buffer only when necessary to save time. * src/vte.c(vte_terminal_scroll_region): invalidate the region which is exposed when we scroll so that the entire cell gets redrawn, avoiding clipping problems (#111683). * src/vte.c(vte_terminal_paint): fix math for determining where to stop drawing. * src/vte.c(vte_terminal_fill_rectangle): rename to ..._int to reduce confusion over which internal drawing commands are offset and which are not. * src/vte.c(vte_terminal_insert_char): if performing a single substitution, check the encoded width of the output char, not the input char, which doesn't have one. 2003-04-28 nalin * src/vterdb.c, src/vterdb.h: add routines for pulling Xft antialiasing and hinting options from the resource database. * src/vtefc.c(_vte_fc_patterns_from_pango_font_desc): apply settings from the resource database after applying settings from GTK+. * src/vtefc.c(_vte_fc_defaults_from_rdb): added, for adding default settings based on the resource database. 2003-04-27 nalin * src/vtefc.c(_vte_fc_defaults_from_gtk): complain when the installed version of GTK+ doesn't support reporting Xft antialiasing and hinting settings. 2003-04-25 nalin * src/vte.c(vte_sequence_handler_sf): freeze the window when scrolling down in a restricted scrolling area again. 2003-04-23 nalin * src/iso2022.c(_vte_iso2022_state_set_codeset): save the new codeset. * src/iso2022.c(process_cdata): compare the new codeset to the name of the UTF-8 codeset instead of the local codeset to see if we need to notify callers of a change. 2003-04-23 nalin * src/vte.c(vte_sequence_handler_sf): don't use the window freeze count to check if it's safe to scroll using gdk_window_scroll(), require other parts of this widget to declare it unsafe for those cases. 2003-04-23 nalin * src/vtexft.c(_vte_xft_char_width): take an explicit XftFont instead of figuring out which one to use ourselves. * src/vtexft.c(_vte_xft_draw_text): pass the XftFont which we're already using to _vte_xft_char_width to save a call to _vte_xft_font_for_char. 2003-04-23 nalin * autogen.sh: accept libtool 1.5 in addition to 1.4 (#15968). 2003-04-23 nalin * src/vte.c,src/vte.h: (_vte_terminal_accessible_ref): add. * src/vteaccess.c(vte_terminal_accessible_new): call _vte_terminal_accessible_ref to ensure that accessible signals are going to be emitted. 2003-04-23 nalin * src/dumpkeys.c: formatting fixup. * src/iso2022.c: formatting fixups. Try using U+FFFF as the "invalid" marker character instead of '?', because it's actually invalid. * src/pty.c: formatting fixup. * src/reflect.c: formatting fixup. * src/ring.c: formatting fixup. * src/ssfe.c: formatting fixups. * src/trie.c: formatting fixup. * src/vte.c: formatting fixups. * src/vte.c(vte_terminal_get_accessible): don't add a weak pointer to the AtkObject if it isn't a valid AtkObject. Only emit text-changed signals if we managed to create a valid accessible peer. * src/vteaccess.c: formatting fixups. * src/vteaccess.c(vte_terminal_accessible_init): unset the EXPANDABLE Atk state. Set the RESIZABLE state. * src/vteaccess.c(vte_terminal_accessible_class_init): Remove spurious(?) call to bind_textdomain. * src/vteaccess.c(vte_terminal_accessible_get_type): check if the accessible peer of our peer's ancestor is derived from GtkAccessible, and if it isn't derive from GtkAccessible instead of that. * src/vteaccess.c(vte_terminal_accessible_get_type): register our factory type. * src/vteaccess.c, src/vteaccess.c: add VteTerminalAccessibleFactory. * src/vtedraw.c: formatting fixup. 2003-04-23 nalin * src/vte.c(vte_terminal_background_update): always refetch the root pixmap if we don't currently have a background image (#111386). 2003-04-23 nalin * src/vteaccess.c: implement an AtkComponent interface (part of #110770). * src/vteaccess.c(vte_terminal_accessible_focus_in): set the focus state on the accessible peer (part of #110770). * src/vteaccess.c(vte_terminal_accessible_focus_out): unset the focus state on the accessible peer (part of #110770). * src/vteaccess.c(vte_terminal_accessible_init): connect to the widget's visibility-notify signals. * src/vteaccess.c(vte_terminal_accessible_finalize): disconnect from the widget's visibility-notify signals. 2003-04-23 nalin * src/vte.c(vte_terminal_background_update): don't bother generating a new pixmap or panning the pixbuf -- we can use the desaturated pixbuf directly now (#111386). * src/vte.c(vte_terminal_paint): use the drawing offsets because we don't regenerate new background pixmaps when the window is moved. * src/vte.c(vte_terminal_draw_cells): add jittered bold text back in, fell out in the drawing overhaul (#111430). 2003-04-22 nalin * src/iso2022.c(_vte_iso2022_fragment_input): account for valid CSI sequences which were missed earlier. 2003-04-22 nalin * src/vte.c(vte_terminal_eof): dispose of the PTY completely. * src/vte.c(vte_terminal_child_exited): dispose of the PTY completely. 2003-04-22 nalin * configure.in: add missing check for recvmsg. * gnome-pty-helper/gnome-login-support.c: formatting and spelling fixes. * gnome-pty-helper/gnome-login-support.c(n_read): reorganize. * gnome-pty-helper/gnome-login-support.c(n_write): add. * gnome-pty-helper/gnome-login-support.h: add prototype for n_write. * gnome-pty-helper/gnome-pty-helper.c: only define the I_SENDFD version of pass_fd() if I_SENDFD is defined, to clarify compile errors when it isn't defined. * src/pty.c(main): exercise session logging. * src/pty.c(_vte_pty_open_with_helper): add more debug messages. 2003-04-22 nalin * src/iso2022.c(_vte_iso2022_map_get): force visible widths to 2 columns for CJK maps which use 2 bytes per character. * src/iso2022.c(_vte_iso2022_fragment_input): recognize CSI/OSC/PM sequences as control sequences and not raw text, allowing us to treat them specially later. * src/iso2022.c(process_control): pass CSI/OSC/PM sequences through unmodified (without going through maps). 2003-04-22 nalin * src/vte.c(vte_invalidate_cursor_once): don't bother doing anything if we're fully obscured (related to #102703). 2003-04-22 nalin * src/vteapp.c(main): stop messing with fontconfig's list of font directories. 2003-04-22 nalin * configure.in: rework link order so that xft2 is linked before anything else. You're still screwed if you link with both xft1 and xft2 libs, but maybe this'll help (#107285). 2003-04-22 nalin * src/vteglyph.c: fix a couple of #errors. * src/vte.c(vte_invalidate_cells): if the area we're invading is on the edge, invalidate the edge as well. * src/pty.c: implement and use wrappers for read and write which handle EINTR and EAGAIN. * src/vte.c(vte_terminal_scroll_region): don't use gdk_window_scroll if the window is frozen for updates. * src/vte.c(vte_terminal_sequence_handler_sf): when scrolling down while we have a defined scrolling region, freeze the window to avoid flicker when we update the scrolling offsets (#108058). 2003-04-21 nalin * gnome-pty-helper/gnome-login-support.c(n_read): don't bail out if read() returns -1 and errno is either EINTR or EAGAIN, candidate fix for #107534. 2003-04-21 nalin * src/vte.c(vte_terminal_io_read): add a couple of assertions here just to be sure (#108066). 2003-04-21 nalin * src/pty.c(_vte_pty_ptsname): don't depend on PATH_MAX being available and correct (#109805). * src/vte.c(vte_terminal_set_termcap): don't depend on PATH_MAX being available and correct (#109805). * src/vte.c(vte_terminal_io_read): fix signed/unsigned comparison (#108066). 2003-04-21 nalin * Makefile.am: add MESSAGE-OF-DOOM to EXTRA_DIST * src/keymap.c: make Alt+Return generate ESC newline (#108863). 2003-04-21 nalin * src/Makefile.am: drop unitable.KSC5601 * src/iso2022.c: fixup comment re: KS X 1001 (#107119). * src/mkunitables.sh: add two characters from KS X 1001:1998 (#107119). 2003-04-21 nalin * src/vte.c(vte_terminal_eof): don't try to process incoming data if there isn't any (#110946). * src/vtexft.c: mark a warning message for translation. * src/vtegl.c: make the warning when glX isn't available debug-only. 2003-04-21 nalin * src/vteglyph.c: use #if HAVE_DECL_XXX instead of #ifdef HAVE_DECL_XXX, noted by Bob Doan. 2003-04-20 nalin * src/vtexft.c: work around for garbled glyphs when drawing runs of text using multiple fonts while mixing bitmap and antialiased fonts 2003-04-17 nalin * src/vte.c: add missing prototype for vte_terminal_process_incoming(). 2003-04-17 nalin * src/vteglyph.c(_vte_glyph_get): quiet a compiler warning. * src/iso2022.c: use KSX-1001 instead of KSC-5601 for Korean (#107119), add maps for CNS 11643 planes 3,4,5,6,7 (can't test them, but hey). Rework so that we get the data before it's passed to g_iconv(), and return gunichars. * src/interpret.c: adapt to changes in the iso2022 interfaces. * src/vte.c: adapt to changes in the iso2022 interfaces. * src/mkunitables.sh: add snippets for KSX 1001. * src/iso2022.txt: add iso-2022-cn example text. 2003-04-17 nalin * src/vte.c(vte_terminal_process_incoming): invalidate a larger rectangle to fix behavior wrt openi18n assertion 2. 2003-04-16 nalin * src/vte.c(vte_terminal_paint): fix logic error drawing the cursor which caused ALTGR characters to always be used. Draw the preedit string in the right location. * src/vte.c(vte_invalidate_cursor_once): expose the visible width of the preedit string, not its length. 2003-04-15 nalin * src/vteaccess.c: fix broken debug message. 2003-04-15 nalin * src/vte.c: make row_data a structure containing an array instead of a simple array. Add a field to row data structures which tracks whether or not we soft-wrapped from this line to the next one. Make use of the field when copying text and selecting by "line" (#105189). * src/reflect.c: put the label in a scrolled window to avoid mad loops when we resize it to accomodate more text, which shrinks the terminal, which removes text from the label, which resizes it to be smaller, which gives the terminal more space, which adds text to the viewable area, which requires a bigger label, and so on. * src/vte.c: move vte_terminal_get_text_range logic into vte_terminal_get_text_range_maybe_wrapped for internal use, vte_terminal_get_text likewise. 2003-04-14 nalin * src/vte.c: don't snap the beginning of selection to the next line in select-by-line mode. 2003-04-14 nalin * configure.in, src/vteglyph.c: fix macro invocations so that when LCD and GRAY2/GRAY4 pixel modes are supported by freetype, we don't get confused by them. * src/vtepango.c, src/vtepangox.c: fix background scrolling. 2003-04-14 nalin * autogen.sh: require automake 1.6, 1.5 chokes on AM_LDFLAGS, which 1.7 wants instead of LDFLAGS(!). Require autoconf 2.52 or newer, because older versions bail on configure.in. * configure.in: Check if ft_render_mode_mono, FT_RENDER_MODE_NORMAL, FT_PIXEL_MODE_MONO, ft_pixel_mode_mono, FT_PIXEL_MODE_GRAY2, FT_PIXEL_MODE_GRAY4, FT_PIXEL_MODE_GRAY, ft_pixel_mode_grays, FT_PIXEL_MODE_LCD are declared. * src/vte.c, src/vteapp.c, src/vtefc.c, src/vtepango.c: handle being built with GTK+ 2.0 or 2.2. * src/vtegl.c: disable for GTK+ < 2.2.0. * src/vtepangox.c: use a PangoX context instead of a Pango context when determining font metrics. * src/vteglyph.c: handle the twisty maze of load and render options and pixel modes various versions of freetype support. 2003-04-14 nalin * configure.in: disable pangox, xft, glx drawing if run invoked with the --without-x flag. * vte.pc.in: include CFLAGS found by AC_PATH_XTRA when built with X. * src/iso2022.c(_vte_iso2022_substitute_single): clean up and ensure that ambiguous widths are respected. * src/iso2022.c, src/iso2022.h: add _vte_iso2022_unichar_width(). * src/vte.c: remove old xft2/xft1/pango/pangox/core drawing code, making draw the only supported method. Remove most dependencies on gdkx and Xlib, except for root pixmap ID watching. * src/vtedraw.c: only use pangox, xft if X_DISPLAY_MISSING is not defined. * src/vtedraw.c, src/vtedraw.h: add get_using_fontconfig() method. * src/vte.c(vte_terminal_get_using_xft): use _vte_draw_get_using_fontconfig(), which is what apps really want to know when they call this function. * src/vtegl.c: wrap in #ifndef X_DISPLAY_MISSING. * src/vtepangox.c: wrap in #ifndef X_DISPLAY_MISSING. * src/vtexft.c: wrap in #ifndef X_DISPLAY_MISSING. * src/vteglyph.c(_vte_glyph_cache_set_description): use horizontal advance instead of bitmap width when calculating display widths. Rename to _vte_glyph_cache_set_font_description. 2003-04-09 nalin * src/vte.c: add back some variables which are used after all. 2003-04-09 nalin * configure.in: add specific checks for PangoX and glX. * src/vteft2.c, src/vteft2.h: add drawing method using freetype and GdkRGB. * src/vteglyph.c, src/vteglyph.h: add. * src/vtepangox.c, src/vtepangox.h: add drawing method using PangoX. * src/vtergb.c, src/vtergb.h: add. * src/vtegl.c, src/vtegl.h: add placeholder drawing method using freetype and glX. * src/Makefile.am: add newly-added source files to libvte.la target. * src/vtedraw.c, src/vtedraw.h: add get_visual and get_colormap methods so that drawing methods can override the default visual and colormap. Rename get_text_base() to get_text_ascent(), which is more correct. Remove scroll(), which would just wrap gdk_window_scroll(). * src/vte.c: fix logic for choosing alternate render methods when VTE_USE_XFT is "0". * src/vteapp.c: add -- option to stop parsing options with getopt. * src/vtefc.c: fix incorrect DPI read due to type mismatch (#109513). 2003-03-31 Laurent Dhima * configure.in: Added "sq" to ALL_LINGUAS. 2003-03-26 nalin * src/Makefile.am: specify AM_CFLAGS and AM_LDFLAGS instead of CFLAGS and LDFLAGS so that automake 1.7 doesn't kick us to the curb 2003-03-13 Christian Rose * configure.in: Added "ml" to ALL_LINGUAS. 2003-03-07 nalin * src/vte.c(vte_terminal_paint): adjust coordinates for the border when clearing rectangles. * src/vteskel.c, src/vteskel.h: add. * src/vtedraw.c: use the skeleton drawing code. 2003-03-07 nalin * src/vte.c(vte_terminal_visibility_notify): watch for Visibility events. * src/vte.c(vte_invalidate_cells,vte_invalidate_all): don't synthesize an expose event if we're fully obscured, that's just silly. 2003-03-06 nalin * src/vte.c, src/vte.h(vte_terminal_set_background_tint_color): take a const GdkColor* instead of a non-const color. 2003-03-06 nalin * python/vte.defs: regenerate. * python/vte.override: update for vte_char_attributes rename. 2003-03-06 nalin * src/vte.c, src/vte.h, src/vteaccess.c: rename struct vte_char_attributes to VteCharAttributes, fixup some docs. * doc/reference: finish up docs. 2003-03-05 nalin * vte.pc.in: add FT2_LIBS and FT2_CFLAGS to our libs and cflags. Add xft >= 2.0 and fontconfig as hard requirements. 2003-03-05 nalin * src/vtedraw.c: don't spit out which rendering method we're using except in debug mode. 2003-03-05 nalin * src/vtepango.c, src/vtexft.c: don't print "Bogus font." when we think the font metrics are screwy. 2003-03-05 nalin * configure.in: require Xft2 and fontconfig, drop Xft1. Require freetype2. * src/Makefile.am, src/xticker.c: add xticker, useless but interesting. * src/vte.c, src/vte.h: add vte_terminal_set_scroll_background() to enable background scrolling (where supported by the drawing code). * src/vteapp.c: set the tinting color to the default background color to see what that's like. Add -s option to toggle scrolling backgrounds. * src/vtefc.c, src/vtefc.h: add. For converting PangoFontDescriptions to sorted lists of FcPatterns suitable for passing to XftFontOpenPattern or FT_New_Face. * src/vtedraw.c, src/vtedraw.h: add. New drawing layer. * src/vtepango.c, src/vtepango.h: add. Drawing layer using Pango. * src/vtexft.c, src/vtexft.h: add. Drawing layer using Xft2. * src/vte.c: add render type VteRenderDraw for transitional period in preparation for nuking other drawing code. Merge HAVE_XFT bits into HAVE_XFT2 areas. Nuke Xft1-specific stuff. Move drawing of lines and rectangles to dedicated functions. Always call vte_unichar_width() instead of g_unichar_iswide(). 2003-03-04 nalin * src/vte.c(vte_sequence_handler_set_title_internal): fix swap of one variable for another which prevented stripping of control chars, spotted by Nam SungHyun. 2003-03-04 nalin * src/vte.c(vte_terminal_insert_char): wrap properly when a scrolling region is set (#107559). 2003-02-28 Takeshi AIHANA * po/ja.po: Added Japanese translations from gnome-2-2. 2003-02-26 nalin * src/iso2022.c(_vte_iso2022_substitute,_vte_iso2022_substitute_single): force characters substituted through the ACS map to have width of 1. 2003-02-26 nalin * src/vte.c(vte_terminal_font_open_xft,vte_terminal_font_open_pango): use an array of codepoints instead of a UTF-8 string so that we can check for lack of font coverage in Xft fonts. 2003-02-26 nalin * src/vte.c: formatting fixups. 2003-02-26 nalin * src/vte.c(vte_terminal_font_open_xft,vte_terminal_font_open_pango): patch from Jungshik Shin for detecting and handling fonts where ASCII characters are double-width (#106618) 2003-02-26 Taneem Ahmed * configure.in: Added "bn" to ALL_LINGUAS. 2003-02-25 nalin * src/vteapp.c(main): take a shot at implementing xconsole-like functionality when started with the -C flag: we open /dev/console and TIOCCONS it, and just feed data to the widget until we lose ownership of the MIT_CONSOLE_$(hostname) clipboard. 2003-02-25 Samúel Jón Gunnarsson * configure.in: added "is" to ALL_LINGUAS. 2003-02-24 nalin * src/vte.c(vte_sequence_handler_window_manipulation): don't report the user-settable title and icon strings to applications, based on H D Moore's "Terminal Emulator Security Issues" (CAN-2003-0070). * src/vte.c(vte_sequence_handler_set_title_internal): strip out control characters just to be on the safe side. 2003-02-24 nalin * src/vte.c(vte_sequence_handler_decset_internal): home the cursor when we switch to the alternate screen (#105075). 2003-02-23 Duarte Loreto * configure.in: Added "pt" to ALL_LINGUAS. 2003-02-21 Metin Amiroff * configure.in: Added az to ALL_LINGUAS. 2003-02-20 nalin * src/keymap.c(_vte_keymap_map): in debug mode, skip coverage assertions for specific keys (GDK_2 - GDK_8). * src/keymap.c: remove unshifted entries for GDK_2 - GDK_8 (#106667) 2003-02-20 nalin * src/vte.c(vte_terminal_im_commit,vte_terminal_paste_cb): stop gratuitously resetting the IM context. * src/vte.c(vte_terminal_process_incoming): correctly determine when we have an IM context -- it should be iff we're realized. * src/vte.c(vte_terminal_key_press/release): only filter keypresses through the IM context if we're realized, otherwise it doesn't exist. 2003-02-20 nalin * src/vte.c(vte_terminal_paint): reverse that last change -- don't always assume proportional text. * src/vte.c(vte_sequence_handler_ta): eliminate dead code. 2003-02-20 nalin * src/vte.c(vte_terminal_draw_row): move the initial drawing x left whenever we back up to a previous cell to avoid drawing fragments. * src/vte.c(vte_terminal_paint): always assume non-monospaced text, because the "missing glyph" glyph consistently looks screwy otherwise. 2003-02-20 nalin * src/vte.c(vte_terminal_feed_child): don't reset the input method here -- it may be in the middle of something (Red Hat #81542). * src/vte.c(vte_terminal_im_commit): reset the input method when we get text committed (Red Hat #81542). 2003-02-19 nalin * src/vte.c(vte_terminal_focus_in,vte_terminal_focus_out): if we're not currently realized, don't try to tell our IM context that our focus state changed, because we don't have one. While we're at it, it's silly to try to force the cursor to be drawn when we're not realized, either. * src/vte.c(vte_terminal_background_update): disconnect self, just in case we were called directly while still queued, which would otherwise leak the source, leading to potential problems later (Red Hat #84368). 2003-02-19 nalin * src/vte.c(vte_terminal_scroll_window): use gdk_window_scroll if the first row to be scrolled is the first visible row, not just if it's the first row we ever saw (Red Hat #83472). 2003-02-19 nalin * src/vte.c(vte_terminal_button_press): grab input focus on button 1 press (#106573, Red Hat #84384). 2003-02-19 nalin * src/vte.c(vte_terminal_sequence_handler_bt): add missing chunk of fix for backtab. 2003-02-19 nalin * src/vte.c: turn on update debugging if VTE_DEBUG_FLAGS includes "updates" 2003-02-19 nalin * src/keymap.c: add map entries for unmodified digit keypresses. 2003-02-19 nalin * src/vte.c(vte_terminal_match_add): use the default cursor by default, so that we don't look weird to people who aren't used to the cursor changing this way. * configure.in: forcibly define VTE_DEBUG to "1" when we define it. 2003-02-19 nalin * src/vteaccess.c: emit focus-event signals from the accessible peer when the widget receives focus-in and focus-out events, noted by Marc Mulcahy. 2003-02-18 Roozbeh Pournader * configure.in: Added "fa" to ALL_LINGUAS. 2003-02-18 nalin * src/vte.c, src/vte.h: add vte_terminal_match_set_cursor() (#105986). 2003-02-18 nalin * src/Makefile.am: add @LDFLAGS@ to all of the LDADD clauses, hopefully fixing #105415. 2003-02-17 nalin * src/vte.c(vte_terminal_sequence_handler_cs): recognize and discard invalid arguments (#57453). 2003-02-17 nalin * src/keymap.c: add map entries for Ctrl+digit keys (#106193, Red Hat #83563). 2003-02-17 Alessio Frusciante * configure.in: Added "it" (Italian) to ALL_LINGUAS. 2003-02-16 Dmitry G. Mastrukov * configure.in: Added Belarusian to ALL_LINGUAS. 2003-02-14 nalin * src/vte.c(vte_terminal_sequence_handler_bt): fix to move back to the leftmost column if there are no previous tabstops, exercised by make menuconfig. 2003-02-14 nalin * src/vte.c(vte_terminal_background_update): handle pixbufs with n_channels != 3. 2003-02-14 nalin * src/interpret.c: handle width masks now that we're encoding widths for all characters. 2003-02-14 nalin * src/vte.c: more comments to keep myself from getting confused later. 2003-02-13 nalin * src/vte.c: change the coalescing timeout to 2ms. 2003-02-13 nalin * src/vte.c(vte_terminal_io_read): attempt to coalesce data received within about 10ms to reduce load on the X server on systems where the scheduler wakes us up as soon as we have a few bytes available. Based on a suggested fix by msw. * src/vte.c(vte_terminal_io_read): never free buf, it's not a heap variable any more. Spotted by msw. 2003-02-12 nalin * src/vte.c(vte_terminal_finalize): close fd leak. * src/vte.c(vte_terminal_fork_command): close potential fd leak. 2003-02-12 nalin * src/reflect.c(main): handle cases where the widget has no data and returns NULL when we ask for it. 2003-02-12 nalin * src/reflect.c(main): do a complete read of the widget before we start off in main to ensure we have accurate data. * src/vteaccess.c(vte_terminal_accessible_update_private_data_if_needed): only attempt to free the previous snapshot if it existed. 2003-02-12 nalin * src/reflect.c(main): connect to signals before any get emitted. * src/vteaccess.c: use a GString to store snapshot text so that we always have proper length information. 2003-02-12 nalin * src/reflect.c(text_changed_delete): spit out a warning if we receive an out-of-range text_changed::delete signal. 2003-02-11 nalin * src/genwidths, src/uniwidths: add data for tracking ambiguous-width Unicode characters. * src/iso2022.c, src/iso2022.h: add _vte_iso2022_is_ambiguous() for checking if a character is ambiguous, and _vte_iso2022_ambiguous_width() for guessing how wide it should be based on the current locale. Rename _vte_iso2022_get/set_width to ...encoded_width to clarify the intent, ditto for the related macros. * src/table.c,src/trie.c: use renamed macros for reading encoded widths. * src/iso2022.c(_vte_iso2022_substitute_single,_vte_iso2022_substitute): handle ambiguous widths properly, and always encode a width. * src/Makefile.am: use the default LDFLAGS, I think. * src/vte.c,src/vte.h: add vte_terminal_set_background_tint_color(). * src/vte.c(vte_terminal_unrealize): unhook from background update sources, because we may not have a display after that. * src/vte.c(vte_terminal_size_allocate): only queue a background update if we're in transparent mode and either we've been moved or we have no background yet. If our size changed, force a repaint. * src/vte.c(vte_sequence_handler_window_manipulation): snip off the padding along the edges when responding to requests for the window size and location -- apps have no way to query it. * src/vte.c(vte_terminal_get_text_range): skip over fragments properly. * src/vte.c(vte_terminal_draw_row): skip over fragments properly. * src/vte.c(vte_unichar_width): rework in terms of the width checking in the iso2022 module for consistency. 2003-02-06 Christian Rose * configure.in: Added "id" to ALL_LINGUAS. 2003-02-03 nalin * src/vte.c(vte_terminal_size_allocate): suppress background updates if we haven't moved and the background image already exists (#104868). 2003-01-31 nalin * src/vte.c(vte_terminal_get_accessible): keep a weak pointer to the accessible peer instead of a static pointer (part of #104909). * src/vte.c(vte_terminal_finalize): if the accessible peer still exists, remove its weak pointer before attempting to unref it. * src/vte.c: rename accessible_exists member to accessible_emit, which more accurately reflects its purpose. * src/vteaccess.c(vte_terminal_accessible_update_private_data_if_needed): always update the cursor position, in case text was added or removed without the cursor itself moving. * src/vteaccess.c(vte_terminal_accessible_get_text_somewhere): don't emit a warning when the caller attempts to read the Nth character when we have 0 to N-1, just return an empty string. * src/vteaccess.c(vte_terminal_accessible_new): make the terminal peer a weak pointer (part of #104909). * src/vteaccess.c(vte_terminal_accessible_finalize): if the terminal peer is not NULL, disconnect it as a weak pointer and don't bother disconnecting from its signals (part of #104909). Add a debug message. * src/vteaccess.c(vte_terminal_accessible_text_finalize): Add a debug message. 2003-01-31 nalin * src/vte.c(vte_unichar_isgraphic): rename to vte_unichar_is_graphic, to match conventions used elsewhere. * src/vte.c(vte_unichar_is_graphic): count 0xa3, 0x3c0, 0x2592, 0x25ae, 0x25c6 as graphic characters. * src/iso2022.txt: add sample text using character set 0. 2003-01-30 Fatih Demir * configure.in: Added "tr" (Turkish) to the languages' list. 2003-01-30 nalin * MESSAGE-OF-DOOM: added, for scaring people away. * vte.spec: bump to 0.11.x for development. * src/mev.c(main): reset modes before quitting. * src/vte.c(vte_terminal_button_press): don't always extend selection when not in event mode. 2003-01-28 nalin * configure.in: make debugging support an explicit option to configure. don't automatically enable debugging in maintainer mode. 2003-01-27 nalin * src/vte.c(vte_terminal_realize): create the "invisible" cursor using a bitmap instead of a pixmap, changing it from a 1x1 black square to nothing. 2003-01-27 nalin * src/vte.c(vte_terminal_decset_internal): make the various mouse event modes mutually-exclusive, because apps expect them to be (#104395). * src/vte.c: add a prototype for vte_terminal_background_update before it is used to silence a compiler warning. 2003-01-27 nalin * src/vte.c(vte_terminal_realize): force a background update immediately when we realize instead of queuing it up (#104381). 2003-01-26 Daniel Yacob * configure.in: Added "am" to ALL_LINGUAS. 2003-01-24 nalin * src/vte.c(vte_terminal_background_update): fix declaration order (#13795). 2003-01-24 Nam SungHyun * configure.in: Added "ko" to ALL_LINGUAS. 2003-01-23 nalin * src/caps.c, src/vte.c: recognize and ignore attempts to set text properties 21 and 2L, whatever those are (possible workaround #104154). 2003-01-23 nalin * src/iso2022.c: accept "1" and "2" as aliases for "B" (#104257). 2003-01-23 nalin * configure.in: check for curses if we don't have ncurses (the order is ncurses, curses, libtermcap), as Solaris has neither ncurses nor libtermcap. Reported by Brian Cameron. * src/keymap.c, src/ssfe.c: accept either curses or ncurses as equivalent. 2003-01-22 nalin * src/Makefile.am, src/mev.c: add mev. * src/vte.c(vte_sequence_handler_clear_screen): don't home the cursor automatically. * src/vte.c(vte_terminal_button_pressed): fix sense of shift overriding event mode. Ignore double- and triple-click in event mode. * src/vte.c(vte_terminal_scroll): in event mode, send button release events to the terminal if it's expecting them. * src/vte.c(vte_terminal_send_mouse_button_internal): clamp coordinates to existing cells. * src/vte.c(vte_terminal_maybe_send_mouse_drag): compare integral cell locations, not floating point, when choosing whether or not to drop events in cell tracking mode. Don't lose the modifiers. * src/vte.c(vte_terminal_motion_notify): don't autoscroll in events mode. 2003-01-22 nalin * src/caps.c: accept OSC{number};{string}ST as set-text-parameters, per XTerm docs (part of #104154). * src/keymap.c: revert change to prepend "1;" to keys with modifiers (#104139). 2003-01-22 Christian Rose * configure.in: Added "mn" to ALL_LINGUAS. 2003-01-21 nalin * src/vte.c: streamline background images and transparency handling, should use less memory now. 2003-01-20 nalin * src/reflect.c: add some debugging messages if REFLECT_VERBOSE is set in the environment. 2003-01-20 nalin * src/Makefile.am, src/reflect.c: add reflect-text-view, for testing with GtkTextView for sanity's sake. 2003-01-20 nalin * src/reflect.c: account for atk_text_get_text() being 0-clean. 2003-01-20 nalin * configure.in, src/Makefile.am, src/reflect.c: try to build reflect with both vte and libzvt, building a useless binary if libzvt isn't available. 2003-01-20 nalin * src/vte.c: colors 90-97 and 100-107 are bold colors, noted and patched by Matthijs Melchior (#103874). 2003-01-19 He Qiangqiang * configure.in: Added "zh_CN" (Simplified Chinese) to ALL_LINGUAS. 2003-01-19 Marius Andreiana * configure.in: added 'ro' to ALL_LINGUAS 2003-01-18 nalin * src/vteaccess.c(update_private_data_if_needed): if the caret is past the end of the text, count unichars properly. Compute the caret location correctly. * src/reflect.c: handle text-caret-moved signals and display the caret. 2003-01-18 nalin * src/iso2022.c: update copyright dates. * src/reflect.c: add. * src/Makefile.am: add reflect (noinst). * src/vteaccess.c(vte_terminal_accessible_get_text): always return a string, even if it's zero-length. Properly detect and handle requests that go right up to the last byte. 2003-01-18 Andras Timar * configure.in: Added "hu" to ALL_LINGUAS. 2003-01-17 nalin * src/vte.c(vte_terminal_set_size): emit a "text-modified" signal, because what you see changes when you resize the terminal. 2003-01-17 nalin * src/vte.c(vte_terminal_paint): don't draw cursors below or above the screen, correctly compute the clear area when drawing the cursor, if we're ignoring padding in general because we're monospaced, also ignore it when drawing the character under the cursor. * src/vte.c(vte_terminal_io_read): eliminate dead code. 2003-01-17 nalin * src/keymap.c(_vte_keymap_map): if we don't find an entry for the requested key, and the terminal type is "xterm", retry using "xterm-xfree86", possible fix for #103713. * src/vte.c(vte_terminal_draw_row): fix handling of items with width != 1 when computing runs. 2003-01-17 nalin * src/iso2022.c: fix boneheaded "config.h" instead of "../config.h" include, pointed out by Dan Mills and Brian Cameron. 2003-01-16 nalin * configure.in: fix test for whether or not we need to check for termcap * src/Makefile.am: override default includes to not prepend "." to the include path, so that we can include the system properly * src/keymap.c: define the ncurses scratch buffer for use when we're using termcap 2003-01-16 nalin * configure.in: actually disable attempts to build python bindings if pygtk-2.0 isn't found (#103676) 2003-01-14 nalin * src/keymap.c(_vte_keymap_key_add_key_modifiers): if a key sequence which needs modifiers doesn't have a numeric part, add "1" as the numeric part before adding the modifiers. Spotted by msw. 2003-01-13 nalin * src/ring.c, src/ring.h: add _vte_ring_insert_preserve(), which scrolls lost items off the top instead of the bottom, as _vte_ring_insert() does. * src/slowcat.c (catfile): check that we didn't read an EOF before attempting to write it. Skip the more complicated checks and just check that the file pointer isn't stdin before closing it. * src/ssfe.c: cleanups. * src/vte.c(vte_sequence_handler_sf): add lines to the scrollback area when scrolling is restricted but the top line of the area is the topmost visible line (Red Hat #75900). 2003-01-13 nalin * src/nativeecho.c, src/utf8echo.c: don't switch terminal modes before or after echoing bytes -- doing so confuses me now. * src/vte.c: make use of '?' to mark invalid data a compile-time define. * src/vteaccess.c(vte_terminal_accessible_text_scrolled): properly handle scrolling events with delta less than the window size (more of #95901). * src/vteaccess.c(vte_terminal_accessible_finalize): disconnect from text-inserted, text-deleted, text-modified, text-scrolled, cursor-moved, window-title-changed on finalize. * src/vte.c(vte_terminal_key_press,vte_terminal_key_release, vte_terminal_button_press,vte_terminal_button_release, vte_terminal_motion_notify,vte_terminal_focus_in,vte_terminal_focus_out, vte_terminal_scroll): track event modifiers in an object-local modifier variable. * src/vte.c(vte_terminal_key_press): always steal key events from the input method if the meta key is down (#96006). Don't munge the cursor or keypad modes before passing them to the keymapping routines. Stop overriding the cursor mode on NumLock (doesn't appear to work as documented in other terminals, needed to modify the keymap mode anyway (#96364)). * configure.in: define HAVE_XFT whenever HAVE_XFT2 is defined -- they're more or less compatible (#103130). 2003-01-10 Abel Cheung * configure.in: Added "zh_TW" to ALL_LINGUAS. 2003-01-10 Dmitry G. Mastrukov * configure.in: Added Russian to ALL_LINGUAS. 2003-01-09 nalin * configure.in: disable the python bindings if we can't find python, from Brian Cameron. 2003-01-09 nalin * src/vte.c: don't just skip reading data if selection is in progress -- we wedge if we do that (#101739). Instead, temporarily stop reading from the child pty. * src/vte.c(vte_terminal_open_font_xft): if we get NULL when matching fonts, use the desired pattern's name when displaying an error, preventing a NULL dereference (#96769). * configure.in: make building of python modules depend on configure having been run with --enable-python. make --enable-python the default. Fix an indentation error in the version check which chokes Python 2.2.2. * src/vte.h, src/vte.c: add new signals to VteTerminalClass (NOTE: may break ABI, so might as well add some padding) * src/vteaccess.c: be more precise about locations in text_changed signals (part of #95901) * src/vte.c: get more selective about when we consider it necessary to emit text-insert and text-delete events. 2003-01-07 nalin * src/vte.c(vte_terminal_key_press): Only suppress meta-sends-escape on Backspace if backspace is mapped to the delete sequence. (#100635) 2003-01-07 nalin * src/vte.c(vte_terminal_setup_background): Use a lookup table instead of a mess of floating point math when desaturating images. 2003-01-06 nalin * src/vte.c(vte_terminal_init): Add the periodic blinking refresh with the normal timeout instead of 0 to avoid wedging when we get created without focus. Fix suggested by Dennis Haney (#102701). 2003-01-06 nalin * src/vte.c: Use a simple XftPatternGetString/GetDouble pair instead of XftNameUnparse, which isn't in older versions of Xft (#101142). * src/vte.c: Add a flag to VteTerminalPrivate which we can use to keep track of modifications, particularly if they remove text, and toggle it in several sequence handlers. * src/vte.c(vte_terminal_process_incoming): Also emit the "contents changed" signal when the modified flag is TRUE, not enough to fix #95901, but at least making some forward progress. 2003-01-05 Pauli Virtanen * configure.in (ALL_LINGUAS): Added "fi" (Finnish). 2003-01-04 Stanislav Visnovsky * configure.in: (ALL_LINGUAS) Added sk (Slovak). * po/sk.po: Added Slovak translation. 2003-01-02 nalin * configure.in: look for libncurses or libtermcap * vte.pc.in: include other libraries (ncurses, termcap, socket, whatever) in the list of libraries. * src/keymap.c(_vte_keymap_map): for Home and End, consult libncurses or libtermcap if we have no hard-wired mapping and there's none in the termcap file. Should fix #100472, even in cases where Home and End vary wildly from what I've got on my box. * src/keymap.c: rename cursor/fkey_normal to cursor/fkey_default, which makes a little more sense. 2003-01-02 Zbigniew Chyla * configure.in: (ALL_LINGUAS) Added pl (Polish). 2002-12-22 Artis Trops * configure.in: Added Latvian (lv) to ALL_LINGUAS. 2002-12-19 Yanko Kaneti * configure.in: (ALL_LINGUAS) Added Bulgarian (bg). 2002-12-18 nalin * configure.in: complain if Xft2 and Xft aren't found. * src/vte.c (vte_terminal_paint): if we're not double-buffered, clear the drawing area before we draw text. * src/vteapp.c: add -2 to toggle double-buffering. 2002-12-16 nalin * src/vte.c (vte_terminal_key_press): wire Shift+Home/Shift+End to scroll-to-top and scroll-to-bottom. 2002-12-13 nalin * src/buffer.c: add a short test program. * src/iso2022.c: use hard values instead of GDK defines in the 0 map. Add _vte_iso2022_substitute_single() for performing a single mapping operation. * src/vte.c: use _vte_iso2022_substitute_single() instead of a local mapping table when mapping line-drawing charset data, simplifies maintenance of the mapping. 2002-12-12 Pablo Saratxaga * configure.in: Added Catalan (ca), Spanish (es) and Hebrew (he) to ALL_LINGUAS 2002-12-11 nalin * configure.in: define VTE_USE_GNOME_PTY_HELPER if use of the helper is enabled at compile-time (enabled by default). * src/iso2022.c(_vte_iso2022_substitute): force characters received in the line-drawing map to have width = 1 (more #99603), so that we can distinguish them from line-drawing characters received in eucXX, which have width = 2. * src/vte.c(vte_terminal_insert_char): when mapping from line-drawing to gunichars, force a width of 1. * src/vte.c(vte_terminal_process_incoming): extend the bounding box for updates one cell further to the right, in case the cursor is in a cell which contains a wide character. * src/pty.c(_vte_pty_start_helper): spit out a warning if the helper isn't installed. * src/pty.c: don't compile in any gnome-pty-helper-specific code if VTE_USE_GNOME_PTY_HELPER isn't defined. 2002-12-10 nalin * src/buffer.c, src/buffer.h: centralize buffer length sanity checks, add some utility functions for stuffing things into buffers and pulling them back out. * src/debug.c, src/debug.h: add a lifecycle debug class, for tracking down initialization order weirdness. * src/pty.c: try to check that we can run the pty helper before trying to run it, to avoid SIGPIPE failures when it's not installed. * src/vte.c: never grab focus -- let the shell app deal with it. Return TRUE from mouse motion and press/release events to keep them from being passed up. (#101089) 2002-12-09 nalin * configure.in: add "uk" to the list of languages. * src/vte.h: remove the alternate attribute bit -- it's no longer meaningful. * python/vte.override: remove the alternate attribute, add the strikethrough attribute. * src/vte.c (vte_terminal_insert_char): perform drawing character set to Unicode mapping at insertion time if the alternate attribute is set, otherwise discarding the attribute. If the character being inserted is a graphic character, force its width to 1 or 2 depending on the current codeset (#99603). * src/vte.c (xlfd_from_pango_font_description): take advantage of XftXlfdParse if we were built with Xft, as it appears to handle family aliases. * src/vte.c (vte_terminal_draw_graphic): decide what to draw using Unicode code points (instead of reverse mappings to drawing set), and implement the double-thick versions of many of the existing glyphs. Return a boolean indicating whether or not we drew something. * src/vte.c (vte_terminal_draw_row): if vte_terminal_draw_graphic() returns FALSE, try to draw the graphic character using the current font. * src/vte.c (vte_terminal_paint): if vte_terminal_draw_graphic() returns FALSE, try to draw the graphic character using the current font. * src/caps.c: add the undocumented default 0 to the OSC set text parameters sequence (#100468). 2002-12-03 nalin * README: updates. * src/iso2022.c, src/iso2022.h: add a width mask for overriding widths for ambiguous Unicode characters, and _vte_iso2022_get_width() for reading the width, using unused bits in Unicode in a manner similar to http://www.cl.cam.ac.uk/~mgk25/ucs/iso2022-wc.html * src/table.c,src/trie.c: strip out iso2022 widths when extracting parameters of control sequences. * src/vte.c: heed iso2022 widths when inserting characters into the screen buffer, but clear then before storing them so that copy and paste will continue to work. * src/matcher.c, src/matcher.h: add matcher, a wrapper for table and trie, and move _vte_table_narrow_encoding and _vte_table_wide_encoding to this module. 2002-12-03 nalin * src/pty.c: if TIOCSCTTY is defined, use it, even if it's redundant. 2002-12-02 nalin * po: update-po * src/utf8echo.c: change the default from resetting to the terminal's default encoding before exiting to leaving it alone. Don't mess with the terminal's encoding if stdout isn't connected to a terminal. * src/nativeecho.c: add, for printing random bytes. 2002-12-02 nalin * src/vte.c: don't zero-fill rows, space-fill them. * src/vte.c(vte_terminal_is_word_char): Don't just fail if the word_chars array doesn't exist. 2002-12-02 nalin * acinclude.m4: add AC_CHECK_CC_OPT from ac-archive. * configure.in: check for cfmakeraw, sys/select.h, compiler support for -std= (#99698) * doc/boxes.txt: change reference to online Docbook reference to the charts at the Unicode web site. * src/dumpkeys.c: make a best-effort at making a terminal raw on systems where cfmakeraw() isn't available, from patch by Brian Cameron. Wait for up to 1/50 of a second for more bytes we'll consider to be part of a sequence. * src/pty.c(getpt): ensure that the new terminal is opened in non- blocking mode. * src/trie.c: use g_unichar_digit_value() instead of subtracting '0'. * src/vte.c: don't declare the xft_textitem member on non-Xft2 systems, because it uses an Xft2-specific type (#99685). * src/vteapp.c: add $pkgdatadir/fonts to the font path for testing. 2002-11-25 nalin * src/vte.c: fix mapping of Unicode code chars 0x252c and 0x2534 which incorrectly mixed them up (#99474). * src/iso2022.c: fix mapping of 'v' and 'w' from special graphics to Unicode, which masked the above bug. 2002-11-25 nalin * src/vte.c: fix cd() to clear using the current colors. 2002-11-25 nalin * termcaps/xterm: add ta back in -- it's not a key sequence. 2002-11-25 nalin * src/vte.c: fix cd() to clear to the right of the cursor on the current line instead of the entire line (#98844). 2002-11-25 nalin * src/vte.c: add keyboard debug messages when we change keyboard modes. * termcaps/xterm: remove kh definition. 2002-11-25 nalin * src/keymap.c: make keypad arrow keys follow cursor mode (#98604). 2002-11-25 nalin * src/keymap.c: sort out when we add modifiers to keys (#98094). Fix Alt+Tab. * termcaps/xterm: remove ta definition. 2002-11-25 nalin * src/debug.c, src/debug.h: add keyboard debugging class. * src/dumpkeys.c: refresh on Ctrl-L, reset on 'r'. * src/keymap.c, src/keymap.h: add more setting combinations, and a simplistic check for more complete coverage. * src/vte.c: add debug messages for keyboard handling. Improve detection of invalid coordinates as a signal that no text is selected or hilited (#98946). * termcaps/xterm.baseline: add a baseline copy of xterm from my termcap, so that I can diff it more easily. * termcaps/xterm: remove key definitions -- xterm's way more complicated than the capability strings suggest. 2002-11-22 nalin * configure.in: incorporate more correct check for the right version of gtk-doc (#99314). 2002-11-15 Hasbullah BIn Pit * configure.in: Added "ms" to ALL_LINGUAS. 2002-11-11 nalin * src/vte.c: ensure that when we select by line, we include all of the last line, even if it's past the edge of the screen. Snap selection to the beginning or end of a line when selecting lines which don't exist. Only strip off whitespace if there's nothing but whitespace to the right of the selection. Chuck the non-wrapping selection code. 2002-11-11 nalin * src/vte.c: properly set the "selecting" flag again when we start selection (#97923). 2002-11-11 nalin * src/vte.c: rework selection so that word- and line-based selection can wrap like XTerm does (#97057,#97719). 2002-11-07 nalin * src/vte.h: doc fixes. * src/dumpkeys.c: use the older alternate-screen decset value. * src/vte.c: fixup screwups on extending selection (#97118). 2002-11-05 nalin * src/vte.c: handle end-of-line selection correctly. Stop highlighting selection on click, but don't lose it until new text is selected (#97117). * python/vte.override: fix binding for set_colors() to properly take a list of colors for the palette (#97682). * src/vte.c, src/vte.h: add increase-font-size and decrease-font-size to allow mimicking XTerm's behavior on Shift/Control+KP_Add/KP_Subtract * src/vteapp.c: handle increase-font-size and decrease-font-size. 2002-11-05 Abi Brady * src/vte.c: Add and implement the strikethrough attribute. Change underline to be drawn using the ascent, rather than arbritarily putting it two lines above the bottom of the charcell - looks much better with large fonts. 2002-11-04 nalin * NEWS: be more verbose. * README: add more items to the TODO list so that I don't forget them. * src/vte.c: ifdef out some of the selection code. 2002-10-30 nalin * src/buffer.c, src/iso2022.c, src/vteaccess.c: add ident tags. * src/vte.c: don't scroll-to-bottom if we're selecting (#97923). 2002-10-30 nalin * src/vteapp.c: implement iconify, deiconify, raise, lower, maximize, restore, refresh, resize, and move signals. * src/vte.c: add vte_terminal_match_remove(). * src/vte.c (vte_sequence_handler_cb): clear the current column in addition to columns to the left, spotted by Sam Varshavchik. * src/vte.c: Use g_array_set_size() to clear arrays instead of removing each element. Properly initialize new columns with just the default colors and not other attributes (#96978). * src/vte.c (vte_sequence_handler_ta): revert to non-overwriting tabs, otherwise we got occasional drawing artifacts. 2002-10-30 Abi Brady * src/vte.c, src/vte.h : Support dim (halfbright) colours. All the infrastructure for this was here already (apart from making sure bold and half are mutually exclusive). Add API set_color_dim, and let set_colors take a palette of size 24. 2002-10-29 Abi Brady * src/iso2022.c (_vte_iso2022_map_[J4]): Map to UCS, not keysyms. (which differ > 0xff). 2002-10-28 Abi Brady * src/vte.c: Add line-drawing representation for full block. Draw U+23BA-23BD. Fix drawing of U+23BD (scan line 9) and U+2592 (checkerboard) to use bottom line of the charcell, not the top line of the one below. * src/iso2022.c: Complete DEC Special Graphics to Unicode map. 2002-10-25 nalin * src/vte.c (vte_terminal_match_check_internal): snip off final newlines when we're matching, they're usually not wanted. 2002-10-24 nalin * src/pty.c, src/pty.h: replace the simpler pty_open() function with a logging version, adding the ability to specify a startup directory (Red Hat #76529). * src/vte.c, src/vte.h: replace the simpler fork_command() function with a logging version, adding the ability to specify a startup directory (Red Hat #76529). * src/vteapp.c: modify call to handle new fork_command(). * python/vte.defs: update as above. * python/vte.override: modify call to handle new fork_command(), adding an optional "directory" argument. 2002-10-23 nalin * src/vte.c: refactor the selection code, cleaning up when selection is cleared/started/extended (#95783). 2002-10-22 nalin * src/vte.c: rework how wide characters are stored to allow storing tabs (#95958). 2002-10-21 nalin * python/vte.override: wrap vte_terminal_get_text() and vte_terminal_get_text_range(). Based on patch from ha shao (#96230). 2002-10-21 nalin * src/vte.c, src/vte.h: add a user pointer argument to get_text callbacks (#96230). * src/Makefile.am: bump shared library version because we changed a public function's signature. Take the opportunity to replace padding fields which had previously been used up. 2002-10-21 jacob berkman * src/Makefile.am (EXTRA_DIST): include decset, osc, and window 2002-10-18 nalin * src/iso2022.c: use character constants instead of hex constants. * src/iso2022.txt: add more illustrations. * src/decset: scriptlet to save some typing. * src/vte.c: zero-terminate window and icon title strings again. * src/decset, src/osc, src/window: add. 2002-10-18 nalin * src/keymap.c: add a mapping for the escape key. 2002-10-18 nalin * src/vte.c: implement decset 42 (enable/disable NRC processing), but enable it by default. Implement decset 44 (margin bell). * src/vte.c: do not trust the event->string. Use gdk_keyval_to_unicode and the built-in keymapping to cope with the weirdness. Extend the range of characters we controlify from 0x40-0x60 to 0x40-0x7f so that lower-case ascii chars controlify (not a word, I know). * src/keymap.c: add map entries for GDK_Return and GDK_KP_Enter for GDK_CONTROL_MASK = cr, normal = lf. 2002-10-18 nalin * src/vte.c: make sure that strings passed to a commit signal are zero- terminated (#96131). * python/Makefile.am: install the module in site-packages instead of a subdirectory, which doesn't work on my system. 2002-10-17 nalin * src/vte.c: remove vte_terminal_update_scroll_delta, which only did things vte_terminal_adjust_adjustments already did and was only called immediately after. Fill newly-added lines with the current attributes if the current background isn't the default color (Red Hat #73853). Implement ignored DECSET settings, so that we don't mistakenly complain about settings not being implemented yet when we actually just want to ignore them. * vte.spec: 0.9.2 2002-10-17 nalin * src/vte.c: force the first cursor redraw after focus-in to always be in the foreground color (Red Hat #75908). 2002-10-17 nalin * src/vte.c (vte_terminal_insert_char): force invalidation mode if we're in insert mode to get the entire line redrawn. Spotted by msw. 2002-10-17 nalin * configure.in: clean up tests for wint_t. Patch from Brian Cameron. 2002-10-17 nalin * src/pty.c: close a possible race on systems where pty initialization requires more than just opening the pty (for example, Solaris). Spotted by Brian Cameron. * src/utf8echo.c: don't reset to iso-8859-1 unless -r is used. 2002-10-16 nalin * src/vte.c: remove a bogus assertion for a case which we were already handling a little further down (incorrectly triggered by autowrap). 2002-10-16 nalin * src/vte.c: adjust our adjustments whenever a line might scroll off the top of the buffer. Fix computation of the new insertion delta to ensure that it never goes below the scroll delta, which should fix the resizing crashes (#94509, #95187, Red Hat #75871), and add some debug assertions to verify this. * configure.in, python/Makefile.am: build the python bindings as a library, not a binary with wacky ldflags. 2002-10-15 nalin * src/vte.c: don't try to close the pty at finalize time if we didn't open it. Patch from ha shao. * src/keymap.c, src/keymap.h: move the addition of modifiers into a separate function. Add the function key strings from terminfo for fkey_sun and fkey_hp cases. Make control+F1 = F13 only in vt220 mode. * src/vte.c: apply modifiers to function keys in normal and legacy modes. 2002-10-14 nalin * src/vte.c: add super-bogus bold text mode (Red Hat #74779). 2002-10-14 nalin * src/caps.c: recognize CSI-r (with no arguments) as resetting the scrolling region in XTerm emulation (Red Hat #75902). 2002-10-14 nalin * src/keymap.c: add mappings for GDK_Page_Up and GDK_Page_Down, missed in the conversion. * src/vte.c: steal GDK_KP_{Add,Subtract,Multiply,Divide} from the input methods (Red Hat #75207). 2002-10-14 nalin * configure.in: more $pkglibdir -> $libexecdir fixing. * doc/Makefile.am: add rules for generating ps and text versions of the ctlseqs docs. * doc/reference/tmpl/vte.sgml: add snippet for "commit". * python/python/vte.defs: update to add a binding for vte_terminal_fork_logged_command(). * src/buffer.h: add a warning comment that these are private interfaces. Wrap declarations in G_BEGIN_DECLS/G_END_DECLS. * src/caps.h: add macros for the SS2/SS3 sequences. * src/marshal.list: add a marshaller for the "commit" signal. * src/keymap.c, src/keymap.h: move the getting-more-convoluted keypress-handling code to a shell that parses tables of static info. * src/vte.c: use the keymap for most non-printable keys. Add a "commit" signal to allow an app to just use the terminal for displaying data and grabbing input (missing functionality noted by ha shao). Obey the application's desired meta-sends-escape setting. Recognize HP function key mode. Recognize and handle legacy XTerm function key mode. Force a redraw if the child application tries to switch to 80/132 columns, even though we don't usually let them succeed. Don't try to send keystrokes to the child pty when there is no child pty. Don't convert final whitespace to newlines when copying text (Red Hat #74611). * python/cat.py: test program for running without a command. * termcaps/xterm: change the definitions for ku/kd/kl/kr to match XTerm in normal cursor mode instead of application cursor mode. 2002-10-11 nalin * src/vte.c: properly distinguish cursor key mode and keypad key mode, obey application mode for cursor keys (#92941). * src/pty.c: reset signal handlers before exec() (Red Hat #75341). 2002-10-11 nalin * src/trie.c: change the typedef of wint_t here to match vte.c (now a gunichar instead of a long). Spotted by Brian Cameron. 2002-10-11 Brian Cameron * configure.in: Changed to that wchar.h is included when checking for wint_t on Solaris. This was needed because on Solaris wint_t is defined to be a long, and in vte.c its definition was recently changed to be a gunichar. This caused the compile to break on Solaris. 2002-10-10 nalin * configure.in, src/pty.c, gnome-pty-helper/Makefile.am: fix the bits I missed when fixing #95085. 2002-10-10 nalin * src/vteapp.c, python/vte-demo.py: allow specifying the scrollback buffer size. * src/vte.c: if we don't have wint_t, typedef wint_t as a gunichar, not a long. 2002-10-09 nalin * src/buffer.c, src/buffer.h: add. * src/interpret.c, src/vte.c: use _vte_buffer structures instead of char arrays with separate lengths. Use a scratch buffer for holding the results of conversions. * src/vte.c: separate the pango and pangox drawing paths so that they're easier to tweak and compare to each other. * src/vte.c: ditch the smooth scrolling change, which won't work right anyway (expose events don't get processed until after we finish processing a chunk of data unless we explicitly request it, so using a bbox is both simpler and faster). Use a mask when creating the cursor we use for hiding the cursor. 2002-10-09 nalin * vte.spec, gnome-pty-helper/Makefile.am: install gnome-pty-helper into the libexecdir, not pkglibdir (#95085). * src/vte.c: obey smooth/jump scrolling options, default is jump scroll. Mon Oct 7 14:53:12 2002 Owen Taylor * src/vte.c (vte_font_match): Fix over-aggressive Xft => Fc conversion - need to call XftDefaultSubstitute to pick up Xft X resources, not FcDefaultSubstitute. 2002-10-01 Stanislav Brabec * configure.in: Added cs to ALL_LINGUAS. 2002-09-24 nalin * src/vte.c(vte_terminal_set_word_chars,vte_terminal_is_word_char): if the list of word characters is NULL or zero-length, try to guess with (g_unichar_isgraph() && !g_unichar_ispunct()), which seems to produce reasonable results (#77134). 2002-09-24 nalin * gnome-pty-helper/acinclude.m4: Fix HAVE_UT_UT_TV for cases where the static initializer might not work right (#93774, patch from Kalpesh Shah). 2002-09-24 nalin * README, gnome-pty-helper/README: Doc fixups (mention gnome-terminal instead of profterm, note the proper permissions for gnome-pty-helper, #84505). 2002-09-20 nalin * src/ring.c: Fix a ring-buffer manipulation bug (Red Hat #74290) which might cause a new item to be inserted in the wrong location. 2002-09-19 nalin * src/interpret.c: Munge input data the way the terminal does so that conversion failures don't wedge us. 2002-09-19 Brian Cameron * src/vte.c: Backed out scrolldelay patches from 09-17 and 09-18 at Nalin's request. Left in the patch which allows programs which update the screen non-linearly like lynx to work properly. 2002-09-18 Brian Cameron * src/vte.c: Corrected a problem with yesterday's patch. I am now properly calling g_source_remove on the scroll_delay timeout function. This prevents VTE from core dumping if you start up more than one VTE gnome-terminal and exit from one of them. Also made the vte_scroll_timeout function a little cleaner by using the VTE_IS_TERMINAL macro. 2002-09-17 Brian Cameron * src/vte.c: Fixed bug with my 09/11 speedup fix which caused programs that update the screen non-linearly like lynx to update incorrectly. Also included a speed improvement which delays the scroll-down for 70ms. Too fast to be noticeable to the user, but it speeds up VTE greatly. 2002-09-13 nalin * src/pty.c: Fix typo which broke builds on systems where MSG_NOSIGNAL is defined. 2002-09-12 Brian Cameron * configure.in : Added -lsocket to LIBS if socket is in libsocket, so VTE will compile on Solaris. 2002-09-12 jacob berkman * src/pty.c: only use MSG_NOSIGNAL if it's defined * gnome-pty-helper/gnome-pty-helper.c (struct pty_info): remove master_fd and slave_fd fields (shutdown_pty): don't close master/slave fd's here... (pty_add): don't take master/slave fd args (open_ptys): ...close master/slave fd's right after passing them this fixes a hang after closing a window on os x, not sure why... * gnome-pty-helper/Makefile.am (install-exec-hook): remove trailing / after $DESTDIR * configure.in: AC_CHECK_FUNC() doesn't do AC_DEFINE(HAVE_FOO), so do that for socket() and socketpair() if they are found 2002-09-12 nalin * src/vte.c(vte_invalidate_cursor_once): Remove the invalidate_cells parameter, because the function is a big no-op if FALSE, in which case we should just not call it instead. (vte_terminal_process_incoming): refresh the right number of rows after processing a block of data. 2002-09-12 Brian Cameron * src/vte.c Fixed minor error with my previous patch. This just makes a warning go away. 2002-09-11 nalin * src/pty.c: Reorder definitions to avoid implicit declaration warnings. * configure.in: Check for socketpair(). Check for socket() in libc before poking around in libsocket. * gnome-pty-helper/configure.in: Check for openpty() in libutil as well, and do so before we check for other functions. 2002-09-11 nalin * configure.in, gnome-pty-helper/cofnigure.in: Test for sendmsg() with AC_CHECK_FUNCS instead of AC_TRY_COMPILE. * acconfig.h: Removed. * src/pty.c: Formatting. 2002-09-11 Brian Cameron * configure.in: Added check for socket library and SendMsg check. * acconfig.h: Added this file with a HAVE_SENDMSG definition. * gnome-pty-helper/configure.in: Added checks needed for the source code, including the SendMsg check. * src/pty.c: Corrected _vte_pty_pipe_open so it works on Solaris. *src/vte.c: Made some speed improvements so vte_invalidate_cells is not called for every character in the while loop in vte_process_incoming, but only once when the while loop is done. 2002-09-11 nalin * gnome-pty-helper: Update from libzvt CVS. * python/Makefile.am: Fix some automake breakage. 2002-09-11 nalin * python/Makefile.am: Fix my broken merge of Jacob's patch to make inability to build python modules non-fatal. 2002-09-11 nalin * src/vte.c: Skip lookups for padding information if we're pretty sure we're using a monospaced font. 2002-09-10 nalin * src/vte.c: Fix from Brian Cameron for uninitialized GError in vte_wc_from_unichar(). * src/interpret.c, src/iso2022.c, src/pty.c, src/ring.h, src/table.c, src/table.h, src/trie.c, src/vte.c, src/vteaccess.c: Signed/unsigned int/size_t/gsize and pointer typecast warning fixes from Brian Cameron. * src/vte.c: Avoid invalidating the cursor in the cursor blink timeout unless we have focus. 2002-09-10 Jacob Berkman * configure.in (ALL_LINGUAS: remove es until the file really gets added. also it wasn't added alphabetically 2002-09-10 Pablo Gonzalo del Campo * configure.in: Added "es" to ALL_LINGUAS 2002-09-10 nalin * src/pty.c, src/pty.h: Add vte_pty_close() and vte_pty_open_with_logging(), breaking the ABI. * src/vte.c, src/vte.h: Add vte_terminal_fork_logged_command(), breaking the ABI. * gnome-pty-helper/*: Swallow the pty helper bits of gnome-libs, but install into $pkglibdir instead of $sbindir so that existing packages don't suddenly start breaking. * src/termcap.c(_vte_termcap_find_string_length): Fix signature to match the declaration in termcap.h. From patch by Jacob Berkman. 2002-09-06 nalin * configure.in: Add $X_PRE_LIBS to the front of $X_LIBS, -lX11 and $X_EXTRA_LIBS to the end of $X_LIBS. Remove some cruftiness and set CPPFLAGS when checking for Xft. Check for the existence of wchar.h, because it might not exist. Use an automake conditional to make compilation of the Python bindings non-critical. From patch by Jacob Berkman. * src/pty.c: Silence compiler warning when exec() fails. From patch by Jacob Berkman. * src/interpret.c, src/vte.c: Stop including langinfo.h since we don't call nl_langinfo() any more. Adapted from patch by Jacob Berkman. * src/caps.c: Fill in a couple of missing initializers. * src/vte.c, src/vte.h: Add accessor functions for use in language bindings. * python/vte.defs: Add defs for the new accessor functions. * python/vte-demo.py: Add a scrollbar to the sample window, handle more of the options the C version handles. Stop expecting additional arguments with a signal that doesn't include any. * python/Makefile.am: We only have one target, so don't bother with target-specific primaries if we can avoid it (#92252). * vte.pc.in: Note build dependencies on ATK, Pango, and PangoX. 2002-09-05 nalin * src/caps.c, src/caps.h, src/debug.c, src/debug.h, src/interpret.c, src/iso2022.c, src/iso2022.h, src/pty.c, src/reaper.c, src/ring.c, src/ring.h, src/table.c, src/table.h, src/termcap.c, src/termcap.h, src/trie.c, src/trie.h, src/utf8echo.c, src/vte.c, src/vteaccess.c, src/vteapp.c: prefix library-internal interfaces with underscores so that gtk-doc doesn't guess they're public. * src/vte.c: return FALSE from focus-in/focus-out/expose handlers. 2002-09-05 nalin * src/caps.h, src/debug.h, src/iso2022.h, src/marshal.h, src/ring.h, src/table.h, src/termcap.h, src/trie.h: add giant warnings about how these headers define library-internal interfaces. * vte.spec: 0.8.18 2002-09-05 nalin * docs/reference: first pass at writing documentation * src/termcap.c: fix how'd-that-ever-work in vte_termcap_strip(), patch from Brian Cameron. Take \\e as an alias for \\E, which is already an alias for Escape. * src/vte.c(vte_terminal_get_cursor): Return an absolute cursor position instead of a relative position. 2002-09-04 jacob berkman * src/vte.c (vte_default_substitute): only compile the FC_HINT_STYLE part if FC_HINT_STYLE is defined 2002-09-04 nalin * src/vte.c: Add missing include for Xft2, spotted by Jacob Berkman. 2002-09-04 Brian Cameron * src/vte.c: Avoid double color deallocations with Xft. * configure.in: Added stropts.h check for Solaris. * src/vte.c: Do not send data to the slave if the length is zero. Some shells on Solaris do not handle this well. * src/pty.c: Added ptem/ldterm/ttcompat ioctls so VTE will work on Solaris. 2002-09-03 nalin * src/vte.c: Avoid double color deallocations with Xft. 2002-09-03 nalin * src/vte.c: Handle color allocation failures with Xft better. * src/vte.h: Clean up typedef declarations. 2002-09-03 nalin * src/marshal.list, src/reaper.c, src/reaper.h, src/vte.c: Modify the child-exited signal to pass a signed int and an unmodified exit status, allowing the callback to check for normal/abnormal exit status. 2002-09-02 nalin * src/vte.c: Don't send zero-length strings to the child -- it may not be able to cope properly. Spotted by Brian Cameron. 2002-08-30 nalin * src/vte.c: Handle cursor exposes correctly for multicolumn characters, no matter which cell the cursor is in. Fix autoscrolling boundary checks for when allocation.y != 0. 2002-08-30 nalin * src/vte.c(vte_terminal_insert_char): Wrap correctly to avoid screwing up multicolumn characters. 2002-08-30 nalin * src/vte.c: Get smarter about when it's necessary to start messing with our adjustments (Red Hat #73091). Change the way we clear the screen so that all of the contents of the current screen become scrollback data. 2002-08-30 nalin * src/vte.c: Register VteTerminalEraseBinding with GObject as an enumerated type. * python/vte.defs: Update. * python/vte.overrides: Ignore vte_terminal_get_text_range(). 2002-08-30 nalin * src/vte.c: Restore the focus-in/focus-out handlers -- the defaults don't quite DTRT for us because they miss our im_context (#72946). When setting the cursor location for the input method, make the Y coordinate relative to the window, not the scrollback buffer. When resizing the scrollback buffer, clamp the cursor to the set of possible locations, not the visible locations. 2002-08-30 nalin * src/vte.c: Initialize the pty master fd to -1 to avoid spurious window resizes on fd 0. * src/debug.c, src/debug.h: Add a "pty" debug message class. 2002-08-30 nalin * src/iso2022.c: Fix a how'd-that-ever-work bug (not returning anything from vte_iso2022_new()), spotted by Brian Cameron. * configure.in: Use -Wall when building with gcc in maintainer mode. * src/interpret.c, src/ring.h, src/table.c, src/trie.c, src/vte.c, src/vteaccess.c: Warning cleanups. 2002-08-29 nalin * src/vte.c: Clean up bookkeeping for mouse autoscrolling and adjustment change notifications. Reset the scrolling and insertion deltas when clearing the history. * src/interpret.c: Don't dump data on incomplete conversion errors, which we're going to retry anyway. * src/iso2022.txt: Add iso-2022-kr examples (no workee -- uses GR). 2002-08-28 nalin * src/vte.c, src/vte.h: Add vte_terminal_copy_primary and vte_terminal_paste_primary(), because I really want to let profterm decide default values for key bindings. 2002-08-28 Gustavo Noronha Silva * configure.in (ALL_LINGUAS): added pt_BR 2002-08-27 nalin * src/vte.c: Stop autoscrolling on button release. 2002-08-27 nalin * src/vte.c: When autoscrolling, clamp the new boundary to what the user can see. 2002-08-27 nalin * src/vte.c: Implement autoscroll (Red Hat #70481). 2002-08-27 nalin * src/vte.c: Only perform cr-lf substitutions when pasting text, not when inputting from a live user (Red Hat #72639). Bind GDK_ISO_Left_Tab to kB. Formatting changes. * termcaps/xterm: Bind kB to back-tab (Red Hat #70340). 2002-08-27 nalin * src/vte.c: Don't tamper with the scrolling offsets -- they're updated when we handle adjustment_changed notifications. Scroll instead of just moving the cursor down when soft-wrapping to the next line. Avoid emitting adjustment_changed when only the value has changed, likewise for the value and the other fields of the adjustment. 2002-08-27 nalin * src/vte.c: Keep cursor position and scrolling offsets from going wonky when you resize, especially on the alternate screen. Suppress duplicate adjustment_changed notifications. * src/vteapp.c: Set the MIN_SIZE geometry hints so that we can resize to unreasonably-small dimensions. * src/ring.c, src/ring.h: Add vte_ring_new_with_delta(). 2002-08-26 nalin * src/vte.c: Add padding spaces after full lines as well -- spotted by both notting and pjones. 2002-08-26 nalin * src/vte.c: Don't deadlock when substitution fails, spotted by msw. 2002-08-26 nalin * src/vte.c: If GDK_USE_XFT is set, check the value of GDK_USE_XFT, not VTE_USE_XFT. Spotted by hp. 2002-08-25 nalin * src/vte.c: Heed the reverse-video setting when painting character cells again. Make selection and matching coordinates global, fixing the selecting-while-scrolling case. Prevent overdraws into the padding area on the right. 2002-08-25 nalin * src/vte.c: Make nd() move right but not wrap -- according to Strang it's undefined, but xterm doesn't wrap it. Separate do/DO from sf/SF and up/UP from sr/SR, because the scrolling behavior is supposed to be different. Add support for decset/decreset 7 (wraparound mode) and 1051 (Sun keyboard). Add support for DECALN. Remove some type checks from run-time which the compiler can catch with certainty. 2002-08-25 Kjartan Maraas * configure.in: Added Norwegian (no) to ALL_LINGUAS. 2002-08-25 Pablo Saratxaga * configure.in: Added Vietnamese (vi) to ALL_LINGUAS 2002-08-22 nalin * src/caps.c: Bind ENQ to "return-terminal-status". * src/iso2022.c: Fix an off-by-one which incorrectly triggered an assertion. * src/vte.c: Implement send-primary/secondary-device-attributes. Bind shift+insert to "paste PRIMARY". Guard against NULL window/icon title when telling the child app what they are. Prevent DO(), up(), and UP() from scrolling. 2002-08-22 nalin * src/vteapp.c: Set geometry hints using the initial font setup. 2002-08-22 nalin * src/vte.c, src/vte.h: Make use of the visible bell a separate option from use of the audible bell, allowing both/neither to be used. Open fonts right away again -- profterm reads the metrics right after calling set_font(), so we have to open fonts ASAP. Rework the Xft/Pango/Xlib decision code to be more consistent. Watch for style changes and reset our font to the new style's font when we're already using the old style's font. 2002-08-21 nalin * src/iso2022.c(vte_iso2022_substitute): Take a vte_table as an additional argument, and don't mess with text that's part of a control sequence, even if it's in shifted-out text. * src/table.c(vte_table_match): Speed up for the no-arguments-requested case, which just became much more common. 2002-08-21 nalin * src/vte.c(vte_terminal_draw_rows): Cap the maximum number of characters we draw in a single call to vte_terminal_draw_cells at a reasonable number. 2002-08-21 nalin * src/table.c: Don't overwrite the original pattern pointers before freeing the old value. * src/vte.c: Use the same pango context whenever possible, to save on PangoX startup time. 2002-08-20 nalin * src/vte.c: Unref the output channel one more time when we're done sending data to the child. Free the background data GDK property when we're finished with it. Don't retrieve the pango context when drawing unless Xft has already been disabled. Don't try to use the pango layout to draw unless it's valid. Don't try to use the XftDraw item to draw unless it's valid. 2002-08-20 nalin * src/vte.c: Dispose of the updated substitution context properly when processing blocks of input text. Spotted by Arjan van de Ven. 2002-08-20 nalin * src/ring.c: Debug when rows get freed. * src/vte.c: Maybe-release pango contexts after unreffing layouts which refer to them. Decide on how we want to draw fonts before deciding which fonts to draw, to avoid spurious font loading. Remove output tags when the output tag's callback is about to return FALSE. 2002-08-20 nalin * src/vte.c: Don't leak the hintstyle and rgba settings. Patch from Arjan van de Ven. Free PangoX contexts when we're done with them, spotted by Arjan van de Ven. 2002-08-19 nalin * src/vte.c: Load fonts just-in-time to avoid spurious reloads. Don't override the focus_in and focus_out event handlers -- the defaults DTRT. * src/debug.c, src/debug.h: Add a RING debug class. 2002-08-19 nalin * src/iso2022.c: Handle override maps which don't affect the font palette correctly, resetting at newlines and escape marks. Process bogon data correctly. * src/iso2022.txt: Add some sample text. 2002-08-19 nalin * src/vte.c: Fixup some fontconfig/Xft mixups. Set the hint style instead of hinting when reading the GTK hint style setting (spotted by katzj and otaylor). 2002-08-19 nalin * src/vte.h, src/vte.c: Use gssize instead of ssize_t. Perform substitutions while processing. Use PangoX contexts when we're using the PangoX fontmap and when doing PangoX rendering. 2002-08-19 nalin * src/mkunitables.sh,src/unitable.*: Add. * src/iso2022.c, src/iso2022.h: Use unitables. * src/caps.c: Remove sequences for designating character sets. Switch to using a second passed-in buffer for storing results in case the caller doesn't want substitutions done in-place. * src/debug.c, src/debug.h: Add a substitution debug flag. * src/interpret.c: Perform substitution. * src/table.c, src/table.h: Use gssize instead of ssize_t. * src/termcap.c, src/termcap.h: Use gssize instead of ssize_t. * src/utf8echo.c: Use strtol, allowing users to specify code points in hex format. 2002-08-14 nalin * src/vte.c(vte_terminal_configure_toplevel): repaint the entire window to ensure that any overdraw area we're not paying attention to at least gets cleared to the background. * src/vte.c(vte_terminal_locale_encoding): don't try to second-guess the local encoding, just use the current charset as returned by g_get_charset(). 2002-08-14 nalin * src/vte.c(vte_terminal_reset): drop pending incoming data on reset. * src/vte.c: give reprocessing of pending input data a higher priority than reading it from the child to prevent backlogs on corrupt or invalid multibyte data from building up and whacking us exponentially. 2002-08-13 nalin * src/vte.c(vte_sequence_handler_delete_lines): initialize lines added to the current default colors. Spotted by jrb. * src/vte.c(vte_terminal_set_font): don't try to pick up GTK Xft settings unless we're using FontConfig. Patch from otaylor. 2002-08-11 nalin * src/vte.c: reorder set/reset processing for decset so that 1049 properly represents the combination of 1047 and 1048 (#90027). 2002-08-11 nalin * src/caps.c: properly escape a sequence which had a bare '%' in it. 2002-08-11 nalin * src/vte.c: change Xft-related defaults match whichever version of GTK we were built with (hopefully). 2002-08-11 nalin * src/vte.c: don't bother with cursor blinking or freezing/thawing updates when the widget isn't realized. Patch from Gustavo Giráldez. 2002-08-08 nalin * src/vte.c: take extra steps to make sure that the cursor doesn't go back into negative scrollback space. 2002-08-08 nalin * src/vte.c(vte_terminal_invalidate_all): rewrite. 2002-08-08 nalin * src/vte.c(vte_terminal_paint,vte_terminal_draw_cells): fill in the background color when drawing the cursor, even if it's going to end up as the default background color, spotted by Peter Jones. Draw the cursor correctly if it's over a graphic character. 2002-08-07 nalin * src/vte.c(vte_terminal_draw_cells): once again, avoid drawing NULs. * src/vte.c: add a small pad to each edge (#89048). * src/vteapp.c: handle widget padding. 2002-08-07 nalin * src/interpret.c: look for $pkgdatadir/termcap/$TERM first, as the widget does, before consulting /etc/termcap. * src/ring.c(vte_ring_free): check for a non-NULL removal function before calling it. * src/vte.c(vte_terminal_key_press): add an option for doing VT220-style or Sun/PC-style modified function keys. Default to VT220 for now, though, pending feedback. * src/vte.c(vte_terminal_reset): scroll to the bottom when resetting. 2002-08-07 nalin * src/vte.c(vte_terminal_draw_cells): don't trust XftDrawString32() to advance linearly for monospaced fonts (#90164). 2002-08-07 nalin * src/vte.c(vte_terminal_reset): reset the default setting as well (#89506). 2002-08-07 nalin * src/vte.c(vte_terminal_draw_cells): perform Xft remapping for Xft1, switch back to PangoX. 2002-08-06 nalin * src/vte.c(vte_terminal_set_encoding, vte_sequence_handler_local_charset): use g_get_charset() instead of nl_langinfo() to determine the default codeset, and to check if it's UTF-8. Patch from Hidetoshi Tajima. * src/vte.c(vte_terminal_set_encoding): don't leak conversion descriptors when changing the encoding fails. Patch from Hidetoshi Tajima. * src/vte.c(vte_terminal_send): don't read past the converted string when performing paste substitutions. * src/vte.c: rework the straight-Pango rendering routines to call normal Pango instead of PangoX. * src/vte.c(vte_terminal_ensure_cursor): speed up the "add many cells" case a bit. 2002-08-05 nalin * src/vte.c(vte_cell_is_between): sort the two endpoints correctly and provide a boolean to control whether or not the endpoint is "in". * src/vte.c(vte_cell_draw_rows): check if a cell is selected using the right indicator. * src/vte.c(vte_terminal_get_text): when adding a newline to the end of a returned line, don't show it as being in the rightmost column. * src/vte.c(xlfd_from_pango_font_description): turn the DPI, pixel size, and added info into wildcards. * src/vte.c(vte_terminal_draw_cells): go back to drawing individual cells when using Xlib. * src/vte.c: Compute right-side padding as well as left. * src/vte.c(vte_terminal_init): disable use of PangoX by default. * src/vteapp.c: add -D to add the same patterns profterm does to test dingus hiliting. 2002-08-03 Havoc Pennington * src/vte.c (vte_terminal_setup_background): add a gdk_flush() before the error trap pop, just for paranoia, may help with #89049 2002-08-02 nalin * src/vte.c(vte_terminal_send): Substitute carriage returns for newlines when pasting text to the child, fixing weird paste behavior in pico and friends. 2002-08-02 Christophe Merlet * configure.in: Added fr to ALL_LINGUAS. 2002-08-01 nalin * src/pty.c, src/pty.h: Expose vte_pty_set_size() and get_size() to localize terminal ioctl usage. * src/ring.c(vte_ring_validate): Don't repeatedly compute the same value when we know it won't change. * src/vte.c(vte_wc_from_unichar): Implement for the non-STDC_ISO_10646 case, heavily based on patch from Hidetoshi Tajima. * src/vte.c(vte_terminal_ensure_cursor): Don't initialize the local data unless we have to. * src/vte.c(vte_terminal_process_incoming): Don't insert NUL characters into the display, matching behavior of xterm. * src/vte.c: Clean up use of various G_PRIORITY values throughout to allow for simpler tuning. Rewrite rendering code to use per-paint PangoLayouts when they're needed, use Xft2's DrawCharSpec function when available, and to cut down on X requests. Don't paint on expose events if the window isn't realized, drawable, and at least partially visible. Don't deselect previous selection when the user clicks unless there's also a drag first. 2002-07-31 nalin * src/pty.c: Include if available, per patch from Hidetoshi Tajima. * src/trie.c: Include missing , spotted by Hidetoshi Tajima. * src/vte.c: Initialize new lines created in insert_lines() to the current default attributes like al() does. 2002-07-30 nalin * configure.in: Check for wint_t and attempt to allow compiles even when wint_t isn't defined (this type is used only debug code, so it shouldn't break anything). * src/caps.c: Remove "te" and "ti", which are logical, in the same way "so" is, from the known capabilities lists. Add a "is a key" field to the termcap list so that we don't match against keystrokes in case they're also control sequences. * src/interpret.c: Use tables instead of tries. Don't add key sequences to the table. * src/pty.c: Fix incorrect invocation in sample. * src/reaper.c: Include stdlib.h to quiet compiler warning. * src/trie.c, src/trie.h: Remove the unused precomputing routines. * src/utf8echo.c: Switch to link with tables instead of tries. * src/vte.c: Switch to using tables instead of tries. Map cursor-backward to LE instead of le, which handles parameters right. Don't add key sequences to the parsing table. Tune updates so that they occur less often when we're processing large amounts of data from the child. Add a 'status-line-changed' signal. Implement fs() and fix ts(). Add ::get_status_line() to get the contents of the status line. Obey it() when setting default tabstops. Implement cursor_next_line(), cursor_lower_left(), cursor_preceding_line(), cursor_horizontal_and_vertical_position(), erase_characters(), and insert_blank_characters(). Implement nw(). 2002-07-26 nalin * src/vte.c: Initialize new lines added for al(). Spotted by jrb. 2002-07-25 Ole Laursen * configure.in: Added Danish translation. 2002-07-25 nalin * README: Note that bold isn't broken any more. * termcaps/xterm: Note that k; was added. * src/pty.c: Set the proper number of columns in the window size. * src/ring.h: Change macro argument names to hopefully not step on application code. * src/vte.c: Set the terminal size to the default size as specified in termcap at init-time. 2002-07-24 nalin * src/pty.c: Add private vte_pty_set_size() function. * src/pty.c, src/pty.h: vte_pty_open() takes size arguments now. * src/vte.c: Open the PTY with the proper initial size. 2002-07-23 nalin * src/ring.c, ring.h: Expose the ring implementation and convert several simple functions into macros. * src/vteapp.c: Pass all long options on to gtk_init(). 2002-07-23 nalin * src/vte.c: Fix realize/unrealize to be properly reversible. Use the font from the default style unless we're explicitly given one. * src/vteapp.c: Don't set base size or minimum size geometry hints when sizing the terminal widget. 2002-07-22 nalin * src/pty.c(vte_pty_ptsname): Fix an incorrect logic check. 2002-07-19 nalin * src/vte.c(vte_terminal_set_color_internal): If we're changing the background color, apply it to the widget's window as well, from msw. 2002-07-19 nalin * src/vte.c: Undo the scrolling changes -- there too many combinations of circumstances that cause them to not work right. 2002-07-18 nalin * src/vte.c: Fudge the repaint line count by one when scrolling regions to ensure that the old cursor gets repainted. Calculate the area which needs to be repainted when reverse-scrolling correctly. 2002-07-18 nalin * src/vte.c: Implement enough of set-mode and reset-mode to allow toggling of insert mode using this sequence. Move all scrolling into vte_terminal_scroll_region and use gdk_draw_drawable to avoid repainting from scratch whenever possible. 2002-07-17 nalin * configure.in: Actually set ALL_LINGUAS so translations get installed. * README: Document the weirdness that is cursor movement around wide characters. * src/vte.defs: Bind set_color_bold(). * src/debug.c: Suppress warnings when $VTE_DEBUG_FLAGS isn't set. * src/pty.c, src/reaper.c, src/termcap.c, src/trie.c: Provide for debug messages in the test program. * src/interpret.c, src/trie.c: Use libc stdio instead of g_print for printing what might be part of a multibyte sequence because g_print checks for validity. * src/interpret.c, src/trie.c, src/utf8echo.c, src/vte.c: Use gunichar instead of wchar_t in places where a gunichar is expected. Provide a means for converting from wchar_t to gunichar for the sake of X11 calls which want a wchar_t. * src/trie.c: Provide vte_trie_wide_encoding() for finding a giconv target which is hopefully compatible with gunichar. Likewise provide vte_trie_narrow_encoding() to find one compatible with iso-8859-1. * src/vte.c: Fall back to ISO-8859-1 if we can't set things up for the current locale encoding at startup time. Fall back to the current encoding if we can't perform a given dynamic switch. 2002-07-16 nalin * configure.in: Set GETTEXT_PACKAGE correctly, noted by menthos. 2002-07-16 nalin * src/vte.c (vte_terminal_set_colors): Guess at an appropriate bold version of the foreground color instead of hard-coding in a default. * src/vte.c, src/vte.h (vte_terminal_set_color_bold): Add. 2002-07-16 nalin * src/trie.c: Correctly check for g_iconv_open() failure. * src/vte.c (vte_terminal_set_encoding): Try to give a meaningful error when g_iconv_open() fails, even though we're screwed. 2002-07-15 nalin * src/vte.c: wrap the new Xft/fontconfig-specific code in HAVE_XFT * src/vte.c: Revert some changes in how new cells were initialized, removing various cosmetic problems. * src/vte.c (vte_terminal_process_incoming): Discard the proper number of characters when we don't recognize a sequence, previously we left one byte that should have been removed. 2002-07-14 Havoc Pennington * src/vte.c (vte_terminal_get_cursor_position): decrement spaces as we go through the loop, it was nice and infinite. 2002-07-13 nalin * src/vte.c (vte_terminal_get_text): Add the proper number of attribute structs to the attribute array to fix crashes which occurred when the buffer contains non-ASCII text (Red Hat #67930). 2002-07-12 nalin * src/vte.c: Small optimization in the al() and dl() handlers. al() doesn't move the cursor, per GNU termcap docs. Check for a pixbuf in the bgfx check instead of pixmap, which was the wrong type. 2002-07-12 nalin * src/vte.c: Add patch to heed Xft/fontconfig settings as kept by GTK. Based on patch from otaylor. 2002-07-12 nalin * src/slowcat.c: Added. * src/vteapp.c: Add -a/-b flags to control audible bell and blinking cursors. Only send "pwd" as an initial command if there wasn't a command specified on the command line. Add a simple help message. * src/vte.c: Bind F13-F35 per termcap. Treat GDK_KP_Delete as GDK_Delete. Map Ctrl+F1-F12 to F13-F24. Fix dc() to ensure that the rows stays full and that newly-added cells get the default attributes. Fix cl() to clear all rows on the screen with the default attributes (bce). Default to using Xft if available for consistency with GTK. 2002-07-11 nalin * src/vte.c: Treat super, hyper, meta, and alt as modifiers when deciding to scroll-on-keypress. Noted by jrb. * src/vte.c: Always map \r and \n to cr and so, even when they're defined by the termcap. * src/vte.c, src/vte.h: Rework how default colors are set up, and add vte_terminal_set_color_foreground and vte_terminal_set_color_background. * src/vte.h: Remove includes for local headers which apps are not likely to never use, cleaning up the namespace a little. * python/vte.defs: Bind vte_terminal_set_color_{fore,back}ground. * src/debug.h, src/ring.h: Use G_BEGIN_DECLS/G_END_DECLS. * src/reaper.h: Use G_BEGIN_DECLS/G_END_DECLS in the right place. * src/vteapp.c: Add -B/-T flags to set background images and transparency. 2002-07-02 nalin * src/vte.c: Make shift+button1 extend selection. 2002-07-01 nalin * src/vte.c (vte_terminal_draw_char): Draw unicode line-drawing code points natively as we do for the GR1 support, in case the current font doesn't include glyphs for them. * src/vte.c: Test for g_iconv_open() failure properly (compare result to ((GIConv)-1), not NULL). * src/vte.c: Rework recovery from illegal sequence errors in the input stream to be much more aggressive about it. 2002-06-25 nalin * src/vte.c: Bind F10 to "k;", not "k0". * termcaps/xterm: Add "k;" defined as F10. 2002-06-25 nalin * src/vte.c (vte_terminal_reset_rowdata): Check for redundant resizes. * src/vte.c (vte_terminal_set_scrollback_lines): Keep the alternate screen buffer size the same as the window height, because xterm's alternate screen doesn't backscroll. * src/vte.c (vte_terminal_get_text): Don't append spaces to multicolumn characters when reading the screen's contents. * src/vte.c: Don't overexpose neighboring cells any more. Cleanups. * src/ring.h, src/ring.c: Add vte_ring_max() to read a ring's maximum size. 2002-06-24 nalin * src/vte.c (vte_sequence_handler_decset_internal): Treat option 1049 as a combination of 1047 and 1048. * src/vte.c (vte_terminal_finalize): When finalizing while holding the selection, throw the selection onto the clipboard without an owner so that it doesn't just disappear. 2002-06-19 nalin * src/vte.c (vte_sequence_handler_set_title_int): Fix a logic bug that got rid of the title always, not just when conversion failed. 2002-06-19 nalin * src/vte.c: Clear the alternate screen when switching to it. 2002-06-18 nalin * src/vte.c: Fix refs/derefs with IOChannels and sources. Clean up I/O GIConv descriptors at finalize-time. 2002-06-18 nalin * src/vte.c: Make cursor_visible a widget-wide (not per-screen) setting. 2002-06-18 nalin * autogen.sh: Correct automake version check to require 1.5, heads up from Glynn Foster. 2002-06-18 nalin * src/trie.c (vte_trie_match, vte_trie_match_x): Sort out greedy vs. non-greedy pattern matching. * src/vte.c (vte_sequence_handler_decset_internal): Make 1047 an alias for 47 (use alternate buffer), and handle cursor save/restore properly. 2002-06-14 nalin * src/vte.c, src/vte.h (vte_terminal_fork_command): Add a parameter for passing in environment variables to add. * src/termcap.c: Preprocess out unused comment() and generate() funcs. * src/Makefile.am: Bump library version number. * vte.spec: 0.4.0 2002-06-14 nalin * configure.in, python/Makefile.am: Handle cases where pygtk isn't installed in the prefix we're configuring for. * src/Makefile.am: Link libvte to its library dependencies. 2002-06-13 nalin * src/vteaccess.c: Stop watching for hierarchy-changed signals -- the accessible container which is our parent handles it already (from msw). 2002-06-13 nalin * src/vteaccess.c: Re-read cursor position immediately on "cursor-moved" events, and emit the "text-caret-moved" signal then as well. Don't override the signal handlers for signals we emit, bad things can happen (from msw). 2002-06-12 nalin * src/vte.c: Re-read the termcap when we change emulation, because the location of the file may have changed. * src/reaper.c: Also tell the parent the child died when the child dies due to an uncaught signal. * python/vte.override (_wrap_vte_terminal_fork_command): Handle default value for the command. 2002-06-12 msw * python/vte.override (_wrap_vte_terminal_fork_command): implement 2002-06-12 msw * acinclude.m4: added AM_CHECK_PYTHON_HEADERS from pygtk * configure.in: rewrote python checks to be more robust * python/Makefile.am (CFLAGS): include @PYTHON_INCLUDES@ 2002-06-12 msw * src/vte.c (vte_terminal_get_accessible): turn the logic around to be the right way 2002-06-12 nalin * src/vte.c: Cache the result of vte_terminal_get_accessible() and unref it at finalize-time. Add debug messages to log signals emitted by the widget. Implement vte_terminal_get_encoding and vte_terminal_get_emulation, emit signals when these change. * src/vteaccess.c: Emit a "text_caret_moved" signal when the cursor moves. * configure.in, src/Makefile.am: Add rules for building python modules. 2002-06-12 msw * src/vteaccess.c (vte_terminal_accessible_get_text): accept end_offset of -1, which means "until the end". * src/vteaccess.c (vte_terminal_accessible_new): never set the description to a NULL pointer 2002-06-10 nalin * Makefile.am, configure.in: Include gettext support. * src/vte.c, src/vte.h: Expose vte_terminal_set_encoding(). * src/vte.c: Finish merging otaylor's Xft2 patch (oops). Compute padding correctly. * src/pty.c, src/reaper.c, src/trie.c, src/vte.c: Mark warnings for possible translation. 2002-06-07 nalin * src/vte.c: Center characters in their cells, caching their extents. 2002-06-06 nalin * src/vte.c, src/vte.h: Add get_cursor_position(). Remove get_snapshot() and free_shapshot(). * src/vte.c: Fix a logic bug that caused us to scroll to the bottom even if the user just pressed and released a modifier key. Fix saving of the font in set_font() in most cases, where we weren't saving the new font before. Scroll-to-bottom on input method commits, which are also the result of keystrokes, when scroll-on-keystroke is enabled. * src/vteaccess.c: Rework to use get_text() and get_cursor_position() instead of get_snapshot(), so that selection and accessibility both agree on what's visible (or "visible"). 2002-06-05 nalin * configure.in: Check for pangoxft with Xft1 or Xft2, hopefully getting things right for either case. Originally from patch by andersca. * src/reaper.c, src/reaper.h: Add a singleton object to watch for SIGCHLD when child processes quit. * src/vte.c: Emit a "child-exited" signal when a child started with fork_command() exits. * src/vte.c: Make a better guess at font metrics when using Xft by measuring the extents for a string of representative characters. * src/vte.defs: Add. Not very useful yet. 2002-05-31 nalin * src/vte.c: Implement font setting using PangoX to convert Pango font descriptions to core font xlfds for use when drawing with Xlib. 2002-05-29 nalin * src/trie.c, src,vte.c: Finish switching iconv to g_iconv. I think this was a part of Hidetoshi Tajima's patch that I lost. Free regexes when we're done with them. 2002-05-28 nalin * src/vte.c: Fix matching when scrolling delta isn't zero. Fix async background updating (report from Richard Neal Plana). Fix cb() and ce() when the cursor is on a line without data (needed to create it) and when cells being cleared don't exist (needed to create them) (report from Garret LeSage). * src/vte.c, src/vteaccess.c: Always free the segment when freeing arrays and strings. 2002-05-24 nalin * autogen.sh: Call libtoolize. (#82836) * src/vte.c: Fix stupid segfault in set_scrollback_lines. (Patch from notting.) Make another attempt to convert Pango font descriptions to xlfds. * src/vteapp.c: Add -c, -f, -t command-line flags for easier testing. 2002-05-22 nalin * src/vte.c: Fix hiliting of matched strings. 2002-05-21 nalin * src/vte.c: Filter key release events through input methods. (Patch from otaylor.) When building with gcc, use -std=c99. 2002-05-21 nalin * autogen.sh, src/termcap.c, src/utf8echo.c, src/vte.c: Patch from Hidetoshi Tajima to fix building on Solaris systems, remove use of syntax that might be specific to gcc, and fix an overrun in vte_termcap_generate(). (#82433) 2002-05-18 andersca * src/vte.c: Don't queue a background update if the background isn't transparent. 2002-05-16 nalin * src/vte.c: Snip trailing whitespace off of copied lines, insert an end-of-line only when the copied line doesn't go to the right edge, don't overrun right edge, even in insert mode. Fix displaying of underlined text. Finish implementing matching. 2002-05-15 nalin * src/vte.c: Send kI on insert key. Don't send drag events when the child has only asked for click events. Fix crashbugs in selection. When getting scroll events, send mouse 4/5 events to the child instead of performing a history scroll if the child wants mouse events. Start adding match support, merging how selection views the buffer with how matching views the buffer, though matching doesn't work yet. 2002-05-14 nalin * src/vte.c: Don't try to draw nul characters, most fonts can't. Don't send motion-tracking events to the child unless we're dragging. Fix ce so that it works even right after startup. Make sure that repainting the entire window actually exposes the visible parts of the window. Fix tab clearing to also allow removal of the current tabstop. Implement save-mode and restore-mode. Start on reverse-video mode. Don't scroll on modifier keypress events. Rework part of clipboard copy. * termcaps/xterm: Add missing F11/F12/End keysyms to bundled xterm termcap. 2002-05-13 nalin * src/debug.c: Add "ALL" as a debug flag, aliased to everything. * src/pty.c: Print debug info after redirecting stdio. * src/trie.c: When debugging, count only decision nodes. * src/vte.c: Fix se, for real this time. Add a mostly-ignored protected attribute. Handle am, bw, ul flags properly. Make cd clear the current line, too. Make ce fill the current default attributes through the end of the line. Handle cS. Fix cv to work when we have a scrollback buffer. Handle ll, mp. Line wrap on nd. Reset tab stops on hard reset only. Handle soft-reset and full-reset. Handle uc. Initialize scrollback line count properly. Tweak drawing of alternate 'a' to get rid of artifacts. Reset insert mode, cursor visibility, and scrolling regions when resetting. 2002-05-10 nalin * src/vte.c: Fix IC, which should *always* be done in insert mode, from otaylor. Make delete mode do nothing. 2002-05-09 nalin * src/vte.c: Fixes to usage of iconv, from otaylor. Remap certain characters which are missing in the current Xft font to similar characters if they are in the font, from otaylor. Change default emulation to "xterm", cleaning up confusion over what standout really means. Reorganize some internals. Complain when an application sends us a key-press sequence, as if we knew what to do with one of those. Implement bt, ct, st. Reimplement ta. * src/debug.c, src/debug.h: Added. 2002-05-08 nalin * src/vte.c: Implement mouse motion-event and any-event tracking. 2002-05-07 nalin * src/vte.c: Implement the rest of the special graphics characters. 2002-05-06 nalin * src/vte.c: Finish implementing window-manipulation sequences. Rename signals to be more consistent. Add thin wrappers for emitting signals, and use them everywhere. Support pangox even when XFT isn't available. Try to provide bold text again. Add signals for most of the window manipulation control sequences. Start handling mouse button events. Hide the mouse cursor when we get keyboard events. Use a different mouse cursor if the child is mouse-aware. Handle eA() by treating it as as(). * src/caps.c, src/caps.h: Export definitions of VTE_CAP_CSI and friends. 2002-05-04 nalin * src/vte.c: Implement device-status-report and dec-device-status- report. Clamp location values in sequence_handler_cm() to the dimensions of the terminal window so that resize(1) will work right. Start handling window-manipulation sequences. 2002-05-03 nalin * src/termcap.c: Export a vte_termcap_strip() function for preprocessing escape sequences and whatnot from capability values. * src/typescrypt: Removed. * src/vte.c: Pass the hard-coded xterm-specific capabilities through vte_termcap_strip(), which fixes a few weird bugs. Discard invalid might-be-control-sequence sequences, like other emulators do. Don't consider modifier keys, by themselves, to be enough to scroll-on-key. When snapshotting, actually snapshot all of a row instead of just the last character. Don't run past the end of snapshot contents when reading them. * src/vteaccess.c: Clamp offsets so that they always sort right. 2002-05-02 nalin * src/termcap.c: Fix handling of triple-digit escaped characters, which weren't being processed right if the first digit was '1' instead of '0'. * src/trie.c: Rework trie matching to return the address of the character which ended the match attempt, which should cut down on useless initial-substring checks. Fix a subtle bug which caused intermittent off-by-somenumber errors in the return address. * src/vte.c: Remove several gdk_window_scroll() calls which apparently aren't buffered. Convert invalid multibyte characters to '?' instead of just dropping them. Provide a means of setting the backspace/delete bindings. Add a poor xlfd_from_pango mapping function which would need serious work to be useful. Get rid of warnings when we're transparent and the root window pixmap isn't as big as the root window because it's been tiled. Setup bindings using the export functions. Set the default terminal size to 80x24 instead of 60x18, which was originally chosen for debugging purposes. Don't use $SHELL as the command to invoke when starting up a default command (as in the test app) -- libtool wrappers keep screwing this up. Don't limit the number of characters we skip over in invalid multibyte sequences -- sometimes that's not enough. Hook up ts/te, ks/ke sequence handlers. * src/vteaccess.h: Fix a crashbug due to mismatch between parent field in the object's structure and its inherited object's type. Fix more crash bugs due to initialization weirdness. More to go. 2002-05-01 nalin * src/vte.c: Try @pkgdatadir@/termcap/$TERM when reading termcap files. This fixes the app on systems with no /etc/termcap, and also speeds up loads and reduces memory consumption for xterm-color at the expense of making on-the-fly emulation changes impossible. Don't xor reverse with itself when drawing characters (this broke when snapshotting was added). * termcaps/Makefile.am, termcaps/xterm-color: include a default termcap for xterm-color. * src/termcap.c src/termcap.h: make _find_boolean return a gboolean instead of an int. 2002-04-30 nalin * src/vte.c: Disconnect from toplevel window_configure events at finalize-time. 2002-04-30 18:06 nalin * src/vte.c: Track and free idle task tags properly. Change F11 and F12 capabilities from 'k;' and 'F1' to 'F1' and 'F2'. Send a NUL on control space. (#80350) Allow setting and checking of word characters, and change select-by-word behavior to use the word character list. Emit "contents_changed" signals whenever the visible contents change, and "cursor_moved" when the cursor moves. Add snapshotting method. Scroll when auto-margin handling moves the cursor to the next line. Assume that the locale charset is actually ISO-8859-1 when we're in a UTF-8 locale, so we don't toggle from UTF-8 to UTF-8. Treat GDK_KP_Page_Up as a GDK_Page_Up, ditto for GDK_KP_Page_Down and GDK_KP_Tab and GDK_KP_Space. Add vte_terminal_get_font(). Don't bother messing with ring buffers if we're resizing them to their current sizes. * src/pty.c, src/vte.c: Return a pid from vte_terminal_fork_command(). * src/vteaccess.c, src/vteaccess.h: Add VteTerminalAccessible object type. It might even work, mostly. 2002-04-29 14:25 nalin * src/vte.c: Handle me() by resetting all attributes (including colors, which we weren't resetting before). 2002-04-29 10:57 nalin * src/vte.c: Handle kb by treating it as a backspace. Make pangox rendering the default. Handle control-key sequences better, unless the input method is hiding the modifiers from us. Set the default TERM variable to "xterm-color". * src/vte.c src/vte.h: Get rid of vte_terminal_set_core_font(). 2002-04-26 19:14 nalin * src/vte.c: Punt all changes to background images and transparency to an idle task. Only insert newlines into the copy buffer when the last column in a given line doesn't have a character in it. 2002-04-26 17:35 notting * src/pty.c: use execlp/execvp 2002-04-26 12:09 nalin * src/Makefile.am, src/ring.c, ring.h: add a ring buffer for storing scrollback data. * src/vte.c: use a ring buffer instead of a GArray to hold scrollback rows. Fix a bug in that. Try to preserve what the user sees when the scrollback size changes. * src/vteapp.c: set a default scrollback buffer size of 100. 2002-04-26 00:49 nalin * Makefile.am: run autogen before tagging so that the tag is always correct. * README: update. * configure.in: add pangox to the list of GTK+ 2.0 modules we link with. * src/vte.c, src/vte.h: add vte_terminal_set_scrollback_lines(), add some code to use pangox for rendering before trying core rendering, which should make font selection actually work. * vte.spec: tweak description text. 2002-04-25 12:23 nalin * Makefile.am: Uncomment the tag target. 2002-04-25 12:22 nalin * HACKING, Makefile.am, configure.in: Add some targets for building tarballs in a hopefully-reproducible way. 2002-04-25 12:12 nalin * src/vte.c: Let GDK_USE_XFT turn on Xft as well as VTE_USE_XFT. 2002-04-25 01:45 nalin * src/vte.c: Handle decoding errors better. 2002-04-25 00:49 nalin * vte.spec: Include pkgconfig files in the package. 2002-04-25 00:43 nalin * src/vte.c: src/vte.c: Make multiple calls to set_background_transparent() and set_background_image() do the right thing. 2002-04-25 00:05 nalin * src/vte.c: Reverse the sanity check in vte_terminal_set_background_image_file() so that it rejects zero-length strings, not the other way around. 2002-04-24 23:54 nalin * src/trie.c: Demote some debug messages to being trie-specific debug messages. * src/vte.h: Declare vte_terminal_set_core_font() for non-Xft use. * src/vte.c: Adjust idle priorities to make the terminal be more responsive. Fix a double-free that corrupted the heap on core font loads. Rework some pixbuf handling to only create new pixbufs when we need to modify what we are given. Revert a patch for profterm crackiness that's gone now. 2002-04-24 20:49 nalin * README: update to-do list. * autogen.sh: remove --disable-shared. * src/pty.c: remove a memory leak. * src/termcap.c: fix a possible read-before-start-of-buffer. * src/trie.c: use iconv instead of mbrstowcs, even if it's just ASCII->W_CHAR_T. * src/vte.c: fix a few memory leaks. Only reset the IM context when we're realized, which is the only time we actually have an IM context. Don't create a copy of a pixbuf if we don't need to desaturate it, just ref it and use it directly. 2002-04-23 19:40 nalin * src/vte.c: Display UTF-8 preedit strings properly, fix copy (no, really this time), and reset IM contexts when pasting text in. 2002-04-23 18:01 nalin * src/pty.c: Print debug messages before redirecting stdio. * src/vte.c: Fix displaying of highlighted multi-column text. Use the GTK global setting for cursor blinking to control das blinkencursor. * src/vte.h: Remove function for setting blinking timeout. 2002-04-23 15:54 nalin * src/pty.c: Fix a compile warning. 2002-04-23 15:54 nalin * autogen.sh: Default to include optimization, even for debugging. * configure.in: Move AM_CONFIG_HEADER to the top. * src/pty.c: Create non-login shells by default (when argv is NULL, otherwise it's up to the caller anyway. * src/vte.c: Add mostly-complete input method support. * src/vte.h: Add vte_terminal_im_append_menuitems(). 2002-04-23 13:04 hp * src/vte.c, src/vte.h: add vte_terminal_set_font 2002-04-22 17:00 hp * src/vte.c: when setting background color, use allocated color, and don't overwrite with bg of None 2002-04-22 16:50 hp * src/vte.c: use gdk_rgb_find_color to allocate X colors 2002-04-22 16:35 nalin * src/vte.c, src/vte.h, src/vteapp.c: Add vte_terminal_feed_child() to send UTF-8 strings to the child process, and actually apply Havoc's fix right this time. 2002-04-22 09:56 nalin * src/vte.c: Prevent double-free of incoming buffer (patch from Havoc). 2002-04-16 01:43 nalin * README: Fix typo. * src/vte.c: Make blinking cursors stay on while the user is typing, desaturate images using integer math. 2002-04-05 00:58 nalin * vte.spec: Add less useless descriptions. * src/vte.c: Fix an uninitialized variable and missing declaration error. 2002-03-24 21:52 nalin * src/vte.c: Ensure that there's a data row whenever we scroll forward, fixing strangeness when I suspend and resume vim. 2002-03-24 19:08 nalin * src/vte.c: Copy to clipboard synchronously, which fixes a number of problems. Implement background transparency. 2002-03-17 20:59 nalin * src/vte.c: Rework backgrounds to take advantage of gdk's automatic drawing. * src/vteapp.c: Try to enable transparency if no background image is present. 2002-03-17 20:58 nalin * autogen.sh, configure.in: Adjust warnings used when in maintainer mode. 2002-03-17 01:15 nalin * src/vte.c: Draw the cursor as an unfilled box when the widget does not have focus. 2002-03-17 01:04 nalin * src/vte.c: Fix handling of scroll-on-output to always scroll when only we're at the bottom of the buffer. * src/vteapp.c: Disable scroll-on-output by default. 2002-03-17 00:45 nalin * src/vte.c src/vte.h: Rework tiling of background images, and implement a blinking cursor. * src/vteapp.c: Set blinking cursor by default. 2002-03-14 02:58 nalin * src/caps.c: Corrections to some xterm control sequences. 2002-03-14 02:32 nalin * configure.in: Define PACKAGE correctly. * src/vte.c src/vteapp.c: Move most of the tear-down code into the widget finalize method; handle EOF and widget destruction correctly to prevent segfaults. 2002-03-14 00:48 nalin * configure.in: * configure.in: Define PACKAGE. 2002-03-14 00:18 nalin * configure.in: Disable gdk-pixbuf's deprecated functions. * vte.c: Discard non-ascii bytes to clear logjams that happen when we pass invalid terminal data to iconv(). 2002-03-13 23:07 nalin * src/iso8859mode.c, src/utf8mode.c, src/vte.c, src/vte.h: add missing includes * vte.c vte.h: implement background color setting, provide a function for setting the defaults, tile background images properly 2002-03-13 21:12 nalin * configure.in, vte.pc.in, src/vte.c: Remove gdk-pixbuf-xlib dependency by using just gdk-pixbuf. * src/vte.c: Perform background image desaturation locally. 2002-03-13 14:37 nalin * src/vte.c: Don't add the widget's allocation offsets when generating expose events. 2002-03-13 14:22 nalin * src/vteapp.c: Don't try to use transparency for now. 2002-03-13 13:29 andersca * src/vte.c, src/vte.h: Add more functions that profterm can use. 2002-03-13 12:51 andersca * .cvsignore, vte.pc.in: Silent cvs and add gdk-pixbuf-xlib to depends in the .pc.in file 2002-03-13 12:37 andersca * src/.cvsignore: Sliff sloff 2002-03-13 12:37 andersca * src/.cvsignore: sssh 2002-03-13 12:19 nalin * configure.in: Add gdk-pixbuf-xlib-2.0 as a module requirement. 2002-03-13 01:21 nalin * src/vte.c, vte.h, vteapp.c: * vte.c: Add set_size, set_audible_bell, set_scroll_on_output, set_scroll_on_keystroke, copy_clipboard, paste_clipboard, set_background_image, set_background_image_file, and set_background_saturation. Also added a broken set_background_transparent. 2002-03-12 22:35 nalin * src/vte.h: adjust the name of a declared function (was _set_size, is _size_set) 2002-03-12 22:11 nalin * src/vte.c: Get rid of a global copy of the parent class. * vte.c: Implement ec, ic, and IC handlers. 2002-03-12 22:10 nalin * src/vte.h: Fix a typo in a comment (we don't "omit" signals). 2002-03-12 15:48 nalin * src/caps.c: Recognize xterm cursor-character-absolute sequence. * src/vte.c: Handle cursor-character-absolute. Change the default font to "mono" 14 point when using Xft. 2002-03-12 15:22 nalin * src/vte.c: Handle the ve (cursor visible) control sequence. 2002-03-12 15:19 nalin * src/vte.c: Handle dec private mode set (cursor visibility). 2002-03-12 15:13 nalin * src/vte.c, src/vte.h, src/vteapp.h: fix signed/unsigned problems (fixes from alexl) 2002-03-11 20:29 nalin * src/vte.c: Make scroll-on-output scroll on control sequences, too. 2002-03-11 20:19 nalin * src/Makefile.am, src/iso8859mode.c, src/utf8mode.c: Add simple programs for moving a terminal in and out of UTF-8 mode. * src/vte.c: Be more verbose about iconv() errors. Implement dc and DC handlers. Handle auto-wrapping (the "am" flag). Remove scrolling cheats from the al handler, which made the window jump. 2002-03-11 02:39 andersca * src/vte.c: Add a finalize handler and free our title strings there. 2002-03-11 02:05 nalin * Makefile.am, configure.in, src/vte.c, src/vte.h, src/vteapp.c: Emit "window_title_changed" and "icon_title_changed" when the titles change, and store the new values in a public field so that a handler can retrieve the values (patch from Anders Carlsson). 2002-03-11 01:54 nalin * vte.pc.in: Add vte.pc, from Anders Carlsson. 2002-03-11 01:47 nalin * src/vte.c: Fix a duplicate-idle-handler bug. 2002-03-11 01:32 nalin * README, src/vte.c: Fix selection (except maybe the end-of-line stuff). 2002-03-10 23:44 nalin * src/vte.c: Whoops, I broke selection. Fix that. Implement selection by lines. 2002-03-10 23:08 nalin * src/vte.c: Move character rendering into a common function so that the cursor is always drawn the same as other characters (fixes previous glitches when using Xft and when the cursor was over an alternate charset character). 2002-03-10 03:31 nalin * src/vte.c: Differentiate between single, double, and triple-click for selection (still need to do something with that info). 2002-03-10 03:16 nalin * stamp-h.in: remove this file 2002-03-10 03:15 nalin * configure.in: Don't check for pango because we never call pango directly. 2002-03-10 03:13 nalin * src/vte.c: Deselect properly when something else is inserted into the clipboard. 2002-03-10 02:26 nalin * AUTHORS, HACKING, README, src/utf8echo.c, src/vte.c: Fix wide-character handling (now handles mid-stream encoding changes correctly). Updates to the meager docs. 2002-03-09 02:41 nalin * Makefile.am, vte.spec, src/Makefile.am: Add a .spec file (make dist; rpm -ts vte*.tar.gz; rpm --rebuild) to make building a package easier. 2002-03-09 02:24 nalin * src/vte.c: skip over space columns when selecting 2002-03-09 02:20 nalin * src/pty.c, src/vteapp.c: Use a login shell by default. 2002-03-09 02:10 nalin * src/vte.c, src/vte.h, src/vteapp.c: Rework input queueing to allow for feeding without a pty. Use gdk_window_scroll() in _al and _up handlers, and in the _do handler, because it's usually faster. 2002-03-08 02:52 nalin * src/vte.c: Implement copy and almost-correct selection highlighting. 2002-03-07 21:30 nalin * src/vte.c: Use a queue for pasting data. Try to get dragging detected right (doesn't work). 2002-03-05 19:21 nalin * src/vte.c: Mark the beginning of a selected area. 2002-03-05 19:17 nalin * src/vte.c: Make pasting asynchronous. 2002-03-05 19:07 nalin * src/vte.c: actually free clipboard data when finished with it 2002-03-05 19:02 nalin * src/vte.c: Implement middle-button paste. 2002-03-05 18:55 nalin * src/vte.c: Properly convert from utf-8 or wchar_t strings when sending data to the pseudo-terminal. 2002-03-04 19:53 nalin * src/vte.c: Implement shift/pgup/pgdown scrolling. Make scroll-on-keypress and -on-output easier to toggle. 2002-03-04 19:26 nalin * src/vte.c: Spec out the rest of the alternate characters I haven't implemented yet. Remove a function that can't be easily written (scroll_rows). Correctly update the insertion delta when scrolling, to fix man(1) again. 2002-03-04 19:16 nalin * src/vte.c: Discard redundant cursor-position exposes. 2002-03-04 18:57 nalin * src/termcap.c, src/termcap.h, src/vte.c: Use ssize_t to measure string offsets in termcap, and don't assume that all capabilities have values. This fixes some nasty crashes. 2002-03-04 11:53 nalin * src/vte.c: add a missing bounds-check in the erase-in-row function 2002-03-04 01:13 nalin * README, src/vte.c: Send the slave pty's erase character when the user hits backspace. 2002-03-04 00:59 nalin * src/vte.c: Draw cursors to fill the entire cell. Draw the blank alternate character (ooh, tough). Remove a redundant expose. 2002-03-03 23:49 nalin * src/trie.c: stop using wcsnlen, which is a GNU extension 2002-03-03 23:43 nalin * src/caps.h, src/pty.h, src/termcap.h, src/trie.h, src/vte.c, src/vte.h: Add support for the line-drawing characters in the special characters and line-drawing character set. (See [http://vt100.net/docs/vt102-ug/table5-13.html].) 2002-03-03 21:57 nalin * src/pty.c, src/pty.h, src/vte.c: Properly differentiate insertion delta (working screen) from scrolling delta. Add environment setting to the pty code. 2002-02-27 21:54 nalin * src/trie.c, src/vte.c, src/vte.h: Make the Xft support use long-lived data items. Clean up a lot of other Xft-related code. 2002-02-27 10:45 nalin * src/vte.c: actually hook up the nd handler to the "nd" sequence 2002-02-27 00:05 nalin * autogen.sh, configure.in, src/vte.c, src/vte.h: - Add sub-optimal Xft rendering (set VTE_USE_XFT to "1" to try it); still needs quite a bit of work to be useful. Implement character-position-absolute and line-position-absolute, which I think are the only sequences which emacs uses and which weren't implemented. 2002-02-25 12:43 nalin * src/Makefile.am: distcheck fixes 2002-02-25 12:41 nalin * README: add that line-drawing does not work to README 2002-02-25 12:40 nalin * configure.in, src/Makefile.am: tree fixups 2002-02-25 12:38 nalin * configure.in: fix autoconf reference file problem 2002-02-25 12:38 nalin * src/Makefile.in: remove stuff which should never have been added 2002-02-25 12:37 nalin * configure.ac, configure.in, src/Makefile.in: rename configure.ac to configure.in, remove 2.5isms 2002-02-25 12:35 nalin * doc/ctlseqs.ps, Makefile.in, aclocal.m4, config.h.in, configure: remove stuff that should never have been in there 2002-02-25 12:30 nalin * AUTHORS, ChangeLog, Makefile.am, NEWS, README, autogen.sh, configure.ac, COPYING, HACKING, Makefile.in, aclocal.m4, config.h.in, configure, stamp-h.in, doc/ctlseqs.ms, doc/ctlseqs.ps, doc/readme.txt, doc/vttest.tar.gz, src/Makefile.am, src/Makefile.in, src/caps.c, src/caps.h, src/interpret.c, src/marshal.list, src/pty.c, src/pty.h, src/termcap.c, src/termcap.h, src/trie.c, src/trie.h, src/typescript, src/utf8echo.c, src/vte.c, src/vte.h, src/vteapp.c: Initial revision 2002-02-25 12:30 nalin * AUTHORS, ChangeLog, Makefile.am, NEWS, README, autogen.sh, configure.ac, COPYING, HACKING, Makefile.in, aclocal.m4, config.h.in, configure, stamp-h.in, doc/ctlseqs.ms, doc/ctlseqs.ps, doc/readme.txt, doc/vttest.tar.gz, src/Makefile.am, src/Makefile.in, src/caps.c, src/caps.h, src/interpret.c, src/marshal.list, src/pty.c, src/pty.h, src/termcap.c, src/termcap.h, src/trie.c, src/trie.h, src/typescript, src/utf8echo.c, src/vte.c, src/vte.h, src/vteapp.c: imported from private cvs Local Variables: coding: utf-8 End: vim: encoding=utf-8: