far2l icon indicating copy to clipboard operation
far2l copied to clipboard

Add an option to replace characters with non-standard width with a substitute character such as "▪"

Open sirburpalot opened this issue 2 years ago • 5 comments

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.

sirburpalot avatar Jul 11 '22 06:07 sirburpalot

I'll probably support this.

Some similar hackfix attempt: https://github.com/elfmz/far2l/pull/1279

unxed avatar Aug 23 '22 12:08 unxed

Check please with branch tty-multiwidth-chars - if all issues are fixed or not (and no new appeared))

elfmz avatar Aug 27 '22 23:08 elfmz

Check please with branch tty-multiwidth-chars

#1255 still reproducable

изображение

unxed avatar Aug 28 '22 14:08 unxed

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:()

elfmz avatar Aug 28 '22 22:08 elfmz

far2l's layout in tty mode looks ok now

изображение

unxed avatar Aug 30 '22 16:08 unxed

@elfmz probably should be closed now?

unxed avatar Nov 05 '22 17:11 unxed

yep, root of issue is fixed

elfmz avatar Nov 05 '22 18:11 elfmz