-
Notifications
You must be signed in to change notification settings - Fork 3
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
Subshell don't save the output of the commands (ctrl+o clear the terminal) #2633
Comments
please try 4.8.0 |
|
The problem is that "ti" and "te" capabilities are missing in FreeBSD xterm (they are specified only for TERM=xterm-clear).
The "fix" is available here: http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/misc/mc/files/patch-lib-tty-win.c?rev=1.1;content-type=text%2Fplain |
The same problem exists in 4.8 branch. |
after update to freebsd 10-stable i have the same problem.
|
I want to bring this problem up, since it wasn't solved yet. |
Proposed patch |
@zmiter, as correctly identified by @FJoe:
So there are 3 possibilities: (1) FreeBSD fixes xterm, (2) FreeBSD carries a patch for mc, or (3) we integrate the patch and make sure it's active only on FreeBSD (Andrew has just proposed such a patch).
I think (3) sucks most, because we have to carry a kludge and if xterm is ever fixed on FreeBSD, most likely nobody will notice that, and this patch will remain in our code forever, degrading the experience on FreeBSD.
Can you talk to the BSD maintainers to see if there is any chance to get (1) done and what their opinion on (2) & (3) is? If they are happy to carry a distro-specific patch, maybe we should just leave it this way and close this as "wontfix". |
After some research I've understood the problem.
Some additional notes. There is one more terminal type called 'putty'. This terminal type support many of PyTTY features and so on. But this terminal type is not recognised by mc as valid xterm or console.
Another note. Terminal type 'xterm-256color' makes it's possible to use 256-color themes from mc in PuTTY console.
The last note. According to win.c in the following function we can see the mode change for saving screen.
But the strange thing for me is that the real sequence smcup for the terminal running mc is never sent. Instead of it mc sends the predefined sequence, which in general may not match the termcap 'te' capability. |
One more question. Is there any difference in treating by mc different xterms? So, 'xterm', 'xterm-clear', 'xterm-256color', 'xterm-some-other', will their keybindings be treated different? |
Replying to Zmiter:
|
Replying to andrew_b:
Thank you very much for your advice, everything works as expected now. |
On FreeBSD 11 there is another location of mc.lib: /usr/local/share/mc/mc.lib
After its editing everything works fine! Thanks a lot! |
Ship xterm-clear with mclib. |
So what a fun story:
|
|
|
Important
This issue was migrated from Trac:
passat
(ps@….net)woodsb02
(woodsb02@….com)FreeBSD 8.2-STABLE amd64
# cd /usr/ports/misc/mc
# make && make install && make clean
# rehash
# mc -V
GNU Midnight Commander 4.7.5.5
Built with GLib 2.28.8
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish, smbfs
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;
Ctrl+O don't save the output of the commands in the terminal.
But in the GNU Midnight Commander 4.7.5 version it all is ok!
Note
Original attachments:
andrew_b
(@aborodin) onMar 17, 2016 at 10:16 UTC
The text was updated successfully, but these errors were encountered: