Re: Customising Guile's prompt

Matt Wette <[email protected]>
Newsgroups gmane.lisp.guile.user
Message-ID <[email protected]>
On 12/11/24 7:33 AM, Ray Soto wrote:
> Hi! I've read the HTML manual and I have created a 'nice'
> prompt for my machines as follows:
>
> (use-modules ... (system repl common))
> ...
> (repl-default-option-set! 'prompt
>    (string-append
>      (getlogin) "@" (gethostname) " > "))
>
> What bothers me is that I have been unable to replicate
> the default prompt's feature of printing the current
> debug (level/frame? don't even know how to call it!)
>
> I've searched in my /usr/local/share/guile (I am on BSD)
> to no avail. Could you point me in the right direction here?
> BR, Ray.-
>

Maybe kludgy but check out this: (length (fluid-ref *repl-stack*))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.