lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Mar 27, 2014 at 1:41 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
$ lua53
Lua 5.3.0 (work2)  Copyright (C) 1994-2014 Lua.org, PUC-Rio
> wide = load"return ' '==(...) and ' ' or utf8.char(string.byte(...)+0xfee0)"
> (("Lua 5.3 is great!"):gsub("[ -~]",wide))
Lua 5.3 is great!


Now if only the standalone interpreter would strip the leading "> ",
you could just cut-and-paste those two lines into it.

Ah, yes, those leading > are troublesome and I've often wished it'd ignore them.

--
Sent from my Game Boy.