Dear Maintainer, When there are escape sequences, for example the ones that grep sends to highlight found text in a different color, the display order of right-to-left scripts like Hebrew and Arabic is incorrect. I suspect this is because qterminal first applies Unicode's bidirectional algorithm, on the text including the escape sequences, and then interprets the escape sequences. IMHO is should be the other way round. Other terminal programs, such as gnome-terminal and konsole, do this right. See also my article https://rudhar.com/sfreview/grepcolr.htm . It has more details, and easily testable examples.