[+] Clear terminal function

This commit is contained in:
Azalea Gui
2023-03-07 23:07:58 -05:00
parent 134fe1c80a
commit 2a1fb9beab
+7
View File
@@ -29,6 +29,13 @@ COLORS = {RGB.from_hex(v) for v in {
async def shell(reader: TelnetReaderUnicode, writer: TelnetWriterUnicode):
def clear():
# Clear the screen
writer.write('\x1b[2J')
writer.write('\x1b[H')
clear()
x, y = 0, height - ASCII_HEIGHT