-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
has a '%' in the top left, and themes has bugs in v3.0. #3586
Comments
Same here, version: Hyper 3.0.0 (stable) |
This appears to be a regression since it was fixed in v2: #2144 (comment). |
Yes, I experience the same issue |
A |
I've tinkered a bit more and it seems the culprit is that a
And the only event in
I don't know what any of this means but I hope it's helpful to you. |
Same issue here on 3.0 on Mac. |
+1 |
This solution fixed it for me. |
Same issue on Hyper 3.0.2, only in the first tab of each new window. |
Can you explain why you might want to keep this? |
It's useful for being able to see if output ends with a new line whilst keeping a consistent feel / appearance to the prompt. In instances where there is no new line, the prompt will continue from the end of the previous output without a line break. |
Please try a CI canary build |
That looks like an issue with your oh-my-zsh and not with hyper. looks like your font is missing a symbol or so? |
fix it after add : |
This was present after a clean install of Catalina on my Hyper as well (as Catalina changed the default shell) and I had to use @CsarGomez fix above to remove it. |
This is not a problem with oh-my-zsh or missing symbols, so I think this issue shouldn't have been closed. It occurs because hyper doesn't deal with zsh's option to preserve partial lines correctly ( This wasn't the case in Using Other terminal emulators I've tried so far on both macOS and Arch Linux (iTerm 2, Alacritty, kitty, Xfce Terminal) don't seem to suffer from this problem when using the same zsh settings. |
@Tyriar is that a xterm problem? |
The strange thing is that it only happens on the first tab, when I open a new tab it works. |
|
I've just tested version 3.1.0-canary.1 on macOS and it works fine. |
The problem is that Hyper incorrectly reports terminal size for some short time after the tty is created. Try adding this at the very top of typeset LINES COLUMNS
sleep 1
typeset LINES COLUMNS Here's what I get:
My real terminal width is 75 but Hyper says 100 for a short while. If my
If this sequence is printed when the cursor is at the very first column, it will simply clear the current line. If the cursor is not on the first column, it'll append Now let's see what happens when the terminal says it's 100 columns wide when it's actually only 75 columns wide. Instead of printing To see this in action, add this at the top of PROMPT'>>>'
RPROMPT='<<<'
return Note: That pesky percent and mangled prompt. This is not a bug in zsh. If you replace I don't know much about Hyper but does it perchance use VTE? There is a VTE bug that causes very similar issues for all terminals that use it. See gnunn1/tilix#1777. (Hyper doesn't export
If this is indeed a VTE bug, then it makes sense that you wouldn't see it on macOS. VTE is GNU, a part of GNOME.
Which OS? I can reproduce it on Linux with VTE version 5605 and Hyper 3.0.2. Edit: I think Hyper doesn't use VTE, so it's an unrelated bug. I've also reproduced this problem on macOS with Hyper 3.0.2. |
Zsh users affected by this bug can mitigate it by installing powerlevel10k theme and enabling instant prompt through |
The bug in Hyper (vercel/hyper#3586) is similar to the one in VTE but it takes Hyper at least 100 times longer to report correct TTY (Hyper is slow in general, so this isn't surprising.)
I tried to add this to the top of While opening a new tab in the same window, the size is correctly reported and the autocompletion works as expected. Then I tried the As you can see, the window size is correctly reported and in fact the But when I use auto-completion (which in this version is rendered well), the command, in this case Apparently in the canary the problem of the |
add |
This is a bad idea. Consider:
Note that the output of It's a really bad idea to unset |
Go inside the .zshrc file at the top you'll find:
That's what worked for me |
I'm using https://github.com/fish-shell/fish-shell, |
Issue
The text was updated successfully, but these errors were encountered: