stevearc/vim-arduino

[question] how to set tmux for Serial?

avlapp opened this issue · 3 comments

let g:arduino_serial_cmd = 'tmux {port} {baud}'

tmux /dev/ttyACM0 9600
unknown command: /dev/ttyACM0

tmux is just a terminal multiplexer and doesn't support serial connections. You'll need to use screen, picocom, minicom, or similar.

So then I've screen running in a tmux pane? How do people manage that? How do I close the serial running in screen (which runs in a tmux pane?)

You have to kill the screen session using its escape key. By default this is bound to <C-a><C-k>. If you've set your tmux escape key to <C-a>, then you may have to double escape it <C-a><C-a><C-k>