@nightgrey/ansi
    Preparing search index...

    Function eraseDisplay

    • eraseDisplay (ED) clears the display or parts of the display. A screen is the shown part of the terminal display excluding the scrollback buffer. Possible values:

      Default is 0.

       0: Clear from cursor to end of screen.
       1: Clear from cursor to beginning of the screen.
       2: Clear entire screen (and moves cursor to upper left on DOS).
       3: Clear entire display which delete all lines saved in the scrollback buffer (xterm).
      
      ```
      CSI <n> J
      ```
      

      Parameters

      • n: number

      Returns string