Rewrite entrypoint to prompt for a name, then print it

This commit is contained in:
2025-02-09 12:21:47 +00:00
parent c069917170
commit e5253472a0

View File

@@ -20,5 +20,11 @@
(in-package :main)
(defun read-input (&optional (prompt "> "))
(format t "~a" prompt)
(force-output)
(read-line))
(defun start ()
(format t "Hello, world!"))
(->> (read-input "Enter name: ")
(format t "Hello, ~a!~%")))