Skip to content

Commit

Permalink
hotfix for telnet
Browse files Browse the repository at this point in the history
  • Loading branch information
bill88t committed Jun 6, 2024
1 parent e3948e9 commit 7f79026
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions base/Beryllium/bin/_waitforconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
term.clear_line(True)
term.clear_buffer()
# Switch to tiny shell prefix if the terminal is too narrow
if term.detect_size()[1] < 60:
be.api.setvar("PSA", "2")
else:
be.api.setvar("PSA", "1")
vr("sz", term.detect_size())
if vr("sz") is not False:
if vr("sz")[1] < 60:
be.api.setvar("PSA", "2")
else:
be.api.setvar("PSA", "1")
term.hold_stdout = False

0 comments on commit 7f79026

Please sign in to comment.