lua-users home
lua-l archive

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


$ 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.