stevearc / vim-arduino

Vim plugin for compiling and uploading arduino sketches
MIT License
343 stars 24 forks source link

[question] how to set tmux for Serial? #51

Open avlapp opened 2 years ago

avlapp commented 2 years ago

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

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

stevearc commented 2 years ago

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

avlapp commented 2 years ago

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?)

stevearc commented 2 years ago

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>