[ipxe-devel] [PATCH] Add clearscreen command

Miller, Shao shao.miller at yrdsb.edu.on.ca
Fri Feb 10 21:20:31 UTC 2012

Agreed.  I'd more more forgiving for an 'alias' command where someone
could define their own commands. :)  Then 'cls' could be defined via
script.  - Shao

-----Original Message-----
From: ipxe-devel-bounces at lists.ipxe.org
[mailto:ipxe-devel-bounces at lists.ipxe.org] On Behalf Of Michael Brown
Sent: Friday, February 10, 2012 16:14
To: ipxe-devel at lists.ipxe.org
Subject: Re: [ipxe-devel] [PATCH] Add clearscreen command

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
> 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?

ipxe-devel mailing list
ipxe-devel at lists.ipxe.org

More information about the ipxe-devel mailing list