Closed S0nG0ku0 closed 1 month ago
Hi! I might be wrong, and not fully understand your problem, but I think it's more related to terminal itself not the shell.
Function like zoom in and out, are handled by terminal. I tested this behavior on Alacritty, Gnome terminal, and kitty, using different shells, oh my zsh, bash, sh and the results are the same. I didn't get corrupted terminal only zoomed one.
Maybe it's something wrong with your term?
I also use Zsh on Kitty, and it gives me the same behavior as if I ran top and pressed Enter (CTRL + \) to quit top. It looks like this after run ls -la:
Hmm very weird, I reproduced your steps and got normal output
That is completely normal, and it's due to how terminals render characters. If you resize, the characters' sizes no longer fit and appear messed up. It is not due to Oh My Zsh at all.
Describe the bug
When running the top command in the Zsh terminal and subsequently pressing Ctrl + \ (which sends a quit signal to the running process), the terminal display becomes garbled. Specifically, after pressing Ctrl + .
Steps to reproduce
Expected behavior
Pressing Ctrl + \ should terminate the top command cleanly and return the terminal to its normal state without displaying corrupted or unrelated content.
Screenshots and recordings
No response
OS / Linux distribution
macOS Catalina 10.15.7
Zsh version
5.7.1
Oh My Zsh version
master (d6f84f3)
Terminal emulator
iTerm2
If using WSL on Windows, which version of WSL
None
Additional context