open,shut

This commit is contained in:
Marc Beninca 2024-06-05 12:45:54 +02:00
parent c1eaf978d7
commit 27a9b419d9
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 23 additions and 21 deletions

View file

@ -110,12 +110,22 @@ def set_ssh(*arguments):
os.chmod(known, 0o400)
def open(*arguments):
print(env.CD_OPEN, end=str())
print(*arguments, flush=True)
def shut(*arguments):
print(env.CD_SHUT, end=str())
print(*arguments, flush=True)
def split():
print(env.SPLIT, flush=True)
print(env.CD_SPLIT, flush=True)
def step(*arguments):
env.STEP += 1
print(env.DOWN)
print(env.VERTICAL, env.STEP, *arguments)
print(env.UP, flush=True)
env.CD_STEP += 1
print(env.CD_DOWN)
print(env.CD_VERTICAL, env.CD_STEP, *arguments)
print(env.CD_UP, flush=True)