[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Bug report: string escapes can mess up terminal
- From: "Soni L." <fakedme@...>
- Date: Tue, 15 Aug 2017 20:34:46 -0300
$ lua
Lua 5.3.4 Copyright (C) 1994-2017 Lua.org, PUC-Rio
> "\u"
stdin:1: missing '{' near '"\u"'
> "\u{"
stdin:1: hexadecimal digit expected near '"\u{"'
> "hello \u{"
stdin:1: hexadecimal digit expected near '"hello \u{"'
> "hello \x20 \u{"
stdin:1: hexadecimal digit expected near '"hello \u{"'
> "hello \x00 \u{"
stdin:1: hexadecimal digit expected near '"hello '
> "hello \x1b[33m \u{" -- everything beyond this point shall look GOLD
stdin:1: hexadecimal digit expected near '"hello \u{"'
> -- GOLD TEXT HERE
This doesn't look good... (try it on a color terminal. sadly email
doesn't do well with colors...)
--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.