mirror of
https://github.com/LazoCoder/Pokemon-Terminal
synced 2024-11-23 12:23:04 +00:00
Fixes -c to actually clear instead of only stopping the slideshow
This commit is contained in:
parent
c7ffb5fef5
commit
4a26b38c4d
1 changed files with 4 additions and 6 deletions
|
@ -112,12 +112,10 @@ def main(argv):
|
|||
return
|
||||
|
||||
if options.clear:
|
||||
if not PIPE_EXISTS:
|
||||
print("Slideshow not running")
|
||||
sys.exit(0)
|
||||
pipe_out = os.open(PIPE_PATH, os.O_WRONLY)
|
||||
os.write(pipe_out, b"quit\n")
|
||||
os.close(pipe_out)
|
||||
if PIPE_EXISTS:
|
||||
pipe_out = os.open(PIPE_PATH, os.O_WRONLY)
|
||||
os.write(pipe_out, b"quit\n")
|
||||
os.close(pipe_out)
|
||||
scripter.clear_terminal()
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in a new issue