From ab56ef69f961e1c68c445e28b519abece13984cf Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Tue, 7 Mar 2023 23:08:21 -0500 Subject: [PATCH] [+] Actually get screen size --- tngame/telnet.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tngame/telnet.py b/tngame/telnet.py index fce5373..1e29a94 100644 --- a/tngame/telnet.py +++ b/tngame/telnet.py @@ -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