summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--topics/ui/adding-terminal-output.gmi22
1 files changed, 22 insertions, 0 deletions
diff --git a/topics/ui/adding-terminal-output.gmi b/topics/ui/adding-terminal-output.gmi
index a6dd895..a3e3350 100644
--- a/topics/ui/adding-terminal-output.gmi
+++ b/topics/ui/adding-terminal-output.gmi
@@ -5,3 +5,25 @@ GeneNetwork runs external tools. We would like to have an option for (advanced)
=> https://xtermjs.org/docs/api/addons/attach/ xterm.js websocket support
As GN3 (REST) API handles calling external tools it kinda make sense to handle the terminal output page through GN3 and communicate through websockets. But first I'll do a Sinatra test run.
+
+## possible xtermjs alternative
+
+=> https://github.com/joewalnes/websocketd possible xtermjs alternative
+
+=> http://websocketd.com/ home page with tutorials in various languages
+
+They forgot scheme:
+
+```
+(define (websocketd-loop n)
+"Count from 1 to n, pausing
+for a second between each iteration"
+ (if (zero? n)
+ 'done!
+ (begin
+ (display n)
+ (display "\n")
+ (sleep 1)
+ (websocketd-loop (- n 1)))))
+```
+