The telnet application is a terminal emulator. In the really old days, the only way to communicate with a computer was to use a terminal with a clean text screen and keyboard. The terminal sent everything that you typed to the computer. The computer sent characters that were printed on the screen. Like telnet. DEC has created a number of terminals called VT52, VT100, etc. They were able to interpret special escape sequences so that the computer could give finer instructions to the terminal. These escape sequences have been standardized by ANSI and are now called ANSI escape codes. Terminal emulators that understand VT100 escape codes are called VT100 terminal emulators.
ansi . [ . - "2J".
, , telnet:
myOutputStream.print("\u001B[2J");
myOutputStream.flush();
. "\ u001B [7m", .