summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2003-02-20don't pass focus status changes on to our IM context when we're notNalin Dahyabhai1-16/+28
* src/vte.c(vte_terminal_focus_in/focus_out): don't pass focus status changes on to our IM context when we're not realized, because we don't have an IM context then. * src/vte.c(vte_terminal_background_update): don't leak a queued update if one is queued and we get called directly (Red Hat #84368).
2003-02-20grab input focus on button 1 press (#106573, Red Hat #84384). From HEAD.Nalin Dahyabhai1-0/+5
* src/vte.c(vte_terminal_button_press): grab input focus on button 1 press (#106573, Red Hat #84384). From HEAD.
2003-02-18pull rest of fix for backtab from HEAD.Nalin Dahyabhai1-1/+1
* src/vte.c(vte_terminal_sequence_handler_bt): pull rest of fix for backtab from HEAD.
2003-02-18recognize and discard bogus arguments.Nalin Dahyabhai1-1/+8
* src/vte.c(vte_terminal_sequence_handler_cs): recognize and discard bogus arguments.
2003-02-18emit focus-event events when the widget receives focus-in/focus-outNalin Dahyabhai1-0/+38
* src/vteaccess.c: emit focus-event events when the widget receives focus-in/focus-out events. From HEAD.
2003-02-18pull up from HEAD to get key map entries for Ctrl-digit.Nalin Dahyabhai1-0/+45
* src/keymap.c: pull up from HEAD to get key map entries for Ctrl-digit.
2003-02-14coalesce data to work better on systems where the scheduler wakes us up asNalin Dahyabhai1-18/+45
* src/vte.c(vte_terminal_io_read): coalesce data to work better on systems where the scheduler wakes us up as soon as data is available, to better handle cases where the data we have has a pile coming in right behind it. From HEAD.
2003-02-14fix to stop at the leftmost column if there are no previous tabstops. FromNalin Dahyabhai1-4/+3
* src/vte.c(vte_terminal_sequence_handler_bt): fix to stop at the leftmost column if there are no previous tabstops. From HEAD.
2003-02-14don't free the buffer on the stack, though it should never have happened,Nalin Dahyabhai1-2/+0
* src/vte.c(vte_terminal_io_read): don't free the buffer on the stack, though it should never have happened, spotted by msw.
2003-02-13close fd leak. close potential fd leak.Nalin Dahyabhai1-0/+2
* src/vte.c(vte_terminal_finalize): close fd leak. * src/vte.c(vte_terminal_fork_command): close potential fd leak.
2003-02-13connect to accessible signals before they can be emitted so that we alwaysNalin Dahyabhai1-2/+2
* src/reflect.c(main): connect to accessible signals before they can be emitted so that we always have a clear picture of what's going on.
2003-02-12skip over fragments properly. skip over fragments properly.Nalin Dahyabhai1-0/+2
* src/vte.c(vte_terminal_get_text_range): skip over fragments properly. * src/vte.c(vte_terminal_draw_row): skip over fragments properly.
2003-02-11keep a weak pointer to the accessible peer instead of a static pointerNalin Dahyabhai2-33/+65
* 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/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-02-11always update the cursor position, in case text was added or removedNalin Dahyabhai1-29/+37
* 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. Backport from HEAD. * 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. Backport from HEAD.
2003-02-03cause the native drawing code for code points 0xa3, 0x3c0 0x2592, 0x25ae,Nalin Dahyabhai2-0/+7
* src/vte.c: cause the native drawing code for code points 0xa3, 0x3c0 0x2592, 0x25ae, 0x25c6 to be used again, so that they can be seen in cases where the current font doesn't include them, ok release-team. * vte.spec: 0.10.17
2003-01-31include iso2022.txt in tarballs.Nalin Dahyabhai1-0/+1
* src/Makefile.am: include iso2022.txt in tarballs.
2003-01-31pull up selection-always-extending-by-default fix from HEAD, okNalin Dahyabhai1-10/+15
* src/vte.c: pull up selection-always-extending-by-default fix from HEAD, ok release-team. * vte.spec: 0.10.16
2003-01-27create the "invisible" cursor using a bitmap instead of a pixmap, changingNalin Dahyabhai1-9/+8
* 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-27make the various mouse event modes mutually-exclusive, because apps expectNalin Dahyabhai1-0/+35
* 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-27force a background update immediately when we realize instead of queuingNalin Dahyabhai1-3/+4
* src/vte.c(vte_terminal_realize): force a background update immediately when we realize instead of queuing it up (#104381).
2003-01-24fix declaration order (#104290).Nalin Dahyabhai1-2/+2
* src/vte.c(vte_terminal_background_update): fix declaration order (#104290).
2003-01-23recognize and ignore attempts to set text properties 21 and 2L, whatevervte_0_10_14Nalin Dahyabhai2-0/+9
* 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-23accept "1" and "2" as aliases for "B" (#104257).Nalin Dahyabhai1-3/+3
* src/iso2022.c: accept "1" and "2" as aliases for "B" (#104257).
2003-01-23check for curses if we don't have ncurses (the order is ncurses, curses,Nalin Dahyabhai2-3/+22
* 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-23add mev. don't home the cursor automatically. fix sense of shiftNalin Dahyabhai2-86/+127
* 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-23- add mev for testing mouse event handlingNalin Dahyabhai2-1/+310
2003-01-22accept OSC{number};{string}ST as set-text-parameters, per XTerm docs (partNalin Dahyabhai2-0/+33
* 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-22streamline background images and transparency handling, should use lessvte_0_10_13Nalin Dahyabhai1-209/+214
* src/vte.c: streamline background images and transparency handling, should use less memory now.
2003-01-21add some debugging messages if REFLECT_VERBOSE is set in the environment.Nalin Dahyabhai1-0/+15
* src/reflect.c: add some debugging messages if REFLECT_VERBOSE is set in the environment.
2003-01-21add reflect-text-view, for testing with GtkTextView for sanity's sake.Nalin Dahyabhai2-98/+189
* src/Makefile.am, src/reflect.c: add reflect-text-view, for testing with GtkTextView for sanity's sake.
2003-01-20account for get_text() including zero bytesNalin Dahyabhai1-2/+6
2003-01-20try to build reflect with both vte and libzvt, building a useless binaryNalin Dahyabhai2-19/+115
* 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-20colors 90-97 and 100-107 are bold colors, noted and patched by MatthijsNalin Dahyabhai1-2/+2
* src/vte.c: colors 90-97 and 100-107 are bold colors, noted and patched by Matthijs Melchior (#103874).
2003-01-18if the caret is past the end of the text, count unichars properly. ComputeNalin Dahyabhai2-15/+53
* 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-18update copyright dates. add. add reflect (noinst). always return a string,Nalin Dahyabhai4-11/+181
* 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-17emit a "text-modified" signal, because what you see changes when youNalin Dahyabhai1-0/+2
* src/vte.c(vte_terminal_set_size): emit a "text-modified" signal, because what you see changes when you resize the terminal.
2003-01-17don't draw cursors below or above the screen, correctly compute the clearvte_0_10_11Nalin Dahyabhai1-23/+19
* 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-17if we don't find an entry for the requested key, and the terminal type isNalin Dahyabhai2-32/+38
* 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-17fix boneheaded "config.h" instead of "../config.h" include, pointed out byNalin Dahyabhai1-1/+1
* src/iso2022.c: fix boneheaded "config.h" instead of "../config.h" include, pointed out by Dan Mills and Brian Cameron.
2003-01-16fix test for whether or not we need to check for termcap override defaultNalin Dahyabhai2-1/+2
* 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 <termcap.h> properly * src/keymap.c: define the ncurses scratch buffer for use when we're using termcap
2003-01-14if a key sequence which needs modifiers doesn't have a numeric part, addNalin Dahyabhai1-4/+6
* 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-14add _vte_ring_insert_preserve(), which scrolls lost items off the topvte_0_10_10Nalin Dahyabhai6-269/+296
* 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-14initial checkinNalin Dahyabhai1-0/+1316
2003-01-14don't switch terminal modes before or after echoing bytes -- doing sovte_0_10_9Nalin Dahyabhai6-169/+244
* 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-09Only suppress meta-sends-escape on Backspace if backspace is mapped to theNalin Dahyabhai4-121/+583
* src/vte.c(vte_terminal_key_press): Only suppress meta-sends-escape on Backspace if backspace is mapped to the delete sequence. * 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-07Use a lookup table instead of a mess of floating point math whenNalin Dahyabhai1-5/+8
* src/vte.c(vte_terminal_setup_background): Use a lookup table instead of a mess of floating point math when desaturating images.
2003-01-06Add the periodic blinking refresh with the normal timeout instead of 0 toNalin Dahyabhai1-3/+11
* 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-06Use a simple XftPatternGetString/GetDouble pair instead of XftNameUnparse,vte_0_10_8Nalin Dahyabhai1-23/+82
* 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-03- fix compile failure on systems where ncurses isn't detectedNalin Dahyabhai1-1/+1
2003-01-03look for libncurses or libtermcap include other libraries (ncurses,Nalin Dahyabhai1-88/+151
* 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.