mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
* 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:
parent
90bb4835a1
commit
6d3a9292ed
1 changed files with 1 additions and 12 deletions
|
@ -17,16 +17,5 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# 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 | $pager
|
||||
else
|
||||
screen-profiles-status --detail
|
||||
fi
|
||||
screen-profiles-status --detail | less -R -p "#.*:$"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue