Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mc with ncurses after #3954 #4096

Open
mc-butler opened this issue Jun 17, 2020 · 6 comments
Open

mc with ncurses after #3954 #4096

mc-butler opened this issue Jun 17, 2020 · 6 comments
Labels
area: tty Interaction with the terminal, screen libraries prio: medium Has the potential to affect progress

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/4096
Reporter kloczek (kloczko.tomasz@….com)

After fixing handling mouse by mc compiled with ncurses under #3954 I've started using on one of my computer such binary to observe current behaviour.

Looks like mc with ncurses is generally OK however it is some number of some minor issues.
Here is summary list of the effects which I found so far:

1) Under windows putty all ascii frames gone and instead frames are displayed "x" characters. Under gnome-terminal it is OK. Both terminals are using xterm-256color so I'm assuming that this must be result of some terminal settings.

2) keys like home or key combinations like alt-N, alt-P or alt-H are handled with some delay. With alt-N/alt-P in input line is displayed first cleaned and after the delay is displayed correct text of line from history list.
That delay and input line updating in two stages is possible to observe under windows putty and gnome-terminal. That effect is a bit annoying because it causes slowing down interaction with mc. IMO that effect is kind of critical.

I'm not sure what is causing that palette of the colours on the same terminal when mc is compiled with SLang and ncurses but probably it is caused by a bit different internal colours mapping by those two libraries. Probably that could be accepted as known issue and to provide the same colours ncurses code should be changed.

@mc-butler
Copy link
Author

Changed by kloczek (kloczko.tomasz@….com) on Jun 17, 2020 at 1:03 UTC (comment 1)

Putty "stty -a" output:

$ stty -a
speed 38400 baud; rows 63; columns 200; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O;
min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc

@mc-butler
Copy link
Author

Changed by kloczek (kloczko.tomasz@….com) on Jun 17, 2020 at 1:14 UTC (comment 2)

gnome-terminal "stty -a" output:

$ stty -a
speed 38400 baud; rows 55; columns 238; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Jun 17, 2020 at 5:47 UTC (comment 3)

  • Component changed from mc-core to mc-tty

@mc-butler
Copy link
Author

Changed by kloczek (kloczko.tomasz@….com) on Jun 17, 2020 at 9:24 UTC (comment 4)

It is yet another strange effect when mc with ncurses is used with windows putty.
Every ctrl-o or command execution emits bell.

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Feb 4, 2021 at 13:40 UTC (comment 5)

  • Description edited

@mc-butler
Copy link
Author

Changed by ossi (@ossilator) on Aug 15, 2023 at 9:00 UTC (comment 6)

and then there is #4144.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tty Interaction with the terminal, screen libraries prio: medium Has the potential to affect progress
Development

No branches or pull requests

1 participant