Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
pg83 committed Aug 19, 2022
1 parent 8c681ce commit 1523541
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ted
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import json
import time
import math
import queue
import shutil
import bisect
import string
import signal
Expand Down Expand Up @@ -121,7 +122,11 @@ class Channel:

def fini(self):
os.system('stty echo -raw')
os.system('tput reset')

if shutil.which('tput'):
os.system('tput reset')
else:
os.system('reset')

def title(self, t):
self.send(title(t))
Expand Down

0 comments on commit 1523541

Please sign in to comment.