Open the dumped output in a hex editor, Search for the byte sequence 1B 1B
Expected behavior
No occurrence of the byte sequence 1B 1B
Screenshots
I have not figured out how to screenshot on my system (sorry), but basically, kitty does not like the double \x1b, and renders something like:
Sort Options [0m|
System information (please complete the following information):
Describe the bug String manipulation for menus sometimes produces 2
\x1b
next to each other. Some terminals breakTo Reproduce
I was able to debug by adding a hack here before the return: https://github.com/yorukot/superfile/blob/cc50cd630404d4d7e23e325af87e978cc3548129/src/pkg/string_function/overplace.go#L100-L113
Steps to reproduce the behavior:
1B 1B
Expected behavior No occurrence of the byte sequence
1B 1B
Screenshots I have not figured out how to screenshot on my system (sorry), but basically, kitty does not like the double
\x1b
, and renders something like:System information (please complete the following information):