<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace;font-size:small;color:rgb(0,0,0)">> I agree. What I did was check "Never" on "Pause after run"<br>
and put reads in the menu/ext file<br><br></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small;color:rgb(0,0,0)">Oho, that's *very* clever, thank you!<br> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 29, 2015 at 10:14 AM, Mike Smithson <span dir="ltr"><<a href="mailto:mdooligan@gmail.com" target="_blank">mdooligan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I agree. What I did was check "Never" on "Pause after run"<br>
and put reads in the menu/ext files where I knew I would<br>
want the pause. Something like this:<br>
<br>
+ t r & ! t t<br>
@       Do something on the current file<br>
                CMD=%{Enter command}<br>
                $CMD ./%0f<br>
                read -e -n1 -p'Hit a key... '<br>
<br>
Otherwise, if I'm going to type a command that I want to see<br>
the output, like "make", I hit CTRL-O right before I type to go<br>
into terminal mode.<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
On Sun, 29 Mar 2015 08:12:12 -0700, Ben <<a href="mailto:2blkbelt@nemontel.net" target="_blank">2blkbelt@nemontel.net</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
MC has three config options for what to do after executing files by<br>
pressing return with the selection on them:<br>
<br>
1 Close the shell every time, returning to MC<br>
2 Leave the window open every time, press return to... return<br>
3 Close the window only on "dumb" terminals (what?)<br>
<br>
Number one leaves you unable to see the output of a command. So you type ls<br>
and it's kind of useless. Or any other command or script that has output<br>
you need to see.<br>
<br>
Number two works for those things where you need to see output, but if you<br>
don't, and there are things you routinely execute that do good things for<br>
you that simply need to be done on command (like turning on house lights,<br>
my particular thang) then it eventually becomes a bit of annoyance that it<br>
doesn't just get done.<br>
<br>
Now, I may be missing something buried in that "dumb terminal option", but<br>
it seems to me that this would be a nice solution:<br>
<br>
You know how the F4 editor keeps track of what line you're on in which<br>
file? That's *lovely*.<br>
<br>
Well, how about modifying option two so that if you press return, it does<br>
what it always did, that is, close the shell and return. But if you press<br>
something else, perhaps ESC or whatever, from then on, when that command is<br>
run, the shell closes when the run is done.<br>
<br>
This implies you'd need an operation to remove the "close" status in case<br>
the cat stepped on the selected key at the wrong time, but that doesn't<br>
seem like a high hurdle, lots of room in the menus.<br>
<br>
Another approach would be an option to pause only if the command has output<br>
other than CR and LF, which doesn't require saving file names anywhere, but<br>
I think that might be a little unsatisfactory as if a command might create<br>
output or not, you might get a little uncertain if you saw what you thought<br>
you saw.<br>
<br>
Number three... I use the usual terminal types. Are they "dumb"? I have no<br>
idea. I don't see anything in the OS X shell preferences to variably<br>
designate the terminal as "dumb" or not based on what's executing, so I'm<br>
guessing this can't do what I'm thinking. Is it useful to anyone? If not,<br>
perhaps it could be the "pause only if command produces output" option<br>
instead.<br>
<br>
So, anyone? Feasibility problems? Good? Bad? Stupid? Selfish? Did I<br>
completely miss or misunderstand a feature?<br>
<br>
--Ben<br>
</blockquote>
<br>
<br>
<br></div></div><span class="HOEnZb"><font color="#888888">
-- <br>
Peace and Cheer<br>
</font></span></blockquote></div><br></div>