module AnsiEscapes::Erase

Defined in:

ansi-escapes.cr

Constant Summary

DOWN = "#{ESC}J"

Erase the screen from the current line down to the bottom of the screen.

END_LINE = "#{ESC}K"

Erase from the current cursor position to the end of the current line.

LINE = "#{ESC}2K"

Erase the entire current line.

SCREEN = "#{ESC}2J"

Erase the screen and move the cursor home.

START_LINE = "#{ESC}1K"

Erase from the current cursor position to the start of the current line.

UP = "#{ESC}1J"

Erase the screen from the current line up to the top of the screen.

Class Method Summary

Class Method Detail

def self.lines(count : Int32) #

Erase from the current cursor position up the specified amount of rows.


[View source]