-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Tab characters are not output, at least for copying #219
Comments
Adding tab characters to the Grid as an actual tab - rather than a space - followed by spacer characters. The spacer characters have the WIDE_CHAR_SPACER flag so the selection code will *not* pass them to the clipboard
This is working for me on Arch Linux running the AUR package version |
Still not working for me as of 59b561b. I check this by executing
in iTerm2 and Alacritty, and then copypasting the output after
If tab is spaces, then it'll be 12. If it's a tab, it'll be 8. |
Hmmm, interesting. I believe I can reproduce this as well. FWIW, I found piping things into |
Adding tab characters to the Grid as an actual tab - rather than a space - followed by spacer characters. The spacer characters have the WIDE_CHAR_SPACER flag so the selection code will *not* pass them to the clipboard
This resolves issues with copy-pasting tabs by including them in the pasted string. Selection of tabs is still inconsistent with what might be expected based on other terminal emulators, however the behavior hasn't regressed. This fixes alacritty#219.
@chrisduerr There appears to be a regression on this. |
I can copy tabs just fine. Make sure you're not running tmux or anything else sitting in-between PTY and Alacritty. |
Hmm, indeed. I'm running |
That's up to tmux really, which I do not use. |
I tweeted about display time, praising Alacritty for being faster to display than iTerm2. Way to go!
But in the process, identified a bug: tab characters are copied as spaces. See the tweet linked above and its replies for the thoughts.
I reproduced it more simply here:
I retrieved the above output by highlighting from the
$
to the]
as displayed by each terminal emulator. iTerm2 is allowing the copy of 4 tab characters. Alacritty is outputting 7 spaces?I'm using Alacrity at 61389c1 on macOS 10.11 using what is the default settings, but with font changed to Menlo and the Solarized theme uncommented.
#106 could be related because it demonstrates some tab weirdness.
The text was updated successfully, but these errors were encountered: