[openfirmware] r960 - cpu/x86/pc/biosload
svn at openfirmware.info
svn at openfirmware.info
Tue Sep 30 23:37:21 CEST 2008
Author: wmb
Date: 2008-09-30 23:37:21 +0200 (Tue, 30 Sep 2008)
New Revision: 960
Modified:
cpu/x86/pc/biosload/fw.bth
Log:
Biosload version - added telnet end-of-line hack for VirtualBox version.
Modified: cpu/x86/pc/biosload/fw.bth
===================================================================
--- cpu/x86/pc/biosload/fw.bth 2008-09-30 21:36:45 UTC (rev 959)
+++ cpu/x86/pc/biosload/fw.bth 2008-09-30 21:37:21 UTC (rev 960)
@@ -232,6 +232,23 @@
warning !
[then]
+[ifdef] virtualbox-loaded
+also hidden also keys-forth definitions
+\ The VirtualBox "serial port" can be accessed via a telnet client.
+\ Telnet normally sends CR-LF at the end of the line and it is hard
+\ to turn that off because of incompatibilies between various clients
+\ and servers. So if there is a key already queued up right after a
+\ newline, we just eat it.
+: telnet-newline ( -- )
+ new-line-or-done key? if key drop then
+;
+warning @ warning off
+: ^m telnet-newline ;
+: ^j telnet-newline ;
+warning !
+previous previous definitions
+[then]
+
: (.firmware) ( -- )
." Open Firmware " .built cr
." Copyright 1999 FirmWorks All Rights Reserved" cr
More information about the openfirmware
mailing list