dumb TERM should not show status

Tomas Hlavaty <[email protected]> Wed, 27 Jul 2022 20:55:02 +0200
Newsgroups gmane.comp.lang.forth.gforth
Message-ID <[email protected]>
Hi,

when run inside Emacs shell, the TERM variable is set to dumb
but gforth tries to show the status line and it looks awful.

It looks like there are some terminals hardcoded already in ansi.fs.
Would it be possible to "teach" gforth to -status on dumb terminal?

Thanks in advance

Tomas

PS: Here is how it looks like:

M-x shell
$ gforth
Gforth 0.7.9_20220310
Authors: Anton Ertl, Bernd Paysan, Jens Wilke et al., for more type `authors'
Copyright © 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
Type `help' for basic help

7<0>                                                 |o:Forth Forth Root     Forth 8sh echo $TERM
sh echo $TERM 
dumb
 ok

7<0>                                                 |o:Forth Forth Root     Forth 8bye
bye