View previous topic :: View next topic |
Author |
Message |
lucapost Veteran
Joined: 24 Nov 2005 Posts: 1419 Location: <ud|me|ts> - Italy
|
Posted: Tue Feb 05, 2008 2:30 pm Post subject: [OK] less e standard output a colori |
|
|
Come molti già conoscono è possibile utilizzare less per scorrere lo standard output, come ad esempio:
mi stavo chiedendo se fosse possibile, con less o tools simili, visualizzare anche i colori? Qualcuno ci ha già pensato? _________________ LP
Last edited by lucapost on Tue Feb 05, 2008 4:42 pm; edited 1 time in total |
|
Back to top |
|
|
HoX Guru
Joined: 11 Nov 2006 Posts: 385
|
|
Back to top |
|
|
Scen Retired Dev
Joined: 29 Jul 2003 Posts: 2470 Location: Padova, Italy
|
Posted: Tue Feb 05, 2008 3:49 pm Post subject: |
|
|
Oppure abiliti la USE "vim-pager" per app-editors/vim e utilizzi /usr/bin/vimpager. _________________ I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny |
|
Back to top |
|
|
lucapost Veteran
Joined: 24 Nov 2005 Posts: 1419 Location: <ud|me|ts> - Italy
|
Posted: Tue Feb 05, 2008 4:02 pm Post subject: |
|
|
forse mi sono spiegato male, notate la differenza dell'output tra:
e
Code: | eix rxvt-unicode |less
eix rxvt-unicode |most
eix rxvt-unicode |vimpager |
Voglio vedere i colori!!! _________________ LP |
|
Back to top |
|
|
Kernel78 Moderator
Joined: 24 Jun 2005 Posts: 3654
|
Posted: Tue Feb 05, 2008 4:18 pm Post subject: |
|
|
Piccolo suggerimento: cerca l'opzione -F ma soprattutto ricordati RTFM _________________ Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con Code: | grep -vE '(^[[:space:]]*($|(#|!|;|//)))' |
|
|
Back to top |
|
|
djinnZ Advocate
Joined: 02 Nov 2006 Posts: 4831 Location: somewhere in L.O.S.
|
Posted: Tue Feb 05, 2008 4:20 pm Post subject: |
|
|
emerge ed eix quando il loro output è rediretto attraverso una pipe tolgono il colore per ovvi e validi motivi (in genere lo si usa per filtrare l'output, ci sono decine di esempi sul forum). Quindi nel caso di emerge aggiungi l'opzione --color y nel caso di eix -F , il manuale è aggiornato.
edit: battuto sul tempo _________________ scita et risus abundant in ore stultorum sed etiam semper severi insani sunt
mala tempora currunt...mater stultorum semper pregna est
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist |
|
Back to top |
|
|
lucapost Veteran
Joined: 24 Nov 2005 Posts: 1419 Location: <ud|me|ts> - Italy
|
Posted: Tue Feb 05, 2008 4:41 pm Post subject: |
|
|
Avevo spulciato il man di less e most pensando che questo fosse un problema loro, evidentemente mi sbagliavo.
Grazie per le dritte su eix e emerge.
Mandi. _________________ LP |
|
Back to top |
|
|
|