Author: quozl Date: Thu Jan 17 22:26:48 2013 New Revision: 3518 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3518
Log: telnetd - use the I/O multiplexor, so that the telnet client becomes a mirror of the keyboard, display, and serial console.
Modified: ofw/inet/telnetd.fth
Modified: ofw/inet/telnetd.fth ============================================================================== --- ofw/inet/telnetd.fth Fri Jan 11 08:23:07 2013 (r3517) +++ ofw/inet/telnetd.fth Thu Jan 17 22:26:48 2013 (r3518) @@ -208,17 +208,15 @@ end-support-package
-0 value old-in -0 value old-out 0 value telnet-ih
defer getchar-hook ' = to getchar-hook patch getchar-hook = stdin-getchar
: exit-telnet ( -- ) + telnet-ih remove-output + telnet-ih remove-input telnet-ih close-dev - old-out stdout ! - old-in stdin ! ['] = to getchar-hook ;
@@ -237,8 +235,9 @@ : telnetd ( -- ) " telnetd" open-dev dup 0= abort" Can't open telnet" ( ih ) to telnet-ih - stdin @ to old-in stdout @ to old-out - telnet-ih dup stdin ! stdout ! + telnet-ih add-output + telnet-ih add-input + \ hint: use " screen-ih remove-output " to speed up your telnet output ['] ?telnet-closed to getchar-hook ; \ LICENSE_BEGIN