On Apr 7, 9:25 pm, pansz <[email protected]> wrote: > Tony Mechelynck 写道: > > > On my system it doesn't set it. Anyway, I suppose that a value of > > "gnome-terminal" would be rather characteristic. Remains to be seen how > > to tellxtermapart from konsole. From v:termresponse maybe? Let's see > > what I get: > > > konsole... ^[[0;115;0c > >xterm... ^[[0;236;0c > > gnome-terminal... ^[[1;1704;0c > > > (where the initial ^[ is an "escape" character) so the results are > > indeed different, but I don't think the criterion can be ported to an > > unknown system > > It seems work, but we may need to do some regexp matching... > Let's see what I get: > > konsole1... ^[[0;115;0c > konsole2... ^[[0;115;0c
The 115 was copied from one of xterm's strings. gnome terminal copied it around the same time, but at a later point added a digit. Since then, the trail's grown indistinct (gnome developers as a matter of practice, do not document their changes very well ;-) > xterm... ^[[0;239;0c > gnome-terminal... ^[[1;1613;0c > xfce4-terminal... ^[[1;1613;0c > screen... (nothing) > > So the number may not be exactly the same, while we should tell > differences between konsole and gnome-terminal anyway. While the konsole > in KDE3 and KDE4 returns the same value, which is somewhat undesirable. The "1" in gnome-terminal's response would claim that it emulates a vt220. It only implements enough of a subset to be a nuisance when one tries to use it as a vt220 (on VMS for instance). One of gnome-terminal's bug reports pointed that out, and the advice given there was to change the response to fix the bug. (The developer failed to comprehend the advice - it's apparent in his response ;-). -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
