* screen-profiles-status-detail: use less -R to render ansi escaped

color formatting correctly


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-05-02 14:24:04 -05:00
commit 6d3a9292ed

View file

@ -17,16 +17,5 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
pager=
for i in "sensible-pager" "less" "more"; do
if which "$i" >/dev/null 2>&1; then
pager="$i"
break
fi
done
if [ -n "$pager" ]; then screen-profiles-status --detail | less -R -p "#.*:$"
screen-profiles-status --detail | $pager
else
screen-profiles-status --detail
fi