incorrect initial terminal size
Author: jolly-exeCreated May 7, 2026Updated May 7, 2026
Labelsbug
Describe the bug the terminal size seems to be incorrect when first opening the site, tho it gets fixed after resizing the window
To Reproduce
- open the ttyd web page
- terminal size is wrong on the first load
- resizing the browser window causes it to fix itself
Expected behavior the size of the terminal should initially match the window size
Screenshots/Screencasts https://files.catbox.moe/t94f3h.mp4
Environment:
- OS: Arch Linux x86_64 Linux 6.19.11-arch1-1
- Browser: Chromium 147.0.7727.55
Additional context i don't think the os/browser really matter here, i've experienced it basically everywhere i've used ttyd so far
Source: tsl0922/ttyd