From 3f7a7e42747d77d77ecae5dd28f4696978d911ff Mon Sep 17 00:00:00 2001 From: Andrew David Wong Date: Tue, 22 Nov 2016 03:03:51 -0800 Subject: [PATCH] Adjust headings for auto-ToC and uniformity --- debugging/safe-remote-ttys.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/debugging/safe-remote-ttys.md b/debugging/safe-remote-ttys.md index 9b4cff61..0568df6d 100644 --- a/debugging/safe-remote-ttys.md +++ b/debugging/safe-remote-ttys.md @@ -21,7 +21,8 @@ Use your normal keyboard for input, but have the output go to a remote machine i To do this, we make use of script(1), qvm-run, and optionally your network transport of choice. -### To a different VM ### +To a different VM +----------------- As an example of forwarding terminal output to another VM on the same machine: @@ -31,7 +32,8 @@ $ qvm-run -p some-vm 'xterm -e "cat 0<&5" 5<&0' /dev/null 2>&1 & $ script -f /tmp/foo ~~~ -### To a different machine ### +To a different machine +---------------------- In this case over SSH (from a network-connected VM): @@ -46,11 +48,13 @@ $ script -f /tmp/foo Note that no data received over SSH is ever treated as terminal input in Dom0. The input path remains only from your trusted local keyboard. -### Multiple terminals ### +Multiple terminals +------------------ For multiple terminals, you may find it easier to just use tmux than to try to blindly switch to the correct window. -### Terminal size ### +Terminal size +------------- It is up to you to ensure the sizes of the local and remote terminal are the same, otherwise things may display incorrectly (especially in interactive programs). Depending on your shell, the size of your local (blind) terminal is likely stored in the `$LINES` and `$COLUMNS` variables.