far2l
far2l copied to clipboard
Add an option to replace characters with non-standard width with a substitute character such as "▪"
This could serve as a workaround in order to prevent characters with non-standard width, such as emojis or Asian characters, from breaking the layout while in TTY mode.
I'll probably support this.
Some similar hackfix attempt: https://github.com/elfmz/far2l/pull/1279
Check please with branch tty-multiwidth-chars - if all issues are fixed or not (and no new appeared))
Check please with branch tty-multiwidth-chars
#1255 still reproducable
Well there 're two opposite scenarios for terminal: 1 far2l running and displaying its interface that gets garbaged by double-width (or diactrical) chars to resolve this have to treat all characters as having unity width. Its because logic of far (errorously) assumes that all characters have same width and expect this from terminal. Thats what was addressed in this branch (actually there was workaround for that but it was buggy, now shuld be better) 2 some other app running in terminal emulator. Other app knows that chars have different width and expect terminal to display them accordingly. .. its impossible to make single workaround that will fit all. Need to correct main far's logic and bring terminal to normal rendering, but its not workaround (and not simple:()
far2l's layout in tty mode looks ok now
@elfmz probably should be closed now?
yep, root of issue is fixed