far2l icon indicating copy to clipboard operation
far2l copied to clipboard

unicode bug with internal VTE

Open unxed opened this issue 5 years ago • 4 comments

see https://github.com/magiblot/turbo/issues/3

thought it was Turbo's bug, but it reproduces only in wx far2l's terminal

unxed avatar Oct 25 '20 02:10 unxed

Well, it can be said that far2l does not handle fullwidth characters very well in general (at least in TUI mode).

Screenshot_20201025_134719

This is not a simple detail. Turbo Vision deals with this by separating the concept of strings from the concept of text representation. That is, it has functions to measure the width of a string, and it has drawing primitives of the style draw n columns from this string, starting at column m. This way neither string types nor classes displaying text become more complex.

magiblot avatar Oct 25 '20 13:10 magiblot

Ладно, Ктулху с ней с шириной, вот почему в turbo под far2l курсор на правую квадратную скобку у смайла не поставить? А в гном терминале норм. Ну это-то точно баг.

Да скорее всего именно изза ширины и расхождения координат в представлении turbo и фаровского терминала. С точки зрения turbo: 1 23 4 [ 😊 ]

для терминала far2l: 1 2 3 [ 😊 ]

elfmz avatar Oct 26 '20 09:10 elfmz

Currently everything is ok with turbo and far2l-in-tty with that sample. But in wx mode there is still a bug with cursor positioning.

unxed avatar Jan 02 '22 18:01 unxed

PR #1279 fixes it

unxed avatar Feb 22 '22 20:02 unxed

closing as fixed

elfmz avatar Nov 05 '22 17:11 elfmz