[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Readline support in file:read
- From: Dirk Laurie <dpl@...>
- Date: Sat, 24 Sep 2011 07:28:38 +0200
`make linux` or `make macosx` builds Lua with readline support.
However, `io.read()` does not have readline support. I can see why: the file
associated with `io.stdin` might not be one for which editing makes sense.
I dream of this:
file:read('*e'): reads the next line skipping the end of line,
returning nil on end of file, applying editing.
Problem is, I'm not a patch virtuoso.
Dirk