Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Query related to "print"

Expand Messages
  • Shawn Corey
    ... You are correct, the sequence x1B[2J will clear the screen and then an m will appear in the upper-left corner. For a brief description of the ANSI
    Message 1 of 2 , Sep 2, 2005
    • 0 Attachment
      Sreeram B S wrote:
      > I could not understand the print statement correctly. For "clear",
      > the hash value is '2J' . So, finally, the print statement will be:
      >
      > print "\x1B[2Jm";
      >
      > How should I interpret this statement? [ Is this something related to
      > ASCII values of keys ..etc].
      >
      > Kindly guide me.
      >
      > For the full program, the URL is
      > http://www.zdo.com/articles/creating_text_mode_user_interfaces_with_perl.php
      >
      > Thanks,
      > Sreeram

      You are correct, the sequence "\x1B[2J" will clear the screen and then
      an "m" will appear in the upper-left corner. For a brief description of
      the ANSI terminal codes see http://en.wikipedia.org/wiki/ANSI_escape_code


      --- Shawn
    Your message has been successfully submitted and would be delivered to recipients shortly.