Call setvbuf on terminal initialization in csrc/posix/pf_io_posix.c. At least on one platform (OpenWRT), pForth was buffering the characters while the user typed, instead of echoing them immediately; this fixes that issue.
Question: I did not check the output of setvbuf. Do you think it's necessary? I could change it so it issues a warning (to stderr, so the output is flushed immediately! :grin: )
Call
setvbuf
on terminal initialization incsrc/posix/pf_io_posix.c
. At least on one platform (OpenWRT), pForth was buffering the characters while the user typed, instead of echoing them immediately; this fixes that issue.Question: I did not check the output of
setvbuf
. Do you think it's necessary? I could change it so it issues a warning (tostderr
, so the output is flushed immediately! :grin: )