These are ANSI escape codes. The first one (33[2J
) clears the entire screen (J
) from top to bottom (2
). The second code (33[1;1H
) positions the cursor at row 1
, column 1
.
All ANSI escapes begin with the sequence ESC[, have zero or more parameters delimited by ;, and end with a command letter (J and H in your case). 33
is the C-style octal sequence for the escape character.
See here for the full roadshow.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…