From 9e369ab03a7c50f9658dd4a4f62746b0f6b9e6e4 Mon Sep 17 00:00:00 2001
From: Simon Li
Date: Sat, 1 May 2021 16:47:59 +0100
Subject: [PATCH 1/2] Update xtermjs and socketio
- xterm 4.11.0
- socket.io 4.0.1
- flask-socketio 5
---
pyxtermjs/app.py | 2 +-
pyxtermjs/index.html | 33 +++++++++++++++++----------------
setup.py | 2 +-
3 files changed, 19 insertions(+), 18 deletions(-)
diff --git a/pyxtermjs/app.py b/pyxtermjs/app.py
index 2d66f4f..19c65a7 100644
--- a/pyxtermjs/app.py
+++ b/pyxtermjs/app.py
@@ -50,7 +50,7 @@ def pty_input(data):
"""
if app.config["fd"]:
# print("writing to ptd: %s" % data["input"])
- os.write(app.config["fd"], data["input"].encode())
+ os.write(app.config["fd"], data["input"]["key"].encode())
@socketio.on("resize", namespace="/pty")
diff --git a/pyxtermjs/index.html b/pyxtermjs/index.html
index b901d69..36bea3a 100644
--- a/pyxtermjs/index.html
+++ b/pyxtermjs/index.html
@@ -7,7 +7,7 @@
font-family: arial;
}
-
+
@@ -20,31 +20,32 @@
built by Chad Smith GitHub
-
-
-
-
-
-
+
+
+
+
+