Is it possible to hook into the prompt?

"Ethan Gardener" <[email protected]> Tue, 22 Sep 2020 13:16:02 +0100
Newsgroups gmane.comp.lang.forth.gforth
Message-ID <[email protected]>
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.