From b0a3bb18feab73f9a846ed2272b7e4906e34636d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 27 Nov 2018 09:12:53 -0500 Subject: [PATCH] Add terminal resizing to http api This enables javascript clients to submit terminal changes. --- confluent_server/confluent/httpapi.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_server/confluent/httpapi.py b/confluent_server/confluent/httpapi.py index 0ca7a6e1..a0fbb4ad 100644 --- a/confluent_server/confluent/httpapi.py +++ b/confluent_server/confluent/httpapi.py @@ -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: