Author: quozl
Date: Wed Feb 15 09:11:51 2012
New Revision: 2867
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2867
Log:
OLPC XO-1 - update help for current usage
Modified:
cpu/x86/pc/olpc/help.fth
Modified: cpu/x86/pc/olpc/help.fth
==============================================================================
--- cpu/x86/pc/olpc/help.fth Wed Feb 15 09:04:02 2012 (r2866)
+++ cpu/x86/pc/olpc/help.fth Wed Feb 15 09:11:51 2012 (r2867)
@@ -3,29 +3,27 @@
warning @ warning off
: help ( -- )
blue-letters ." UPDATES:" cancel mcr
- ." flash u:\q2c18.rom Rewrite the firmware from USB key" mcr
- ." flash nand:\q2c18.rom Rewrite the firmware from NAND file" mcr
- ." copy-nand u:\boot\nand290.img Rewrite the OS on NAND from USB key" mcr
+ \ ================================================================================
+ ." update-nand u:\os.img Rewrite OS on NAND from USB drive" mcr
+ ." flash u:\q2f07.rom Rewrite firmware from USB drive" mcr
blue-letters ." DIRECTORY LISTING:" cancel mcr
- ." dir u:\ List USB key root directory" mcr
- ." dir u:\boot\ List USB key /boot directory" mcr
- ." dir nand:\boot\*.rom List .rom files in NAND FLASH /boot directory" mcr
+ ." dir u:\ List USB drive root directory" mcr
+ ." dir u:\boot\ List USB drive /boot directory" mcr
+ ." dir nand:\boot\*.rom List .rom files in NAND /boot directory" mcr
blue-letters ." BOOTING:" cancel mcr
- ." boot Load the OS from list of default locations" mcr
- ." 'printenv boot-device' shows the list" mcr
- ." boot <cmdline> Load the OS, passing <cmdline> to kernel" mcr
- ." boot u:\boot\vmlinuz Load the OS from a specific location" mcr
+ ." boot Start the OS" mcr
+ ." boot u:\vmlinuz Start the OS from a specific location" mcr
blue-letters ." CONFIGURATION VARIABLES FOR BOOTING:" cancel mcr
." boot-device Kernel or boot script path. Example: nand:\boot\olpc.fth" mcr
." boot-file Default cmdline. Example: console=ttyS0,115200" mcr
." ramdisk initrd pathname. Example: disk:\boot\initrd.imz" mcr
blue-letters ." MANAGING CONFIGURATION VARIABLES:" cancel mcr
- ." printenv [ <name> ] Show configuration variables" mcr
- ." setenv <name> <value> Set configuration variable" mcr
- ." editenv <name> Edit configuration variable" mcr
+ ." printenv [ <name> ] Show configuration variables" mcr
+ ." setenv <name> <value> Set configuration variable" mcr
+ ." editenv <name> Edit configuration variable" mcr
blue-letters ." DIAGNOSTICS:" cancel mcr
- ." test <device-name> Test device. Example: test mouse" mcr
- ." test-all Test all devices that have test routines" mcr
+ ." test <device-name> Test device. Example: test mouse" mcr
+ ." test-all Test all devices that have test routines" mcr
blue-letters ." More information: " cancel mcr
green-letters ." http://wiki.laptop.org/go/OFW_FAQ" cancel cr
;
Author: quozl
Date: Wed Feb 15 01:27:00 2012
New Revision: 2864
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2864
Log:
Terminal Emulator - reset colour on <ESC>[m, adopt ECMA-48 SGR semantics, as used by VT100, Linux console, xterm, and other emulators.
Modified:
ofw/termemu/fwritstr.fth
Modified: ofw/termemu/fwritstr.fth
==============================================================================
--- ofw/termemu/fwritstr.fth Wed Feb 15 01:23:33 2012 (r2863)
+++ ofw/termemu/fwritstr.fth Wed Feb 15 01:27:00 2012 (r2864)
@@ -255,29 +255,6 @@
headerless
-\ Boldness applies retroactively only to the foreground color; the
-\ current background color is unaffected. However, setting the
-\ background color applies the current boldness state of the foreground
-\ color to the background color. This gives a client program complete
-\ and independent control over the boldness of both the foreground and
-\ background colors (by judiciously sequencing the setting of colors
-\ and boldness), and preserves as much as practical the semi-IBM-PC
-\ semantics that ARC clients assume. The semantics are not exactly the
-\ same as the PC, because the PC (actually ANSI.SYS) zaps the colors
-\ to dim white on black in response to CSI 0 m, and to black on dim
-\ white in response to CSI 7 m, while some ARC clients (in particular
-\ ARCINST.EXE) assume that CSI 0 m preserves the fundamental color scheme
-\ that is currently in effect. Convoluted? You bet!
-\
-\ The fact that this implementation of CSI 7 m and CSI 0 m do not force
-\ the colors back to black and white is also advantageous for programs
-\ that use these sequences for "standout-start ... standout-end", for
-\ which it is nice not to wantonly change the current color scheme. It
-\ is also important that CSI 0 m does not immediately alter the boldness
-\ of the background color, because in the common case of a bright white
-\ background, that prevents CSI 7 m ... CSI 0 m from changing the background
-\ to dim white.
-
: bold ( -- mask ) foreground-color 8 and ;
: bold-on ( -- )
foreground-color 8 or to foreground-color
@@ -285,7 +262,7 @@
: bold-off ( -- )
foreground-color 8 invert and to foreground-color
;
-: default-attributes ( -- ) false to inverse? bold-off ;
+: default-attributes ( -- ) false to inverse? 0 to foreground-color ;
: >color# ( ansi-color-code -- palette# )
10 mod " "(00 04 02 06 01 05 03 07)" drop + c@
;