bin: Lint jaaj script
This commit is contained in:
parent
599b189fc5
commit
517f637c16
1 changed files with 279 additions and 276 deletions
11
bin/jaaj
11
bin/jaaj
|
@ -2446,16 +2446,19 @@ ___ _ _ ___
|
||||||
""",
|
""",
|
||||||
"""
|
"""
|
||||||
;_][ //-\\ //-\\ ;_][
|
;_][ //-\\ //-\\ ;_][
|
||||||
"""
|
""",
|
||||||
]
|
]
|
||||||
|
|
||||||
from random import choice
|
from random import choice
|
||||||
|
|
||||||
|
|
||||||
def terminal_size():
|
def terminal_size():
|
||||||
import fcntl, termios, struct
|
import fcntl, termios, struct
|
||||||
th, tw, hp, wp = struct.unpack('HHHH',
|
|
||||||
fcntl.ioctl(0, termios.TIOCGWINSZ,
|
th, tw, hp, wp = struct.unpack(
|
||||||
struct.pack('HHHH', 0, 0, 0, 0)))
|
"HHHH", fcntl.ioctl(0, termios.TIOCGWINSZ, struct.pack("HHHH", 0, 0, 0, 0))
|
||||||
|
)
|
||||||
return tw, th
|
return tw, th
|
||||||
|
|
||||||
|
|
||||||
print(choice(jaajs))
|
print(choice(jaajs))
|
||||||
|
|
Loading…
Reference in a new issue