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 - - - - - - + + + + +