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.55k stars 571 forks source link

Third party apps are renderd higher than expected #1842

Open rustyscottweber opened 5 years ago

rustyscottweber commented 5 years ago

Versions

ConEmu build: x64 190303 Preview OS version: Windows 10 x64 Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): ??? Cygwin, minnty for windows WSL.

Problem description

Rendering of the screen is shifted up such that the top of the rendered screen is too high up making it impossible to see or read the text in the window manager. See: https://1drv.ms/u/s!AqeEi3P_II50g21G_l_GP89PzP97

It can be plainly seen that the top line of text is cut off. Also, you can see the highlighted area which shows the active area of the window.

Steps to reproduce

  1. Install mintty
  2. Set start up action or name a task as "mintty.exe --WSL= --configdir="%USERPROFILE%\AppData\Roaming\wsltty" -~ "
  3. Run task.

Actual results

Screen is shifted up and cut off on the top leaving extra space on the bottom

Expected results

3rd party apps, while 2nd priority, should at least fit on the screen.

Additional files

Settings, [screenshots]https://1drv.ms/u/s!AqeEi3P_II50g21G_l_GP89PzP97),

Not sure how useful logs are here.

Maximus5 commented 5 years ago

I do not observe the problem neither with with standard settings nor with yours ConEmu_settings_rendering_error.xml: 2019-03-06_00-41-54

But I do use mintty, not a wsltty. And I run the following:

ConEmu64.exe -basic -runlist C:\cygwin64\bin\mintty.exe - ||| C:\cygwin64\bin\mintty.exe - -new_console:sV

So, the problem is either with wsltty, or mintty settings (try it with clean profile), or your display settings (scaling), or anything else (like enabled compatibility mode for ConEmu).

rustyscottweber commented 5 years ago

This is strange since WSLTTY is MINTTY. The only difference is that it's running the windows linux subsystem's bash instead of cygwin's bash. At first glance, you seemed to be correct in that it is only WSLTTY that is affected. Even I was fooled for a minute or two. However, upon further analysis, I've noticed the following subtle difference. Cygwin's mintty puts a small blank space at the top of the screen while WSLTTY does not. Essentially, what is happening here is that the extra space at the top of a new terminal window in cygwin's mintty is masking the fact that the third party app is being rendered higher than it should be. image image image

rustyscottweber commented 5 years ago

I can also note that the latest stable 161206 version does not have the same issue and renders the WSLTTY terminal correctly.

rustyscottweber commented 5 years ago

Here is another photo of the issue. When highlighted, you can clearly see that there is a new line above the prompt. This is with a fresh profile. I've wiped conemu from my machine and conducted a fresh install. With the exception of the modified task for WSLTTY and MINTTY, the configs are stock. image It would appear that this extra space is just a new line character since it can be highlighted. Can you check your minnty terminal for a new line character before the first prompt? This still doesn't eliminate some other windows setting.

rustyscottweber commented 5 years ago

Here is a render of my minnty using the last stable build 161206 (Not the Latest build). image You can clearly see that there is not cut off white space at the top of the screen.

Maximus5 commented 5 years ago

Three years old build was not compiled for High-Dpi monitors.

It need text from About / SysInfo

rustyscottweber commented 5 years ago
ConEmu 161206 [64] Startup Info
  OsVer: 10.0.17134.x64, Product: 1, SP: 0.0, Suite: 0x100, SM_SERVERR2: 0
  CSDVersion: , ReactOS: 0 (), Rsrv: 0
  DBCS: 0, WINE: 0, PE: 0, Remote: 0, ACP: 1252, OEMCP: 437, Admin: 1
  StartTime: 2019-03-26 23:08:41.272
  AppID: 49922b4d6ae2ce22bcf871b666573d5f::162
  Desktop: `Winsta0\Default`, SessionId: 2, ConsoleSessionId: 2
  Title: `C:\Users\RWeber.OSS\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\ConEmu (x64).lnk`
  Size: {0,0},{0,0}
  Flags: 0x00000C01, ShowWindow: 1, ConHWnd: 0x00000000
  char: 1, short: 2, int: 4, long: 4, u64: 8
  Handles: 0x00000000, 0x00030091, 0x00000000
  Current PID: 24356, TID: 17944
  Active HKL: 0x0000000004090409
  GetKeyboardLayoutList: 0x0000000004090409
CmdLine: "C:\Program Files\ConEmu\ConEmu64.exe" -log4
ExecMod: C:\Program Files\ConEmu\ConEmu64.exe
WorkDir: C:\Program Files\ConEmu
PathEnv: C:\Program Files\Python37\Scripts\;C:\Program Files\Python37\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Java\jdk1.8.0_162\\bin\;c:\program files (x86)\intel\icls client\;c:\program files\intel\icls client\;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files (x86)\intel\intel(r) management engine components\dal;c:\program files\intel\intel(r) management engine components\dal;c:\program files (x86)\intel\intel(r) management engine components\ipt;c:\program files\intel\intel(r) management engine components\ipt;c:\program files\putty\;c:\program files\openvpn\bin;c:\program files (x86)\windows kits\10\windows performance toolkit\;c:\hashicorp\vagrant\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\PROGRA~2\Groovy\GROOVY~1.15\bin;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\Sequencer\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\RWeber.OSS\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Nmap;C:\Program Files\IPMI_Tool;C:\Program Files\JetBrains\IntelliJ IDEA 2018.1.4\bin\;C:\Users\RWeber.OSS\AppData\Roaming\npm;
ConFont: 0  Lucida Console  00  Consolas
CMD's AutoRuns: {not defined}
Foreground: x00080192 {1911,-9}-{3849,1049} 'VirtualConsoleClass' - RWeber@OSSLT44: ~ (Admin)
MouseCursor: {2353,459} MouseMonitor: 00040091 StartMonitor: 00000000
Display: bpp=32, planes=1, align=1, vrefr=60, shade=x00000000, rast=x00007E99, dpi=120x120, per-mon-dpi=1
Monitors (dpi: WholeDesktop, Effective, Angular, RAW):
  00030091: {0,0}-{1920,1080} (1920x1080), Working: {0,0}-{1920,1030} (1920x1030), dpi: {120,120};{120,120};{123,123};{141,141} `\\.\DISPLAY1` <<== Primary
Modules:
  00007FF62FA00000-00007FF62FC8DFFF   28E000 C:\Program Files\ConEmu\ConEmu64.exe
  00007FFBCC370000-00007FFBCC550FFF   1E1000 C:\WINDOWS\SYSTEM32\ntdll.dll
  00007FFBC9DF0000-00007FFBC9EA1FFF    B2000 C:\WINDOWS\System32\KERNEL32.DLL
  00007FFBC9580000-00007FFBC97F2FFF   273000 C:\WINDOWS\System32\KERNELBASE.dll
  00007FFBCA290000-00007FFBCA41FFFF   190000 C:\WINDOWS\System32\USER32.dll
  00007FFBC9560000-00007FFBC957FFFF    20000 C:\WINDOWS\System32\win32u.dll
  00007FFBCA670000-00007FFBCA697FFF    28000 C:\WINDOWS\System32\GDI32.dll
  00007FFBC9190000-00007FFBC9321FFF   192000 C:\WINDOWS\System32\gdi32full.dll
  00007FFBC8790000-00007FFBC882EFFF    9F000 C:\WINDOWS\System32\msvcp_win.dll
  00007FFBC93B0000-00007FFBC94A7FFF    F8000 C:\WINDOWS\System32\ucrtbase.dll
  00007FFBCA8C0000-00007FFBCA960FFF    A1000 C:\WINDOWS\System32\ADVAPI32.dll
  00007FFBCA9D0000-00007FFBCAA6DFFF    9E000 C:\WINDOWS\System32\msvcrt.dll
  00007FFBC9EB0000-00007FFBC9F0AFFF    5B000 C:\WINDOWS\System32\sechost.dll
  00007FFBC9F10000-00007FFBCA033FFF   124000 C:\WINDOWS\System32\RPCRT4.dll
  00007FFBCAEF0000-00007FFBCC32FFFF  1440000 C:\WINDOWS\System32\SHELL32.dll
  00007FFBC8740000-00007FFBC8788FFF    49000 C:\WINDOWS\System32\cfgmgr32.dll
  00007FFBCA810000-00007FFBCA8B8FFF    A9000 C:\WINDOWS\System32\shcore.dll
  00007FFBCAA70000-00007FFBCAD91FFF   322000 C:\WINDOWS\System32\combase.dll
  00007FFBC9330000-00007FFBC93A9FFF    7A000 C:\WINDOWS\System32\bcryptPrimitives.dll
  00007FFBC8830000-00007FFBC8F3CFFF   70D000 C:\WINDOWS\System32\windows.storage.dll
  00007FFBCA970000-00007FFBCA9C0FFF    51000 C:\WINDOWS\System32\shlwapi.dll
  00007FFBC86F0000-00007FFBC8700FFF    11000 C:\WINDOWS\System32\kernel.appcore.dll
  00007FFBC86D0000-00007FFBC86EEFFF    1F000 C:\WINDOWS\System32\profapi.dll
  00007FFBC8680000-00007FFBC86CBFFF    4C000 C:\WINDOWS\System32\powrprof.dll
  00007FFBC8710000-00007FFBC8719FFF     A000 C:\WINDOWS\System32\FLTLIB.DLL
  00007FFBC9800000-00007FFBC98ECFFF    ED000 C:\WINDOWS\System32\COMDLG32.dll
  00007FFBBC100000-00007FFBBC109FFF     A000 C:\WINDOWS\SYSTEM32\VERSION.dll
  00007FFBCA6B0000-00007FFBCA800FFF   151000 C:\WINDOWS\System32\ole32.dll
  00007FFBB5E50000-00007FFBB60B8FFF   269000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.17134.648_none_fb45a0e93062a6d2\COMCTL32.dll
  00007FFBCAE20000-00007FFBCAEE2FFF    C3000 C:\WINDOWS\System32\OLEAUT32.dll
  00007FFBC44E0000-00007FFBC4502FFF    23000 C:\WINDOWS\SYSTEM32\WINMM.dll
  00007FFBC44B0000-00007FFBC44D9FFF    2A000 C:\WINDOWS\SYSTEM32\winmmbase.dll
  00007FFBB4540000-00007FFBB4556FFF    17000 C:\WINDOWS\SYSTEM32\NETAPI32.dll
  00007FFBBFB00000-00007FFBBFB17FFF    18000 C:\WINDOWS\SYSTEM32\SAMCLI.DLL
  00007FFBC7D80000-00007FFBC7D8DFFF     E000 C:\WINDOWS\SYSTEM32\NETUTILS.DLL
  00007FFBCA0A0000-00007FFBCA0CCFFF    2D000 C:\WINDOWS\System32\IMM32.DLL
  00007FFBC5380000-00007FFBC5417FFF    98000 C:\WINDOWS\system32\uxtheme.dll
  00007FFBC5610000-00007FFBC5638FFF    29000 C:\WINDOWS\SYSTEM32\dwmapi.dll
  00007FFBC98F0000-00007FFBC998FFFF    A0000 C:\WINDOWS\System32\clbcatq.dll
  00007FFB877F0000-00007FFB87A23FFF   234000 C:\WINDOWS\System32\msxml3.dll
  00007FFBC81E0000-00007FFBC8204FFF    25000 C:\WINDOWS\System32\bcrypt.dll
  00007FFBCA490000-00007FFBCA602FFF   173000 C:\WINDOWS\System32\MSCTF.dll
  00007FFB999A0000-00007FFB99E34FFF   495000 C:\WINDOWS\system32\explorerframe.dll
  00007FFBC5A40000-00007FFBC5A52FFF    13000 C:\WINDOWS\SYSTEM32\Wtsapi32.dll
  00007FFBC7810000-00007FFBC7865FFF    56000 C:\WINDOWS\SYSTEM32\WINSTA.dll
  0000000054610000-000000005471CFFF   10D000 C:\Program Files\ConEmu\ConEmu\ConEmuCD64.dll
  00007FFBB75C0000-00007FFBB7655FFF    96000 C:\WINDOWS\System32\TextInputFramework.dll
  00007FFBC22F0000-00007FFBC260DFFF   31E000 C:\WINDOWS\System32\CoreUIComponents.dll
  00007FFBC4EE0000-00007FFBC4FB9FFF    DA000 C:\WINDOWS\System32\CoreMessaging.dll
  00007FFBC76E0000-00007FFBC7710FFF    31000 C:\WINDOWS\SYSTEM32\ntmarta.dll
  00007FFBC3700000-00007FFBC384CFFF   14D000 C:\WINDOWS\SYSTEM32\wintypes.dll
  00007FFBA3B00000-00007FFBA3B57FFF    58000 C:\WINDOWS\system32\dataexchange.dll
  00007FFBC65D0000-00007FFBC68DAFFF   30B000 C:\WINDOWS\system32\d3d11.dll
  00007FFBC4A00000-00007FFBC4B9BFFF   19C000 C:\WINDOWS\system32\dcomp.dll
  00007FFBC7500000-00007FFBC75BAFFF    BB000 C:\WINDOWS\system32\dxgi.dll
  00007FFBC5750000-00007FFBC5907FFF   1B8000 C:\WINDOWS\system32\twinapi.appcore.dll
  00007FFBC56F0000-00007FFBC5718FFF    29000 C:\WINDOWS\system32\RMCLIENT.dll
  00007FFBC2940000-00007FFBC2AEDFFF   1AE000 C:\WINDOWS\SYSTEM32\WindowsCodecs.dll
  00007FFBC85B0000-00007FFBC85DFFFF    30000 C:\WINDOWS\SYSTEM32\SspiCli.dll
Maximus5 commented 5 years ago

As I said, three years old build was not compiled for High-Dpi monitors.

Do you complain on that old build? I think you don't

rustyscottweber commented 5 years ago

Oh.. I thought you were asking for about/sysinfo.. Are you asking for about/sysinfo with the latest build? or are you asking if I am complaining about the 3 year old build? To answer the latter, no. I am not. I was merely providing information about what works and what doesn't. The 3 year old build seems to function while the latest build seems to shift 3rd party applications up by an unspecified number of pixels.