From 01e9f2031ab77f30ec44575e6c64aa89c43247b0 Mon Sep 17 00:00:00 2001 From: Stewart Mackenzie Date: Thu, 16 Jan 2020 02:14:42 +0800 Subject: [PATCH] remove picocom from tmux.sh allowing easy exit of processes instead of playing the picocom ctrl-a x --- tmux.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tmux.sh b/tmux.sh index aa42fdf..c0f8345 100755 --- a/tmux.sh +++ b/tmux.sh @@ -1,13 +1,12 @@ #! /usr/bin/env nix-shell -#! nix-shell -i bash -p gdb openocd cgdb picocom tmux +#! nix-shell -i bash -p gdb openocd cgdb tmux SESSION=$USER tmux -2 new-session -d -s $SESSION tmux new-window -t $SESSION:1 -n 'ZC706' tmux split-window -h tmux select-pane -t 0 -tmux send-keys "picocom --b 115200 /dev/ttyUSB1" C-m -#tmux send-keys "cat /dev/ttyUSB1" C-m +tmux send-keys "stty 115200 < /dev/ttyUSB1 && cat /dev/ttyUSB1" C-m tmux select-pane -t 1 tmux send-keys "sleep 10 && cgdb zc706.elf -x openocd/gdb-zynq-commands" C-m tmux split-window -v @@ -22,4 +21,3 @@ tmux select-pane -t $SESSION:.- # Attach to session tmux -2 attach-session -t $SESSION -