Skip to content

Commit

Permalink
frontend/client: fix screen clear on Windows
Browse files Browse the repository at this point in the history
sbourdeauducq committed Feb 21, 2016
1 parent ac6e31d commit e177bbd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion artiq/frontend/artiq_client.py
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
import time
import asyncio
import sys
import os
from operator import itemgetter
from dateutil.parser import parse as parse_date

@@ -17,7 +18,10 @@


def clear_screen():
sys.stdout.write("\x1b[2J\x1b[H")
if os.name == "nt":
os.system("cls")
else:
sys.stdout.write("\x1b[2J\x1b[H")


def get_argparser():

0 comments on commit e177bbd

Please sign in to comment.