[openfirmware] [commit] r3562 - ofw/core
repository service
svn at openfirmware.info
Wed Feb 20 03:43:47 CET 2013
Author: quozl
Date: Wed Feb 20 03:43:47 2013
New Revision: 3562
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3562
Log:
core - mux, add console add and remove, for use by telnetd
Modified:
ofw/core/muxdev.fth
Modified: ofw/core/muxdev.fth
==============================================================================
--- ofw/core/muxdev.fth Wed Feb 20 03:42:42 2013 (r3561)
+++ ofw/core/muxdev.fth Wed Feb 20 03:43:47 2013 (r3562)
@@ -193,6 +193,23 @@
console-io
;
+: add-console ( ih -- )
+ dup add-output add-input
+;
+
+: remove-console ( ih -- )
+ dup remove-output remove-input
+;
+
+: omit ( "command" -- ) \ do a command to added consoles only
+ screen-ih remove-output
+ fallback-out-ih remove-output
+ 0 parse ['] evaluate catch
+ fallback-out-ih add-output
+ screen-ih add-output
+ throw
+;
+
\ LICENSE_BEGIN
\ Copyright (c) 2009 FirmWorks
\
More information about the openfirmware
mailing list