2 - You could say that VTE is something of a research project of mine, based on
3 the simple question: "if programs can use a termcap file (through either
4 libtermcap or curses or ncurses) to determine how to drive a terminal, why
5 can't a terminal emulator use a termcap file to determine how to behave?"
7 * What does VTE include?
8 - VTE includes a library (libvte) which implements such a terminal emulator
9 widget for GTK+ 2.0, and a sample application (vte) which wraps that widget
10 in a GTK window. Because I'm more concerned with whether or not it works,
11 all settings are hard-coded to whatever I needed to test the last time I
12 touched it. If you actually want to use the widget to get work done, you
13 should probably be using gnome-terminal.
16 - The VTE library inserts terminal capability strings into a tree of tables,
17 and then uses it to determine if data received from a pseudo-terminal is a
18 control sequence or just random data. The sample program "interpret"
19 illustrates more or less what the widget sees after it filters incoming data.
22 - Accessibility doesn't work quite right yet.
23 - Mouse hilite tracking isn't implemented yet.
24 - Most control sequences are recognized, but many aren't implemented. There
25 are enough to run ls, vim, less, emacs and mutt, but more need to be
26 implemented (ds, ff, hd, hu, i1, i3, iP, is, LF, LO, MC, ML, mm, mo, pf, pk,
27 pl, pn, po, pO, ps, px, r1, r2, r3, RA, RF, rp, rs, RX, SA, SX, wi, several
28 more from the XTerm set).
29 - I'm not sure the widget implementation itself is correct. There are many
30 changes in going from GTK+ 1.2 to 2.0, and examples of the proper way to do
31 things is currently scarce, so some of it's guesswork.
32 - An actual property interface needs to be retrofitted over the various options
33 which are only presented as get/set accessors.
36 - Relative cursor motion is weird. When the character to the right of the
37 cursor is a 3-byte UTF-8 sequence for a character which occupies two
38 columns on the screen, three things may happen when the application sends
39 the "cursor left" control sequence:
40 * the cursor moves two columns (one character) to the left
41 This eliminates the possibility of moving the cursor into the middle of
42 a multi-column character.
43 * the cursor moves one column (one half-character) to the left
44 This makes determining where the cursor is easier, but requires the
45 application to emit a control sequence more than once for multi-column
47 * the cursor moves one "byte" to the left
48 This happens to work for a few locales, and is otherwise just broken.
49 Currently VTE follows the second convention. More on this topic:
50 http://czyborra.com/unicode/terminals.html
51 http://mail.nl.linux.org/linux-utf8/1999-10/msg00014.html
52 http://www.debian.org/doc/manuals/intro-i18n/ch-output.en.html
53 - Depending on your locale, the current encoding, and possibly the strengh
54 of cosmic rays, the display width of certain Unicode characters changes.
55 For the most part this works correctly now, but if you find that it
56 doesn't, please file a bug report including a screenshot, the typescript
57 file produced by the incorrectly displayed program run under "script", and
58 the contents of your LANG environment variable.