This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cmd:set [2012/09/02 15:16] mcb30 |
cmd:set [2013/08/01 14:19] mcb30 |
||
---|---|---|---|
Line 30: | Line 30: | ||
=== Clear the screen === | === Clear the screen === | ||
- | set esc:hex 1b # ANSI escape character - "^[" | + | set esc:hex 1b # ANSI escape character - "^[" |
- | set cls ${esc:string}[J # ANSI clear screen sequence - "^[[J" | + | set cls ${esc:string}[2J # ANSI clear screen sequence - "^[[2J" |
echo ${cls} | echo ${cls} | ||
Line 57: | Line 57: | ||
* ''[[:cmd:show]]'' | * ''[[:cmd:show]]'' | ||
* ''[[:cmd:clear]]'' | * ''[[:cmd:clear]]'' | ||
- | * ''[[:cmd:config]]'' | ||
* ''[[:cmd:read]]'' | * ''[[:cmd:read]]'' | ||
+ | * ''[[:cmd:inc]]'' | ||
+ | * ''[[:cmd:config]]'' | ||
* [[:cfg|List of all iPXE settings]] | * [[:cfg|List of all iPXE settings]] | ||
* [[:cmd|List of all iPXE commands]] | * [[:cmd|List of all iPXE commands]] | ||
Line 80: | Line 81: | ||
Older versions of iPXE allowed ANSI escape sequences to be defined using code such as: | Older versions of iPXE allowed ANSI escape sequences to be defined using code such as: | ||
- | set esc:hex 1b ; set cls ${esc}[J ; echo ${cls} | + | set esc:hex 1b ; set cls ${esc}[2J ; echo ${cls} |
This should instead be | This should instead be | ||
- | set esc:hex 1b ; set cls ${esc:string}[J ; echo ${cls} | + | set esc:hex 1b ; set cls ${esc:string}[2J ; echo ${cls} |