[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()
|
height, width = await get_size()
|
||||||
log.info(f"Size: {width}x{height}")
|
log.info(f"Size: {width}x{height}")
|
||||||
|
|
||||||
# Position of the cat
|
# Position the cat at center bottom by default
|
||||||
x, y = 0, height - ASCII_HEIGHT
|
x, y = (width - ASCII_WIDTH) // 2, height - ASCII_HEIGHT
|
||||||
|
|
||||||
# Draw the cat function
|
# Draw the cat function
|
||||||
def draw_cat():
|
def draw_cat():
|
||||||
|
|||||||
Reference in New Issue
Block a user