Maximus5 / conemu-old-issues

Old issues imported from googlecode. Project was moved to
https://conemu.github.io
6 stars 1 forks source link

View Console Output: Does not Support FAR Intrinsic Commands #1968

Closed Maximus5 closed 4 years ago

Maximus5 commented 9 years ago

Originally reported on Google Code with ID 1971

OS version: Win 8.1 x64
ConEmu version: 150420 x64
Far version: 3.0 4242 x64

*Bug description*
Console output from commands which FAR executes on its own won't get into View Console
Output.
The simplest example is "SET" which dumps all env vars of the FAR process.
See also issue 1071 (https://code.google.com/p/conemu-maximus5/issues/detail?id=1071),
I think it's the same stuff.

*Steps to reproduction*
1. Execute SET console command in FAR.
2. Ctrl+O for View Console Output to see its output.
3. Empty screen (or prev command content) instead of the SET command output.

Reported by baltic@hypersw.net on 2015-04-26 01:57:55

Maximus5 commented 9 years ago
When Far executes "set" internally, ConEmu do not get control over command start/end,
because there are not commands at all.
So, if you want to see them in "View Console Output" you have to set up them in Far
to be called via CMD.EXE

Reported by ConEmu.Maximus5 on 2015-04-26 21:51:28

Maximus5 commented 9 years ago
… in which case you won't be able to affect FAR environment variables with these commands,
'cause they'll be modifying a child process instead.

Yep they're not spawning a child console process. But any chance maybe to capture the
output from FAR process console itself?

Reported by baltic@hypersw.net on 2015-04-26 23:19:02

Maximus5 commented 9 years ago
> you won't be able to affect FAR environment variables with these commands

Not exactly true - http://conemu.github.io/en/ConEmuEnvironment.html#Export_variables
Yep, it's not so handy but powerful. I'm using this for setting up build environment.

More. Do you really need to view output of "set aaa=bbb"? I doubt. And there are different
ways to pass "set aaa" to cmd.exe (macros, or just "cmd /c set ...").

> But any chance maybe to capture the output from FAR process console itself?

Don't want to implement hacks unless Far team provide API for that.
Look, issue is not closed yet, there are chances.

Reported by ConEmu.Maximus5 on 2015-04-26 23:27:17

Maximus5 commented 9 years ago
At last. Why do you want to see "View Console Output"? To get handy view of "SET" command?
There is a really easy way via Macro.

Macro {
  area="Shell";
  key="AltF4";
  description="Execute CmdLine and redirect output to Editor";
  flags="NotEmptyCommandLine";
action = function()
  Keys("CtrlHome") print("edit:<") Keys("Enter")
end;
}

Reported by ConEmu.Maximus5 on 2015-04-26 23:28:58

Maximus5 commented 9 years ago

Reported by ConEmu.Maximus5 on 2015-04-26 23:29:07