Type in the console:
edit startupand type this code:
local funtion clearScreen()
term.clear()
term.setCursorPos(1,1)
end
while true do
clearScreen()
print("Welcome at ««YOUR NAME»» computer")
write"Password: "
if read("*") == "««PASSWORD»»" then
print("Correct password!")
sleep(1)
clearScreen()
shell.run("shell")
else
print("Incorrect password!")
sleep(2)
os.shutdown()
end
end
NOTE: You have to change ««YOUR NAME»» in your username and««PASSWORD»» into your password.
Do anybody know how I can exit a program to the terminal


This topic is locked









