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

220308 <> 210912 issue with full-line-length #2429

Closed ClaudiuSchuster closed 2 years ago

ClaudiuSchuster commented 2 years ago

Hey!

Versions

ConEmu build: 220308 OS version: Windows 10/11 x64 Used shell version: PowerShell Core 7.2.2

Problem description

Printing whole-line length in PowerShell produce a new-line (empty line) in ConEmu 220308.

It seems like ConEmu is adding some extra new-line or so, strange behaviour while resizing the ConEmu window...

Steps to reproduce

  1. Define a powershell full-line-length print function like:
    function ColorWrite { [CmdletBinding()]param([Parameter(Mandatory, ValueFromPipeline)][string[]]$msg); PROCESS { Write-Host "`e[22;38;5;232;48;5;37m$_$(0..(((Get-Host).UI.RawUI.MaxWindowSize.width - $_.Length) -ge 0 ? ((Get-Host).UI.RawUI.MaxWindowSize.width - $_.Length) : ((Get-Host).UI.RawUI.MaxWindowSize.width - ($_.Length % (Get-Host).UI.RawUI.MaxWindowSize.width))) | ForEach-Object { '' })`e[0m" } }
  2. Print some whole-line-length lines with this function:
    "> Testing", "> ConEmuBuild '$($Env:ConEmuBuild)'", "> Foo", "> Bar" | ColorWrite

Actual results

image

Expected results

image

Additional Behaviours/Infos

Hopefully this will get fixed bevor this version will be merged to stable.

Cheers Claudiu

Maximus5 commented 2 years ago

https://conemu.github.io/blog/2022/04/18/Build-220418.html

ClaudiuSchuster commented 2 years ago

https://conemu.github.io/blog/2022/04/18/Build-220418.html

Thank's a lot for that fast fix! ConEmu is working now again lovely ❤️