summaryrefslogtreecommitdiff
path: root/filebrowser/backend-gopher.sh
diff options
context:
space:
mode:
Diffstat (limited to 'filebrowser/backend-gopher.sh')
-rwxr-xr-xfilebrowser/backend-gopher.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/filebrowser/backend-gopher.sh b/filebrowser/backend-gopher.sh
new file mode 100755
index 0000000..69e1bbe
--- /dev/null
+++ b/filebrowser/backend-gopher.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+#give a list of files.
+#wait for a selection on stdin
+#cd or start that file
+#repeat.
+server=192.168.0.2
+port=70
+selection=/
+while true;do
+#not sure why this needs to be printed to show up every time.
+ printf '%s\n' "$selection" | ncat "$server" "$port"
+ read -r selection
+ echo
+done