diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2014-09-04 15:54:04 +0200 |
---|---|---|
committer | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2014-10-29 16:19:31 +0530 |
commit | 40a88835cdccc5da001362d17c29fd9eb29edb90 (patch) | |
tree | 89b78256313ec5b8ec4e69f5d85153cdcee02f3d /slof | |
parent | 824b4522ef385917828690f32b8daef847227787 (diff) | |
download | SLOF-40a88835cdccc5da001362d17c29fd9eb29edb90.zip SLOF-40a88835cdccc5da001362d17c29fd9eb29edb90.tar.gz SLOF-40a88835cdccc5da001362d17c29fd9eb29edb90.tar.bz2 |
Fix term-io-key to also work when stdin has not been set yet
term-io-key simply did nothing when the stdin had not been set yet.
Especially, it even did not put an output item on the stack, which led
to very ugly crashes in case we dropped to the Forth prompt before
the console had been set up. Fix it by running the behaviour of the
previous key handler instead.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Diffstat (limited to 'slof')
-rw-r--r-- | slof/fs/term-io.fs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/slof/fs/term-io.fs b/slof/fs/term-io.fs index cdd754a..52ce12a 100644 --- a/slof/fs/term-io.fs +++ b/slof/fs/term-io.fs @@ -49,6 +49,8 @@ UNTIL (term-io-char-buf) c@ r> drop + ELSE + [ ' key behavior compile, ] THEN ; |