Serial Console: Difference between revisions
imported>Samueldr m I can't even into syntax it seems |
imported>Mic92 No edit summary |
||
Line 14: | Line 14: | ||
This will give you the exact invocation for your current terminal size. | This will give you the exact invocation for your current terminal size. | ||
In case tmux is used an alternative is to add the following snippet to the <code>tmux.conf</code> | |||
bind R run "echo \"stty columns $(tmux display -p \#{pane_width}); stty rows $(tmux display -p \#{pane_height})\" | tmux load-buffer - ; tmux paste-buffer" | |||
In this case fixing the terminal size can be achieved by pressing R. |
Revision as of 17:11, 27 January 2020
Tips
Serial console wrapping
The remote serial console has no knowledge of your local console. This means that it will wrap with safe defaults.
You can configure the columns/rows of your serial console using stty.
In a console sized like yours, e.g. a new tab or tmux window:
$ echo "stty rows $(tput lines) cols $(tput cols)"
This will give you the exact invocation for your current terminal size.
In case tmux is used an alternative is to add the following snippet to the tmux.conf
bind R run "echo \"stty columns $(tmux display -p \#{pane_width}); stty rows $(tmux display -p \#{pane_height})\" | tmux load-buffer - ; tmux paste-buffer"
In this case fixing the terminal size can be achieved by pressing R.