Date: Fri, 22 Dec 2017 11:22:42 +0500 From: "Eugene M. Zheganin" <emz@norma.perm.ru> To: freebsd-stable@freebsd.org Subject: Re: mc, xterm-clear, Ctrl-O and Home/End dilemma Message-ID: <77e8b9fe-3ccb-2f90-e646-172d7419a382@norma.perm.ru> In-Reply-To: <5915cdcf-c906-630d-ba5a-8271d0ae4435@norma.perm.ru> References: <5915cdcf-c906-630d-ba5a-8271d0ae4435@norma.perm.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On 21.12.2017 23:20, Eugene M. Zheganin wrote: > Hi, > > So, there's a puzzle of minor issues and I wanted to ask how you guys > deal with it. > > - with standard ncurses misc/mc there's no borders in mc in putty, and > Ctrl-O flushes the output beneath panels. > > -with slang misc/mc Ctrl-O flushes the output beneath panels (and I > lived with this through years, but then discovered xterm-clear). > > - with slang and xterm-clear Home/End doesn't work in putty. > everything else is fine, but this hurts. > > I use my FreeBSD desktop at work and from home wvia putty, so I really > want to solve this without learning keays each time (and it seems like > they aren't save on "Save setup". > > Ideas ? > > So, I figured it out, thanks to https://midnight-commander.org/ticket/2633 two things should be done on each FreeBSD mc is ran on to not ruin other ssh sessions: - a wrapper that will reside in PATH earlier than mc binary: #!/bin/sh # # simple knob to fix mc Ctrl-O without ruining remote Linux sshs # if [ $TERM = "xterm" ]; then { TERM=xterm-clear } fi /usr/local/bin/mc $* - a fix to /usr/local/share/mc/mc.lib: [terminal:xterm-clear] copy=xterm Then everything works, remote ssh sessions are not affected (like Linuxes/other OSes that don't have xterm-clear), putty works fine, Home/End working fine. Eugene.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?77e8b9fe-3ccb-2f90-e646-172d7419a382>