-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminal size is not respected with profile with ssh. #1708
Comments
Hi @kierun, thanks for the bug report, it might be that ssh served changes the size of the terminal on connection, can you please provide the output of the contour from following debug flags: |
@Yaraslaut here goes: √ ; contour debug "pty,vt.grid" profile anduril
zsh: correct 'profile' to '.profile' [nyae]? n
[2025-01-16 08:53:43.709337] [vt.grid] resize 120x24 -> 80x24 (cursor (23, 0))
[2025-01-16 08:53:43.709405] [vt.grid] resize 120x1 -> 80x1 (cursor (0, 0))
[2025-01-16 08:53:43.709415] [vt.grid] resize 120x1 -> 80x1 (cursor (0, 0))
[2025-01-16 08:53:43.871188] [vt.grid] resize 80x24 -> 86x25 (cursor (23, 4))
[2025-01-16 08:53:43.871576] [vt.grid] resize 80x1 -> 86x1 (cursor (0, 0))
[2025-01-16 08:53:43.871585] [vt.grid] resize 80x1 -> 86x1 (cursor (0, 0)) Well, look at that first line… 😡 So, next question: is there a way to stop this from happening? If I use the |
Sorry for the late reply @kierun, I will try to repro this and update on what we can do |
Hm, i can not reproduce this behaviour @kierun, here is my output when I connect to the remote server
maybe you can also add |
@Yaraslaut Ah, that's annoying that you cannot reproduce it. Therefore, the problem is something in my settings… Dammit. Here's the output, still the same behaviour. √ ; contour profile anduril debug "vt.grid,ssh"
zsh: correct 'profile' to '.profile' [nyae]? n
[2025-01-27 09:27:29.498658] [ssh] Starting SSH session to host: yann@anduril
[2025-01-27 09:27:29.498686] [ssh] (contour) State transition from Initial to Started.
[2025-01-27 09:27:29.498696] [ssh] (contour) State transition from Started to Connect.
[2025-01-27 09:27:29.512210] [ssh] Connected to anduril (151.236.219.169)
[2025-01-27 09:27:29.512230] [ssh] (contour) State transition from Connect to Handshake.
[2025-01-27 09:27:29.627419] [ssh] (contour) State transition from Handshake to VerifyHostKey.
[2025-01-27 09:27:29.627449] [ssh] Skipping host key verification, because no known_hosts file was specified.
[2025-01-27 09:27:29.627465] [ssh] (contour) State transition from VerifyHostKey to AuthenticateAgent.
[2025-01-27 09:27:29.670271] [ssh] Successfully authenticated with SSH agent with identity: [email protected]
[2025-01-27 09:27:29.670305] [ssh] (contour) State transition from AuthenticateAgent to OpenChannel.
[2025-01-27 09:27:30.313584] [ssh] (contour) State transition from OpenChannel to RequestAuthAgent.
[2025-01-27 09:27:30.313672] [ssh] (contour) State transition from RequestAuthAgent to RequestPty.
[2025-01-27 09:27:30.328497] [ssh] (contour) State transition from RequestPty to SetEnv.
[2025-01-27 09:27:30.328524] [ssh] (contour) State transition from SetEnv to StartShell.
[2025-01-27 09:27:30.343100] [ssh] (contour) State transition from StartShell to Operational.
[2025-01-27 09:27:30.435074] [vt.grid] resize 120x24 -> 80x24 (cursor (23, 0))
[2025-01-27 09:27:30.435137] [vt.grid] resize 120x1 -> 80x1 (cursor (0, 0))
[2025-01-27 09:27:30.435146] [vt.grid] resize 120x1 -> 80x1 (cursor (0, 0))
[2025-01-27 09:27:30.435156] [ssh] (contour) Resizing PTY to 80x24.
[2025-01-27 09:27:30.435164] [ssh] (contour) State transition from Operational to ResizeScreen.
[2025-01-27 09:27:30.435213] [ssh] (contour) State transition from ResizeScreen to Operational.
[2025-01-27 09:27:30.568798] [vt.grid] resize 80x24 -> 86x25 (cursor (23, 4))
[2025-01-27 09:27:30.569425] [vt.grid] resize 80x1 -> 86x1 (cursor (0, 0))
[2025-01-27 09:27:30.569443] [vt.grid] resize 80x1 -> 86x1 (cursor (0, 0))
[2025-01-27 09:27:30.569458] [ssh] (QSGRenderThread) Resizing PTY to 86x25.
[2025-01-27 09:27:30.569475] [ssh] (QSGRenderThread) State transition from Operational to ResizeScreen.
[2025-01-27 09:27:30.569578] [ssh] (QSGRenderThread) State transition from ResizeScreen to Operational.
I guess this is where the behaviour happens. But, why? What crazy feature do I have that does that? 🤔 |
Thanks for the update, @kierun. I can reproduce this issue if I explicitly add a resize VT sequence to the |
😱 Well, that's odd… I tried commenting out @Yaraslaut Thank you for your help so far. If you feel this should be closed, please do. I'll try to figure it out and add a comment when (if?) I do. Of course, if you wished to help further, I would be grateful! |
You can try to check out system wide file |
Contour Terminal version
Contour Terminal Emulator 0.6.1
Installer source
something else (please specify below)
Operating System
Fedora 40
Architecture
x86-64
Other Software
OpenSSH_9.6p1, OpenSSL 3.2.2 4 Jun 2024 — I am pretty sure this is irrelevant, but ¯\_(ツ)_/¯
Steps to reproduce
contour profile foo
contour profile foo
Expected Behavior
The terminal should have a width of 120.
Actual Behavior
The terminal has a width of 80, the default.
Additional notes
No response
The text was updated successfully, but these errors were encountered: