I'm working on a small bit of code that reads from a IC2 power storage block and displays it's current and maximum storage. I also want it to toggle a Reactor based on either a keypress or a CLI menu option.
As the code has to refresh a LOT, I think a keypress option is the easiest way, but I can't, for the life of me, figure it out. Here's what I have so far...
os.execute("cls")
-- Hook the component
local component = require("component")
local term = require("term")
local side = require("sides")
local keyboard = require("keyboard")
local event = require("event")
local rs = componen