Wednesday, June 15, 2022

Re: TERM (was Cursors)

> On 6/15/22 2:44 PM, Bram Moolenaar wrote:
> > Yes, that is indeed a problem. Lots of terminal emulators keep popping
> > up, many with the same or similar base, and adding one more feature.
> > They don't bother distributing a correct termcap/terminfo entry and
> > just use something like "xterm" for $TERM.
>
> I wonder how much of that is by conscious choice vs ignorance.

It is a conscious choice. Someone making a new terminal emulator wants
it to get popular quickly, doesn't care about doing things that make it
harder to have it adopted. "If it works for 99% that is good enough".
And then spend years fixing that last percent (or just ignoring it).

> > I have been thinking of a way to just ignore termcap/terminfo and
> > let the terminal tell us what it's features are. Xterm does this
> > partially, but there can be artifacts (e.g. when Vim exits very
> > quickly). I haven't found the right solution yet.
>
> I'm curious. Though that is probably even further off topic.

With xterm Vim will request the actual escape sequences used. This
matters, because even when the $TERM value is correct and the
terminfo/termcap entry is found, there are runtime options that can
change the behavior. "8 bit controls" can completely mess things up.

Problem is that between requesting the entry and receiving it there is a
delay, which can go to a few hundred msec for a remote terminal. Then
the response may end up in the shell instead of with Vim. It's not a
final solution.

> > It works well compared to other solutions (e.g. Putty). If you can't
> > get it to connect double check the settings. It works for me (when
> > I get the domain or IP address and port right).
>
> I suspect that my problem is related to the super tight security
> settings that $CORP_IT has put in place since the last time I tried to
> use it.

It's possible the protocol to connect disallows using a password.
I don't know how to do something else, such as a key/challenge exchange.

--
(letter from Mark to Mike, about the film's probable certificate)
For an 'A' we would have to: Lose as many shits as possible; Take Jesus
Christ out, if possible; Loose "I fart in your general direction"; Lose
"the oral sex"; Lose "oh, fuck off"; Lose "We make castanets out of your
testicles"
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220615214743.7BD021C2341%40moolenaar.net.

No comments: