* Customising Guile's prompt
@ 2024-12-11 15:33 Ray Soto
2024-12-12 0:35 ` Matt Wette
0 siblings, 1 reply; 2+ messages in thread
From: Ray Soto @ 2024-12-11 15:33 UTC (permalink / raw)
To: guile-user
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.-
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Customising Guile's prompt
2024-12-11 15:33 Customising Guile's prompt Ray Soto
@ 2024-12-12 0:35 ` Matt Wette
0 siblings, 0 replies; 2+ messages in thread
From: Matt Wette @ 2024-12-12 0:35 UTC (permalink / raw)
To: guile-user
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*))
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-12 0:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-11 15:33 Customising Guile's prompt Ray Soto
2024-12-12 0:35 ` Matt Wette
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).