Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.53k stars 572 forks source link

"Default term" - only confirm close on error #2375

Open mrx23dot opened 2 years ago

mrx23dot commented 2 years ago

I set "Default term" with "confirm close" to Automatic:

2021-09-23 10_36_59-Window

I would expect a bat file with no error return value not asking for confirmation (but it does):

echo hello

On the other hand when there was an error in a bat file I would expect a "wait for enter" so I can see the error text (not disappearing like in cmd.exe) python non_existing_file.py

So the automatic behavior could depend on %errorlevel% Just to add a minimal convenience handling batch files.

varsions Win10 latest release of conemu (version missing from About window) default config

Maximus5 commented 2 years ago

That is expected behavior for automatic.

The confirmation is shown if the application was not in interactive mode to allow the user to see the output. That is the intention of the "Automatic" mode.

mrx23dot commented 2 years ago

Good to hear, what I have noticed it doesn't work for no-error return values.

  1. Set mode to Automatic
  2. Create a bat file with:
  3. echo ok
  4. double click it,
  5. runs, but conemu still waits for "Press Enter or Esc to exit..."
mrx23dot commented 2 years ago

Another weirdness