[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to hook into the prompt?

From: Bernd Paysan
Subject: Re: Is it possible to hook into the prompt?
Date: Tue, 22 Sep 2020 15:19:35 +0200

Am Dienstag, 22. September 2020, 14:16:02 CEST schrieb Ethan Gardener:
> Is it possible to have something run before 'ok' appears? This appears to be
> the sensible way to handle redraw in my command-line text editor.

PROMPT is a deferred word.  You can easily make it

: my-prompt   redraw defers prompt ;
' my-prompt is prompt

Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o id: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]