-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Question: Is there a way to get the output of the last command? #2950
Comments
You mean like a command alias?
|
Hi! Either way would be fine, because I don't know how it could be achieved. λ echo hey
hey
λ <command/shortcut to resend the last console output>
hey |
What do you mean by "resend the last output"? Resend it where, how? You can scroll up to view it, so you must be asking about something other than viewing the output that's on the screen. Also, the output is from other console mode programs launched from inside ConEmu/Cmder. The output is not actually from ConEmu/Cmder. (Or are you asking how to access command history and rerun a command? But the command may produce different output the next time, so that wouldn't "resend the last output".) |
@Perverance is it possible to append something like: Then you can do Alternatively, we need a shell that would capture the output of every command that is run, the have something like show last output command to retireve it. A bit unfeasible, but perfectly doable nonetheless. |
A shell can't capture output without using redirection, and redirection alters how programs operate. "Always-on output capture" is something that would have to be provided by the terminal itself, otherwise it would create compatibility problems in programs. |
Question
I know this might be a silly question, but, is there a way to achieve the following?
Where
shortcut_or_command
would be what I'm looking for, a way to retrieve the last output (not the last exit code, just the last output).I found a shortcut named "Show alternative console buffer (last command output)", but I don't know what it does.
Thanks!
Checklist
The text was updated successfully, but these errors were encountered: