2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-15 12:17:47 +00:00

Add terminal resizing to http api

This enables javascript clients to submit terminal changes.
This commit is contained in:
Jarrod Johnson 2018-11-27 09:12:53 -05:00
parent 7207013abc
commit b0a3bb18fe

View File

@ -550,6 +550,9 @@ def resourcehandler_backend(env, start_response):
elif 'action' in querydict:
if querydict['action'] == 'break':
consolesessions[querydict['session']]['session'].send_break()
elif querydict['action'] == 'resize':
consolesessions[querydict['session']]['session'].resize(
width=querydict['width'], height=querydict['height'])
elif querydict['action'] == 'reopen':
consolesessions[querydict['session']]['session'].reopen()
else: