>If there is no REPL in stumpwm, can we create one ? > >(defun repl () > (princ "> ") > (loop > (shiftf *** ** * (eval (read))) > (format t "~a~&> " *))) > >But stumpwm cannot eval the above function !
Even forgetting the threading issues (you need to make sure this happy loop doesn't block the actual work StumpWM is designed to do..), where are the stdandard-input and standard-output for StumpWM? It is possible to define a wrapper to evaluate forms with standard-output collected and shown as a message; this is basically about using (with-output-to-string (s) (let ((*standard-output* s)) ..)) trick. But standard input is a more compliated thing. _______________________________________________ Stumpwm-devel mailing list Stumpwm-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/stumpwm-devel