Re: mc, xterm-clear, Ctrl-O and Home/End dilemma

2017-12-21 Thread Eugene M. Zheganin

Hi,

On 22.12.2017 00:38, Marek Zarychta wrote:

Maybe switching to the x-window driven desktop environment at home should be 
taken into consideration in this case.

Both ncures and slang versions of misc/mc work fine (key bindings, border 
drawing etc.) for ssh(1) client called from xterm capable terminal.

Yup, when I work from FreeBSD on Xorg, everything is fine, but not from 
putty.


Eugene.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: mc, xterm-clear, Ctrl-O and Home/End dilemma

2017-12-21 Thread Eugene M. Zheganin

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.

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: mc, xterm-clear, Ctrl-O and Home/End dilemma

2017-12-21 Thread Christoph Moench-Tegeder
## Eugene M. Zheganin (e...@norma.perm.ru):

> 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".

Putty has quite a bunch of options to configure terminal behaviour,
and you can make it send different terminal identifiers (from your
description, I'm not sure where you switched terminal modes).
Maybe fiddling with putty or the terminal identifier will help?
Termcap even has a putty entry...

I'm not a putty user myself (I prefer xterm and openssh), so I can
only guess.

Regards,
Christoph

-- 
Spare Space
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


trying to figure it out

2017-12-21 Thread joshua richardson
will you help me get this set up on my iphone 6

Sincerely
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: mc, xterm-clear, Ctrl-O and Home/End dilemma

2017-12-21 Thread Marek Zarychta
On Thu, Dec 21, 2017 at 11:20:35PM +0500, 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 ?
> 
> 

Maybe switching to the x-window driven desktop environment at home should be 
taken into consideration in this case. 

Both ncures and slang versions of misc/mc work fine (key bindings, border 
drawing etc.) for ssh(1) client called from xterm capable terminal.

-- 
Marek Zarychta


signature.asc
Description: PGP signature


mc, xterm-clear, Ctrl-O and Home/End dilemma

2017-12-21 Thread Eugene M. Zheganin

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 ?


Thanks.

Eugene.

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"