[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Escaping from Lua programs
- From: Taj Khattra <taj.khattra@...>
- Date: Thu, 29 Jan 2004 13:34:28 -0800
On Thu, Jan 29, 2004 at 06:17:16PM +0100, Reuben Thomas wrote:
> do I need to press Ctrl+C twice to escape?
oddly enough, if you specify '-ansi' when compiling on linux,
a single ^C both interrupts and terminates the interpreter:
bin> ./lua -e "io.stdin:read '*a'"
./lua: <command line>:1: interrupted!
stack traceback:
[C]: in function `read'
<command line>:1: in main chunk
[C]: ?
bin>
probably a glibc issue since, on freebsd, -ansi makes no
difference
-taj