diff options
Diffstat (limited to 'cap-muck.lsp')
-rw-r--r-- | cap-muck.lsp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cap-muck.lsp b/cap-muck.lsp index 8cace16..36bffba 100644 --- a/cap-muck.lsp +++ b/cap-muck.lsp @@ -1,5 +1,8 @@ +;;; See https://github.com/chazu/16k_muds/tree/master/drveg%40pacbell.net + (defglobal *terminate-program* nil) +;; Hmm, I now think procedural interfaces are better than protocols (defconstant +bold+ "#\esc[1m") (defconstant +unbold+ "#\esc[0m") (defconstant +q+ #\") @@ -167,6 +170,13 @@ (with-open-output-file (file +adb+) (mapcar (lambda (a) (print-object a file)) *avatars*))) +(defun establish-connection () + (let ((c (create (class <connection-type>)))) + (say c "Welcome to CapMUCK!") + (say c "Commands are all upper case, like HELP.") + (say c "") + (say c +name-prompt+))) + (defun main () (read-avatar-database) (read-room-database) @@ -174,3 +184,4 @@ (check-for-inputs))) (main) + |