Skip to content

Commit e20cf71

Browse files
authored
include terminal width
without terminal width it produces ugly output on ONEOS v5
1 parent f9a48a2 commit e20cf71

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Exscript/protocols/drivers/one_os.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ def check_head_for_os(self, string):
4747

4848
def init_terminal(self, conn):
4949
conn.execute('term len 0')
50+
# TERMINAL WIDTH ONEOS5
51+
try:
52+
conn.execute('stty columns 255')
53+
except:
54+
pass
55+
5056

5157
def auto_authorize(self, conn, account, flush, bailout):
5258
conn.send('enable\r')

0 commit comments

Comments
 (0)