Fix 'noux_terminal_fs' test

Fixes #1213.
terminal: fix off-by-one bug

Fixes #1215.