Re: apt show escape characters
I source the ".lessenv" file below when I login to an xterm.
The settings make "less" mostly behave nicely for me. My TERM stuff:
TERM=xterm-256color
TERMINFO=/usr/local/share/terminfo
I've found the only reliable way to fix a messed-up terminal without
restarting it is to run (and immediately exit) "screen".
Hope this helps.
--
Karl Vogel I don't speak for anyone but myself
7. Nutrient-Free Rectangles
--Letterman Top 10 Other Names Considered For Pop Tarts, 26 Sep 2014
---------------------------------------------------------------------------
# $Revision: 1.7 $ $Date: 2020-05-24 01:22:03-04 $
# $Source: /home/vogelke/RCS/.lessenv,v $
#
# Fix messed-up less display when running X-windows.
# Stupid screen clears when I exit; it's terminfo's fault,
# not the program being run. Add -X.
export LESS='-XCden -j.3 -z-2'
# http://cinderwick.ca/files/linux/configs/myDeskSnapshots/
# 200912-molokai/bash_exports
# man pager colors
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[00;31m' # begin bold -> red
export LESS_TERMCAP_me=$'\E[0m' # end mode
export LESS_TERMCAP_se=$'\E[0m' # end standout
export LESS_TERMCAP_so=$'\E[01;47;34m' # begin standout - info box
#export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline
export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[01;32m' # paths,keywords -> green,
# no underlines
# man pager colors -- compatible with urxvt-256
export GROFF_NO_SGR=1 # output ANSI color escape sequences in raw form
Reply to: