Kai Henningsen wrote:

> * There is a way (in that basic set) to query the terminal for the options  
> it does support. Preferrably, by name, and something like x-names for  
> private features.

Have a look at the tcap-query feature of the recent xterm.  This allows an
application to request termcap/terminfo values directly from the terminal.
By default it is excluded, you need to use the "--enable-tcap-query" configure
argument to include it.

The main advantage is that items that can be changed with startup files or
command-line arguments will work.  For example, whether utf-8 support is
enabled or not.  The traditional termcap/terminfo method does not support
these dynamic changes.

For Vi and Vim it will be a big advantage if escapes sequences start with CSI
instead of ESC.  This makes it much easier to distinguish hitting the ESC key
from the start of an escape sequence.  This does require an 8-bit connection
to the terminal, hopefully that's not a problem.  It's required for utf-8 too.

> * Similarly, there is a way to ask the terminal for enough internal state  
> as to be able to restore the state (this is important, for example, when  
> calling out to a different program that needs different option states but  
> wishes to restore the display before returning). One of the things one can  
> query should be the current display contents. Everything should be  
> returned in a form that can simply be sent back to the terminal for state  
> restoration, so software does not need to understand all the details.

A much simpler solution is to have a command to "push the current state" and
"pop the state".  Currently there is only the switch between two states
(display pages), which isn't enough for some applications.

-- 
hundred-and-one symptoms of being an internet addict:
219. Your spouse has his or her lawyer deliver the divorce papers...
     via e-mail.

 ///  Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.moolenaar.net  \\\
(((   Creator of Vim - http://www.vim.org -- ftp://ftp.vim.org/pub/vim   )))
 \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/lists/

Reply via email to