From 7771b4c2ac9a2f1d8dc3471548412e12d6e37c74 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 28 Aug 2024 22:30:37 +0000 Subject: deploy: a77e6329cfd64147dba99621663b999094239ccf --- tools/screen.html | 264 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 264 insertions(+) create mode 100644 tools/screen.html (limited to 'tools/screen.html') diff --git a/tools/screen.html b/tools/screen.html new file mode 100644 index 0000000..144c092 --- /dev/null +++ b/tools/screen.html @@ -0,0 +1,264 @@ + + + + + + screen - Notes + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+
+

screen(1)

+
# Create new session.
+screen
+
+# List active session.
+screen -list
+
+# Attach to specific session.
+screen -r SESSION
+
+

Options

+
# Enable logfile, default name screenlog.0.
+screen -L
+# Enable log and set logfile name.
+screen -L -Logfile out.txt
+
+

Keymaps

+
Ctrl-A d            # Detach from session.
+Ctrl-A + \          # Terminate session.
+Ctrl-A + :          # Open cmand prompt.
+    kill            # Kill session.
+
+

Examples

+

USB serial console.

+
# 1500000 -> baudrate
+# cs8     -> 8 data bits
+# -cstopb -> 1 stop bit
+# -parenb -> no parity bit
+# see stty(1) for all settings.
+screen /dev/ttyUSB0 1500000,cs8,-cstopb,-parenb
+
+# Print current tty settings.
+sudo stty -F /dev/ttyUSB0 -a
+
+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + +
+ + -- cgit v1.2.3