I believe that I have encountered an interchangeability issue between tmux and readlines. I have attached two sets of logs (each with my inputrc and my tmux.conf), one shows the issue and the other works correctly.
I have script that I use to start a tmux session (if it doesn't exist), create the necessary windows, run a couple commands, and to drop me into my desired window. However, after modifying my inputrc file, the send-keys command does not seem to be working is expected. Instead of sending a return (via C-m or ENTER) the terminal appears to do be attemping an autocomplete instead. Here are the two lines in question. When I comment them out everything works fine. Control-j: menu-complete Control-k: menu-complete-backward To make things more interesting, I cannot replicate this issue from inside tmux. If I do send-keys from either the ':' command-prompt or from the terminal, it will behave appropriately. I suspect that it is a timing issue, that the bad behavior only occurs when send-keys executes before the terminal's initial prompt appears. Here's a simplified script that I use to start a new tmux session for my work: sn="foo" function new_session { cd $HOME/ tmux start-server tmux -vvvvvvv new-session -s $sn -d tmux new-window -t $sn:1 tmux new-window -n qaup -t $sn:9 tmux send-keys -t $sn:0 "cd $HOME/work/" ENTER "vim" C-m tmux send-keys -t $sn:9 "cd $HOME/work/ && ls -l" C-m tmux select-window -t "$sn:0" tmux select-window -t "$sn:1" tmux attach-session -t $sn } tmux attach -d -t $sn || new_session Thanks. -- ------------- - grant welch - gwe...@riverbed.com
tmux-inputrc-issue.tgz
Description: application/compressed-tar
tmux-inputrc-nonissue.tgz
Description: application/compressed-tar
------------------------------------------------------------------------------
_______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users