2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00

frontend/client: fix screen clear on Windows

This commit is contained in:
Sebastien Bourdeauducq 2016-02-22 01:25:48 +08:00
parent ac6e31d655
commit e177bbd480

View File

@ -5,6 +5,7 @@ import logging
import time
import asyncio
import sys
import os
from operator import itemgetter
from dateutil.parser import parse as parse_date
@ -17,7 +18,10 @@ from artiq.tools import short_format
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():