-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
Unexpected blank area #291
Comments
It looks like the problem is that the final column isn't handled properly when there are an odd number of columns and using wide characters. Does this problem occur when using a terminal width of 96 or 98 instead of 97? |
I'm actually thinking that I may have made a bogus assumption that wide characters will only occur in an even numbered cell. |
What terminal are you using? |
I've tried to reproduce this unsuccessfully. This was using go in a Windows terminal on both Windows and on WSL (Linux, but still using the Windows terminal). Here's the code I used:
|
|
You'll note that you had several other bugs in your original post (X and Y mismatched, style settings incorrect, etc.) I will also note that I tested in both conemu and Windows Terminal. One thing that is a little weird if you put a sleep between the emit of 't' and the emit of 'k' (and a Show() in there too), then conemu attempts to move the Chinese character one space to the right. The Windows terminal does not properly display the chinese character at all, but instead places a Unicode place holder character there. But it does display the English characters fine, without any problems. I suspect we're in a problematic area for handling wide characters in the terminals themselves, but without more information there's not much I can do to validate. |
Thanks for your reply. I am so sorry to reply you now. https://github.com/GavinGuan24/gofer https://github.com/GavinGuan24/gofer/blob/master/gofer/rootView.go (line: 72 ~ 78) There is enough space on the screen to display those content. I will describe the process again. Let's say '0' is a pixel, '中' is two pixel. step 1 step 2 step 3 step 4 on step 4, '00a>' is what I want to display.
I hope that my description is clear enough. 😅 You can reproduce this. step 1 And comment out these lines. step 2 step 3 by the way, Ctrl+q to quit. |
call
stty -a
, show like that23 rows; 97 columns;
Step 1: I call
that's working.
Step 2: I call
that's working with a bug. the
t
disappeared !!!I think you have a bug with handling Double wide character.
It happens on the right edge of the screen.
for avoiding this, I have to call
screen.Clear();screen.Show()
.This will cause the screen to flicker.
I can't accept this thing.
The text was updated successfully, but these errors were encountered: