Hallo,
please find enclosed a patch to tmux cmd-load-buffer.c 
which reads the buffer from undecidable size streams up to EOF.
I put a predefined limit on the final buffer size.
This, I checked on my currently available machines: netBSD and Linux
and works fine.
Also, I wrote code to read from pipes with the
usual syntax 
tmux loadb -
however at the moment it does not work, apparently
because "-" is never passed as an argument to load-buffer.
Apparently, from your code buffer size needs to be its
content length +1, so I sticked to this assumption.
Fulvio

Attachment: tmux.diff
Description: Binary data

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to