function clear()
  term.clear()
  term.setCursorPos(18,5)
  term.setCursorBlink( false )
end

function reading()
  sleep(0.5)
  write "."
end
clear()
write "Logging out"
for n=1,5 do
reading()
end

sleep(1)
  term.setCursorBlink( false )
  term.setCursorPos(1,3)
  redworks.showLogo2()
  term.setCursorPos(1,17)
print"Terminal is locked. Press ENTER to log in."
  
-- disables terminate key
while true do
fault, event, param1, param2, param3 = pcall(os.pullEvent)
  if fault == false then 
  elseif event == "key" and param1 == 28 then
break end
end

os.reboot()