Colorized Man Pages: Understood and Customized
So when we want something underlined (for example), the
usandueentries in our terminal’s termcap record are what we need to send to the terminal to start and end underlining that section of text.And
less, it seems, provides this handy way to override those entries using environment variables. We can makeusandueand any other termcap string do whatever we want![…]
The
\e[essentially tells the terminal to start listening for a command that will change its behavior.mis actually the command here; all the inputs to the command come before it. Themcommand tells the terminal to change how it renders subsequent text until further notice.