I’m pretty sure that the problem isn’t tmux. I get the same effect when using
xterm, iterm, and a few others over the years with no tmux running. The fix
for me is to run the unix utility “reset”.
Check out “man reset” for more info.
Hope this helps.
-Mike
-just a tmux user
On Jul 17, 2014, at 2:33 PM, Kaushal <kaushal.m...@gmail.com> wrote:
> Hi,
>
> At times ag (searching tool like grep) ends up searching binary files like
> pdf and the tmux output becomes something like this:
> http://i.imgur.com/yy8lw9g.png
>
> It is understood that the stdout shows those scrambled characters as 'ag' is
> trying to read a binary file. But the problem is that I have to kill that
> pane because then all characters in that pane appear jumbled: my shell
> prompt, the characters that I type in shell, etc..
>
> In the above linked screenshot, I have typed a-z and they showed up like that
> jumbled mess (except for few alphabets).
>
> The same issue does not happen if I am running ag directly in an xterm window
> (outside tmux).
>
> The only terminal related options I have set in .tmux.conf are:
> setw -g xterm-keys on
> set -g default-terminal "xterm-256color" # "xterm"
>
> Here is my full .tmux.conf:
> https://github.com/kaushalmodi/dotfiles/blob/master/.tmux.conf
>
> --
> Kaushal Modi
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds_______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users