coarse_d1rtxxx.2111 0 Posted September 4, 2021 Share Posted September 4, 2021 I am trying to make a "Press any key to continue" for both Plan9k and OpenOS in OpenComputers. I need something like: local term = require("term") term.clear() io.write("Page 1 of text\n") -- system("pause") term.clear() io.write("Page 2 of text\n") but where "system("pause")" is I need to put a Lua function for Plan9k/OpenOS and not a C function for Windows. Quote Link to post Share on other sites
0 serafim7 0 Posted October 15, 2021 Share Posted October 15, 2021 local term = require("term") local event = require("event") term.clear() io.write("Page 1 of text\n") event.pull("key_down") term.clear() io.write("Page 2 of text\n") Quote Link to post Share on other sites
I am trying to make a "Press any key to continue" for both Plan9k and OpenOS in OpenComputers.
I need something like:
but where "system("pause")" is I need to put a Lua function for Plan9k/OpenOS and not a C function for Windows.
Link to post
Share on other sites