Re: using less in a bash script, screen blanking, alternate screen

2013-09-09 Thread Zenaan Harkness
On 9/8/13, Zenaan Harkness wrote: > On 9/8/13, Zenaan Harkness wrote: >> OK, I have the following script (reduced, just enough to demonstrate >> the problem): >> >> --- test.sh --- >> #!/bin/bash >> cmd="apt-cache search debian-installer | sort | egrep --color=always >> -i debian-installer" >> #t

Re: using less in a bash script, screen blanking, alternate screen

2013-09-08 Thread Thomas Dickey
On Sunday, September 8, 2013 4:00:02 AM UTC-4, Zenaan Harkness wrote: > OK, I have the following script (reduced, just enough to demonstrate > > the problem): > --- test.sh --- > #!/bin/bash > cmd="apt-cache search debian-installer | sort | egrep --color=always -i > debian-installer" > #tput nrrm

Re: using less in a bash script, screen blanking, alternate screen

2013-09-08 Thread Zenaan Harkness
On 9/8/13, Zenaan Harkness wrote: > OK, I have the following script (reduced, just enough to demonstrate > the problem): > > --- test.sh --- > #!/bin/bash > cmd="apt-cache search debian-installer | sort | egrep --color=always > -i debian-installer" > #tput nrrmc # line 3 > #less -REf <($cmd) # lin

Re: using less in a bash script, screen blanking, alternate screen

2013-09-08 Thread Sven Joachim
On 2013-09-08 09:53 +0200, Zenaan Harkness wrote: > OK, I have the following script (reduced, just enough to demonstrate > the problem): > > --- test.sh --- > #!/bin/bash > cmd="apt-cache search debian-installer | sort | egrep --color=always > -i debian-installer" > #tput nrrmc # line 3 > #less -R