lua-users home
lua-l archive

Readline support in file:read

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


`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

AltStyle によって変換されたページ (->オリジナル) /