Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] vi weird when I ssh to one machine
- Date: Mon, 8 Feb 2021 09:13:42 +0000
- From: Darren Cook <darren@example.com>
- Subject: Re: [tlug] vi weird when I ssh to one machine
- References: <420c0750-b78f-a51c-c7ff-e8e6945b9f84@dcook.org> <20210205222718.GA18140@fluxcoil.net> <24606.21289.40467.646036@turnbull.sk.tsukuba.ac.jp>
Thanks for the replies. > > I would verify the contents of the TERM variable on working and non- > > working terminals: > > echo $TERM Hhmm, seems we are into the more exotic causes then, as I'm comparing ssh sessions on two machines, and both are: TERM=xterm-256color SHELL=/bin/bash The client machine also has exactly the same. Scott wrote: > I first set it as TERM=vt100, otherwise I get various error messages,... Ooh, this works. In my existing ssh session, I did `export TERM=vt100` then I can now `vi test` with no control codes appearing when I press "i". BTW, `vi` is the only thing I've seen having a problem. E.g. `ls` shows coloured file listings (with either TERM setting). I had a bit of a poke around, to see if I could find something that is different between working and problem server. /etc/vim/vimrc is identical on both machines. /etc/ssh/sshd_config looks identical Comparing printenv, LANG is LANG=en_GB.UTF-8 vs LANG=en_US.UTF-8. The XDG_ variables are a bit different. LS_COLORS is very slightly different On the working server SHLVL=1 On the problem server: SHLVL=0 ...ah, perhaps as I'd exited conda. In a new session (conda is on by default) SHLVL is 1. The VT100 trick still works with/without conda. (And I'd already confirmed vi behaviour was the same with/without conda.) Darren
- Follow-Ups:
- Re: [tlug] vi weird when I ssh to one machine
- From: Stephen J. Turnbull
- Re: [tlug] vi weird when I ssh to one machine
- From: Darren Cook
- References:
- [tlug] vi weird when I ssh to one machine
- From: Darren Cook
- Re: [tlug] vi weird when I ssh to one machine
- From: Christian Horn
- Re: [tlug] vi weird when I ssh to one machine
- From: Stephen J. Turnbull
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] vi weird when I ssh to one machine
- Next by Date: Re: [tlug] vi weird when I ssh to one machine
- Previous by thread: Re: [tlug] vi weird when I ssh to one machine
- Next by thread: Re: [tlug] vi weird when I ssh to one machine
- Index(es):