This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
cmd:set [2012/09/02 15:16] mcb30 |
cmd:set [2012/09/02 15:18] 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 80: | Line 80: | ||
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} |