[ipxe-devel] [PATCH] Add clearscreen command

Michael Brown mbrown at fensystems.co.uk
Fri Feb 10 21:14:16 UTC 2012


On Saturday 04 Feb 2012 17:14:30 Marc Hammer wrote:
> In first place the command was only intended for scripting.
> I am also not quite sure how often the cli is used in a production
> environment.
> 
> But if a key combination is wanted from a few users I will at least take
> a look if its not to hard to implement.
> If so I will update my patch.

You can use ANSI escape sequences to clear the screen.  For example:

  set esc:hex 1b
  set cls ${esc}[2J
  echo ${cls}

I think a separate "cls" command is difficult to justify, given the overall code 
size constraints.  Thoughts?

Michael



More information about the ipxe-devel mailing list