[+] Actually get screen size

This commit is contained in:
Azalea Gui
2023-03-07 23:08:21 -05:00
parent 803c2cfba2
commit ab56ef69f9
+4
View File
@@ -54,6 +54,10 @@ async def shell(reader: TelnetReaderUnicode, writer: TelnetWriterUnicode):
writer.write('\x1b[H')
clear()
height, width = await get_size()
log.info(f"Size: {width}x{height}")
# Position of the cat
x, y = 0, height - ASCII_HEIGHT