Make editor more easily started and used via Roswell-installed Lisp

This commit is contained in:
John Lorentzson 2025-07-28 15:45:32 +02:00
parent 7d46193ea3
commit 2e1ca6192e
3 changed files with 11 additions and 3 deletions

7
asdf-paths.lisp Normal file
View file

@ -0,0 +1,7 @@
(in-package #:cl-user)
(require '#:asdf)
(asdf:initialize-source-registry
'(:source-registry (:tree :here)
:inherit-configuration))

View file

@ -8,7 +8,7 @@ open it, check which pts it's running on using \"ps\", run a command like
\"clear; while true; do sleep 1000;done\", then start the editor in another \"clear; while true; do sleep 1000;done\", then start the editor in another
terminal giving the pts as a command-line parameter.~%")) terminal giving the pts as a command-line parameter.~%"))
(defun main (arguments) (defun main (&rest arguments)
(format t "C64 Livecoding editor, v~A~%" (format t "C64 Livecoding editor, v~A~%"
#.(asdf:component-version (asdf:find-system '#:user-side-compiler))) #.(asdf:component-version (asdf:find-system '#:user-side-compiler)))
(let ((tty (and (first arguments) (let ((tty (and (first arguments)
@ -25,7 +25,7 @@ terminal giving the pts as a command-line parameter.~%"))
((abort ((abort
(lambda () (lambda ()
(sb-ext:exit :code -1)))) (sb-ext:exit :code -1))))
(main (uiop:command-line-arguments)))) (apply #'main (uiop:command-line-arguments))))
(defun build () (defun build ()
(assert (not (member :swank *features*))) (assert (not (member :swank *features*)))

View file

@ -1,4 +1,5 @@
;;;; package.lisp ;;;; package.lisp
(defpackage #:editor (defpackage #:editor
(:use #:cl #:trivial-gray-streams)) (:use #:cl #:trivial-gray-streams)
(:export #:main))