Added username getting
This commit is contained in:
parent
cda705d809
commit
3b57704ad9
18
main.lisp
18
main.lisp
|
@ -1 +1,17 @@
|
|||
(format t "Hello! Welcome to the ~c[33mDuinocoin~c[0m lisp miner! ~%" #\ESC #\ESC)
|
||||
(defvar username)
|
||||
|
||||
(defun get-username (prompt) ; utilities function to get username
|
||||
(clear-input)
|
||||
(write-string prompt)
|
||||
(finish-output)
|
||||
(setf username (read-line)))
|
||||
|
||||
|
||||
(defun init()
|
||||
(get-username "Enter username: ")
|
||||
(format t "Hello ~c[32m~a~c[0m! Welcome to the ~c[33mDuinocoin~c[0m lisp miner! ~%" #\ESC username #\ESC #\ESC #\ESC)
|
||||
)
|
||||
|
||||
(init)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue