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.5k stars 570 forks source link

Add hotkey for terminal input modes - Xterm vs Windows #2544

Open asuiu opened 9 months ago

asuiu commented 9 months ago

Problem statement:

Reproduction: Problem impact:

Adding an keyboard shortcut will resolve the problem.

Versions

ConEmu build: 230724 x64 OS version: Windows 11 x64 Used shell version (cmd)

Problem description

The ConEmu console is switched to Xterm input mode when running a ssh client in the console, without user consent, even if console was started explicitly in Windows terminal input mode.

In context of running far2l (Far under Linux) on a remote host through SSH - using far2l becomes impossible because it's incompatible with Xterm input mode, so the console needs manually be switched to windows, and the only way to do it now is by mouse, which is inefficient.

Steps to reproduce

  1. in Windows cmd console, check the terminal input mode - by default it's Windows.
  2. Start a ssh to a remote host in this console, and the terminal input mode will switch automatically to Xterm

Actual results

The input mode is switched to Xterm

Expected results

If the -new_console or -cur_console switch was used to explicitly set the pty mode to Windows, i.e. p0, then don't change it during the session.

Additional files