[O] Default center
This commit is contained in:
+2
-2
@@ -57,8 +57,8 @@ async def shell(reader: TelnetReaderUnicode, writer: TelnetWriterUnicode):
|
||||
height, width = await get_size()
|
||||
log.info(f"Size: {width}x{height}")
|
||||
|
||||
# Position of the cat
|
||||
x, y = 0, height - ASCII_HEIGHT
|
||||
# Position the cat at center bottom by default
|
||||
x, y = (width - ASCII_WIDTH) // 2, height - ASCII_HEIGHT
|
||||
|
||||
# Draw the cat function
|
||||
def draw_cat():
|
||||
|
||||
Reference in New Issue
Block a user