-
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
[patch] Fix #silent macro runs #4171
Comments
|
We have ESC_STR. |
|
I've removed the screen clearing as it looks even better without it. Thanks for info about ESC_STR. |
Perhaps, it should be made not for editor only.
index 1fecbeaac..8aecb1b8b 100644
|
Yes, and the patch almost works – it only needs a clr_scr(); repaint_screen() calls after the raw mode restoration, because otherwise the screen remains as the external command left it. I attach a tested patch. |
The mccore-wide version of the patch. |
|
|
Important
This issue was migrated from Trac:
psprint
(sg44567@….com)subshell
,background
,commands
,macros
Hi,
mc has a functionality of skipping the subshell when running a macro script – by prepending the macro with a "#silent" line, e.g.:
This will make the script to be run without the subshell use. However, it's fairly broken currently – the screen will be disrupted – \r and \n codes will not work properly and will not make the caret return to the first column. This is probably also broken also for a non #silent background command runs, however I don't have the opportunity to test it as my subshell support segfaults for some reason.
The patch fixes this problem. It restores the pre-slang/pre-curses terminal state and clears the terminal before running the command, then sets the after-slang/curses terminal configuration.
Note
Original attachments:
psprint
(sg44567@….com) onJan 11, 2021 at 7:09 UTC
psprint
(sg44567@….com) onJan 12, 2021 at 6:15 UTC
psprint
(sg44567@….com) onJan 12, 2021 at 12:40 UTC
The text was updated successfully, but these errors were encountered: