lua-users home
lua-l archive

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


On Sat, Feb 27, 2010 at 10:56 AM, JM Fernandez <elcubion@gmail.com> wrote:
> 'less' is not a possibility (?) because some strings
> are internal ones.

How is that a problem?

Use io.popen(), and write the string to less's stdin. Or write it to a
tmpfile, even.

Terminal independent internationalized i/o isn't particularly easy, or
fun. If its really important to your app, more than your time, then
you might start with this:

http://www.cl.cam.ac.uk/~mgk25/unicode.html#activate

Terminals are usually used through libraries like curses, ncurses, or
slang that use the terminfo DB. You might find bindings.

Cheers,
Sam