Re: redefining SBCL prompts
- From: Pillsy <pillsbury@xxxxxxxxx>
- Date: 30 May 2007 13:00:56 -0700
On May 30, 3:07 pm, "Mike G." <michael.graf...@xxxxxxxxx> wrote:
Can someone please post a few lines to show me the proper way to
redefine the REPL and DEBUG prompts in SBCL? Static strings are fine
for my use. Thank you.
You can redefine the REPL prompt by setting the variable SB-INT:*REPL-
PROMPT-FUNCTION* (provided you're using SBCL directly, instead of
SLIME or something, which evidently does its own prompt handling). You
want to set it to a function of a stream variable that will send the
desired prompt string to that stream. For example:
(setf sb-int:*repl-prompt-function*
(lambda (stream)
(format stream "~&Foo> ")))
I don't know how to change the debug prompt, though.
Cheers,
Pillsy
.
- Follow-Ups:
- Re: redefining SBCL prompts
- From: Mike G.
- Re: redefining SBCL prompts
- References:
- redefining SBCL prompts
- From: Mike G.
- redefining SBCL prompts
- Prev by Date: Re: Lisp for generating VHDL code?
- Next by Date: Re: redefining SBCL prompts
- Previous by thread: redefining SBCL prompts
- Next by thread: Re: redefining SBCL prompts
- Index(es):
Relevant Pages
|