[OpenBIOS] [PATCHv2 03/20] terminal.fs: Fix linefeeds on the bottom line of the Forth console.
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Sun May 26 15:02:23 CEST 2013
Fix cursor position when a linefeed is entered on the bottom line.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
openbios-devel/forth/device/terminal.fs | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/openbios-devel/forth/device/terminal.fs b/openbios-devel/forth/device/terminal.fs
index 3ef56ee..c9c7d59 100644
--- a/openbios-devel/forth/device/terminal.fs
+++ b/openbios-devel/forth/device/terminal.fs
@@ -230,6 +230,12 @@
endof
a of \ LF
line# 1+ to line# 0 to column#
+ line# #lines >= if
+ line# 1-
+ 0 to line#
+ 1 delete-lines
+ to line#
+ then
endof
b of \ VT
line# 0<> if
--
1.7.10.4
More information about the OpenBIOS
mailing list