I made an console. Yes really. It has a few functions but not all are working currently. the devmenu is an empty window btw.
Here's the code.
local console = require "console"
local ui = require "ui"
console.clear()
console.writecolor("lightcyan","D")
console.writecolor("lightred","A")
console.writecolor("lightyellow","S")
console.writecolor("lightcyan","H")
console.writecolor("lightgreen","B")
console.writecolor("lightpurple", "O")
console.writecolor("red", "A")
console.writecolor("blue", "R")
console.writecolor("yellow", "D")
console.writecolor("white", " | Console\n")
console.color = "white"
-- local username = sys.Buffer(console.readln("Username: ")):encode("base64")
-- console.echo = '*'
-- local password = sys.Buffer(console.readln("Password: ")):encode("base64")
-- console.echo = true
-- if username ~= "labikistan" and password ~= "testing" then
-- ui.info("Logged in.")
-- else
-- ui.info("Wrong password or username")
-- end
console.title = "Console | ALPHA V0.1"
repeat
local typed = sys.Buffer(console.readln("» ")):encode("utf8")
if typed == "info" then
console.write("Coded in Lua by labikistan\n")
elseif typed == "qr" then
console.write("comming...\n")
elseif typed == "admin off" then
console.write("You aren't an admin anymore.\n")
console.title = "Console | ALPHA V0.1"
adminmode = false
elseif typed == "admin" then
console.write("Admin-Modus enabled!\n")
console.title = "Console | ALPHA V0.1 | » ADMINISTRATOR"
adminmode = true
elseif typed == "dev" then
console.write("Developer-Modus enabled!\n")
console.title = "Console | ALPHA V0.1 | » DEVMODE"
devmode = true
elseif typed == "adminpanel" and adminmode == true then
console.write("Panel is running.\n")
apanel = require("adminpanel")
local typed = sys.Buffer(console.readln("» ")):encode("utf8")
elseif typed == "help" then
console.write("~-~ help ~-~")
console.write("\n")
console.write("\nqr | QR-Code Gen.")
console.write("\ndashboard | Opens the Dashboard.")
console.write("\nexit | Tipp: Alt F4.")
console.write("\nclear | Clearing the console.")
console.write("\ninfo | Who made the script?")
console.write("\nadmin | Adminmode")
console.write("\nadmin off | Adminmodus disable")
console.write("\ndev | Devmode")
console.write("\ndev off | Devmode disable")
console.write("\ndevhelp | Devmode help")
console.write("\ninternet | Internet stuff !! IP-ADRESS WARNING !!")
console.write("\n")
console.write("\nCoded by labikistan")
console.write("\n~-~ help ~-~")
console.write("\n")
elseif typed == "devhelp" and devmode == true then
console.writecolor("lightblue", "~-~ dev cmds ~-~")
console.write("\n")
console.writecolor("lightblue", "\ndebug | Debugs application")
console.writecolor("lightblue", "\ndevmenu | Developer menu for scripts")
console.write("\n")
console.writecolor("lightblue", "\nCoded by labikistan")
console.writecolor("lightblue", "\n~-~ dev cmds ~-~")
console.write("\n")
elseif typed == "dashboard" then --Coded by labikistan
console.write("Comming soon...\n")
elseif typed == "exit" then
notknown = true
elseif typed == "internet" then
console.write("local ip "..net.ip.." | public ip "..net.publicip.."\n\n")
console.write("Checking if internet is connected\n\n")
if require("net").isalive then
console.writecolor("green", "internet connected.\n")
else
console.writecolor("red", "no internet connection\n")
end
elseif typed == "devmenu" and devmode == true then
console.write("Devmenu is running.\n")
local devmenu = require("devmenu")
elseif typed == "dev aus" then
console.write("Developer-Modus disabled!\n")
console.title = "Console | ALPHA V0.1"
devmode = false
elseif typed == "clear" then
console.clear()
else
console.writecolor("red", "Not found. Try 'help'.\n")
end
until(notknown == true) -- console src end
Should I extend it? Let me know.