Skip to content

Commit 37f4f63

Browse files
authored
Merge pull request #213 from mwallraf/one_os_terminal_width
include terminal width for Ekinops one_os driver
2 parents f9a48a2 + 6688c81 commit 37f4f63

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Exscript/protocols/drivers/one_os.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ 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 Exception:
54+
pass
5055

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

0 commit comments

Comments
 (0)