How to exit a REPL from the command line
02:36 03 Jun 2022

I'm currently learning Lua and also learning how to work with CMD. I know how to change a directory path and run my codes and files from that path but what I don't know and I'm here to ask for is how to get out of a programming language REPL when you start it in CMD

For example to jump into the Lua REPL you should type:

lua53 (--like python3 for the Python language) 

then you changed the CMD environment to a Lua compiler and can't access CMD commands such as dir, cd, cls etc. and everytime when I need to access these commands I have to close the CMD window and open a new one. Now can you guys tell me am I able to access CMD commands while in the Lua REPL? Or do I have to exit Lua first, and is there any command to exit a REPL?

powershell cmd lua console command-prompt