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 <> 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:

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