Skip to content

Commit

Permalink
proc is still in scope, no need for cx prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Mar 1, 2021
1 parent 1ed8aae commit df5aa0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xthulu/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async def handle_client(proc: asyncssh.SSHServerProcess):
if 'LANG' not in cx.proc.env or 'UTF-8' not in cx.proc.env['LANG']:
cx.encoding = 'cp437'

termtype = cx.proc.get_terminal_type()
termtype = proc.get_terminal_type()
w, h, pw, ph = proc.get_terminal_size()
proc.env['TERM'] = termtype
proc.env['COLS'] = w
Expand Down Expand Up @@ -124,6 +124,7 @@ async def input_loop():
cx.echo(cx.term.bold_red_on_black('\r\nTimed out.\r\n'))
log.warning(f'{cx.user.name}@{cx.sid} timed out')
proc.close()

return

except asyncssh.misc.TerminalSizeChanged as sz:
Expand Down

0 comments on commit df5aa0b

Please sign in to comment.