On Mon, 2015-08-31 at 15:13 +0200, Christoph Lohmann wrote: > Greetings. > > On Mon, 31 Aug 2015 15:13:14 +0200 FRIGN <d...@frign.de> wrote: > > On Sun, 30 Aug 2015 21:19:09 +0800 > > Pickfire <pickf...@riseup.net> wrote: > > > For Evil escape sequences: > > > > > > me@alarmpi ~> echo -e "xyz\033[2;2H\0314\0202\nhello" > > > xŷz > > > hello > > > me@alarmpi ~> > > > > > > St does this: > > > > > > me@alarmpi ~> echo -e "xyz\033[2;2H\0314\0202\nhello" > > > x̂z > > > hello > > > me@alarmpi ~> > > > > This goes beyond my knowledge of escape sequences. Can > > anybody track down the issue here? > > The part about \0314\0202 is invalid UTF‐8. Depending on your font li‐ > braries dragons might happen.
\0314\0202 = 11001100 10000010 Which breaks up to 110 01100 (first byte of 2-byte sequence) 10 000010 (nth sequence byte) Which becomes 01100000010 = U+0302 COMBINING CIRCUMFLEX ACCENT (^) With the WIP combining character patch I sent to the list some time ago now it shows as "x̂yz" (but does other weird things when entered into a non-empty terminal). gnome-terminal behaves equally weird with moving the cursor some amount of lines up, not printing hello or the hat. -- Joakim