How to clear multiline command in Lua interpreter

For example, if I write a multiline command in Python, I can just click ctrl-c.

In Lua, for one liner, I could click ctrl-uto clear one line, but it does nothing for multi-line functions, etc. ctrl-cin Lua shuts down the interpreter.

Edit: For example, I am writing a function in Lua:

>> function Test()
..> print 'Test'
..> e

At this point I am going to write end, and I understand that I did not want to call the function Test(), instead I wanted to call it Test123(), how would I break out of this, as with Python ctrl-c?

+4
source share
2 answers

';', . ( ), .

+3

Lua , , readline. , , .

Python ( \). Python ctrl-c, Lua: - ctrl-c , Lua ctrl-c, , , .

+1

All Articles