From cb5635908fa0662887372d8089409660f8a9039e Mon Sep 17 00:00:00 2001 From: "Azalea (on HyDEV-Daisy)" Date: Sat, 22 Oct 2022 17:53:00 -0400 Subject: [PATCH] [-] osc: remove commented code --- hyfetch/osc.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/hyfetch/osc.py b/hyfetch/osc.py index 4a1bdfd2..4f4e5bc1 100644 --- a/hyfetch/osc.py +++ b/hyfetch/osc.py @@ -33,14 +33,6 @@ def read_osc(seq: int) -> str: t.write("\033[6n") t.flush() - # code = "" - # while 1: - # rlist, w, e = select.select([fd], [], [], 0.1) - # print(rlist, w, e) - # if not rlist: - # break - # code += sys.stdin.read(1) - # Since python's select.select is behaving differently than Unix.select, we can't use it to # monitor if input is available (https://stackoverflow.com/q/74160774/7346633). # My temporary solution is to set a timeout of 0.01s and read as much as possible until the timeout.