Make sure terminal output is unbuffered on POSIX systems (#110)
authorjpellegrini <j_p@aleph0.info>
Mon, 4 Apr 2022 00:23:55 +0000 (21:23 -0300)
committerGitHub <noreply@github.com>
Mon, 4 Apr 2022 00:23:55 +0000 (17:23 -0700)
commitfa8de1fa6ddd9d3c394b851ba87db15a22505bea
tree491eb8451149de490dd3e815c889262fb52c6dff
parent6aa1010b155a079e7f03983f8ac45a751dd26ae7
Make sure terminal output is unbuffered on POSIX systems (#110)

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.

Fixes #109
Fixes #87
csrc/posix/pf_io_posix.c