Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local channel = "";
- local user = "";
- local x2,y2 = term.getCursorPos()
- local function cPrint(text)
- local x,y = term.getSize()
- x2,y2 = term.getCursorPos()
- term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
- write(text)
- end
- term.clear()
- term.setCursorPos(1,1)
- function login()
- cPrint("NeXuS IRC \n")
- cPrint("Nickname: ")
- nick = read()
- cPrint("Channel: #")
- chan = read()
- channel = "#" ..chan
- user = nick
- end
- login()
Add Comment
Please, Sign In to add comment