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
|
||||
|
||||
|
||||
def terminal_size():
|
||||
import fcntl, termios, struct
|
||||
th, tw, hp, wp = struct.unpack('HHHH',
|
||||
fcntl.ioctl(0, termios.TIOCGWINSZ,
|
||||
struct.pack('HHHH', 0, 0, 0, 0)))
|
||||
|
||||
th, tw, hp, wp = struct.unpack(
|
||||
"HHHH", fcntl.ioctl(0, termios.TIOCGWINSZ, struct.pack("HHHH", 0, 0, 0, 0))
|
||||
)
|
||||
return tw, th
|
||||
|
||||
|
||||
print(choice(jaajs))
|
||||
|
|
Loading…
Reference in a new issue