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.57k stars 573 forks source link

Powershell split switches for -new_console not working #2443

Open ta32 opened 2 years ago

ta32 commented 2 years ago

Versions

ConEmu build: 220418 64 OS version: Windows 10 x64 Used shell version: PowerShell 7.2.3 $PSNativeCommandArgumentPassing=Standard

Problem description

sub switches dont work in powershell eg

ConEmuC.exe -c pwsh.exe -NoExit -new_console:t:"test":P:"<Twilight>" result in a window called test:P:<Twlight>

running the same command in cmd prompt a powershell terminal called test is created with the Twilight color scheme ( correct behavior )

To verify if its a powershell issue I performed the following test in PowerShell and Cmd:

testecho ConEmuC.exe -c pwsh.exe -NoExit -new_console:t:"test":P:"<Twilight>"
> ConEmuC.exe -c pwsh.exe -NoExit -new_console:t:test:P:<Twilight>

Same result in cmd prompt. Note: testecho is just the GnuWin32 echo executable renamed to avoid conflicting with the powershell echo alias

Steps to reproduce

  1. run ConEmuC.exe -c pwsh.exe -NoExit -new_console:t:"test":P:"<Twilight>" in powershell
  2. run pwsh -new_console:t:"test":P:"<Twilight>" in powershell ( also doesn't work )

Actual results

powershell terminal is created called: test:P<Twilight>

Expected results

powershell terminal is created called: test with color scheme Twilight

Additional files

Settings, screenshots, logs, etc.

ta32 commented 2 years ago

You can create new consoles by doing:

pwsh -new_console:t:"test":P:"<Twilight>"

pwsh.exe -new_console:P:"<Twilight>" works from a powershell terminal

Rotznase commented 2 years ago

I have the same issue with Git-Bash.

bash -new_console:t:"TabTitle":d:"directory"

This results in a new tab with name TabTitle:d:directory.

ConEmu 220418 [64] OS version: Windows 10 Pro x64 Bash: 4.4.23(1)-release (x86_64-pc-msys) Git: 2.31.1

Edit: It works if I enter bash -new_console:t:"TabTitle":d:"directory" into the settings dialog. It does not work if I enter the line in a running bash. Perhaps the last one is not intended.

tlourey commented 1 week ago

You can create new consoles by doing:

pwsh -new_console:t:"test":P:"<Twilight>"

pwsh.exe -new_console:P:"<Twilight>" works from a powershell terminal

This doesn't seem to work for Windows Powershell 5.1, only Powershell 6 & 7 (pwsh)