I get no output in tmux, screen, or a normal shell.

Adding the -X flag to less gives me the desired output in all three.

        -X or --no-init
               Disables sending the termcap initialization and 
deinitialization strings
               to the terminal.  This is sometimes desirable  if  the  
deinitialization
               string does something unnecessary, like clearing the screen.

You might also want to replace -E with -F

        -F or --quit-if-one-screen
               Causes less to automatically exit if the entire file can 
be displayed  on
               the first screen.

When the output is over one screen, -E quits when you hit the end (like 
more iirc),
but -F waits until you hit 'q'.

Using the Terminal app in MacOS Lion.


Steve

On 17/10/11 9:03 PM, Nicholas Marriott wrote:
> Works the same for me inside and outside tmux unless I also pipe it
> through cat -v.
>
> What tmux version? What platform? What is TERM inside and outside tmux?
>
>
> On Mon, Oct 17, 2011 at 11:23:51AM +0200, arno wrote:
>> Hi,
>> I'm currently trying tmux and I'm encountering an issue with less -E
>> It's supposed to "Causes less to automatically exit the first time it reaches
>> end-of-file.". I use it to have less behave like cat when a buffer is less
>> than a page.
>>
>> But with tmux, less -E outputs nothing.
>> See for example:
>>
>> echo test | less -E
>>
>> In a normal shell, or in screen, it outputs "test"; in tmux, it outputs 
>> nothing.
>>
>> Do you have any idea on how to fix this ?
>>
>> ------------------------------------------------------------------------------
>> All the data continuously generated in your IT infrastructure contains a
>> definitive record of customers, application performance, security
>> threats, fraudulent activity and more. Splunk takes this data and makes
>> sense of it. Business sense. IT sense. Common sense.
>> http://p.sf.net/sfu/splunk-d2d-oct
>> _______________________________________________
>> tmux-users mailing list
>> tmux-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/tmux-users
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2d-oct
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to