Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OK] less e standard output a colori
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Tue Feb 05, 2008 2:30 pm    Post subject: [OK] less e standard output a colori Reply with quote

Come molti già conoscono è possibile utilizzare less per scorrere lo standard output, come ad esempio:
Code:
eix -I |less

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
View user's profile Send private message
HoX
Guru
Guru


Joined: 11 Nov 2006
Posts: 385

PostPosted: Tue Feb 05, 2008 3:19 pm    Post subject: Reply with quote

prova questo: http://www.ossblog.it/post/2400/most-unalternativa-a-less-e-more
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Tue Feb 05, 2008 3:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Tue Feb 05, 2008 4:02 pm    Post subject: Reply with quote

forse mi sono spiegato male, notate la differenza dell'output tra:
Code:
eix rxvt-unicode

e
Code:
eix rxvt-unicode |less
eix rxvt-unicode |most
eix rxvt-unicode |vimpager

Voglio vedere i colori!!!
_________________
LP
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Tue Feb 05, 2008 4:18 pm    Post subject: Reply with quote

Code:
man eix

Piccolo suggerimento: cerca l'opzione -F ma soprattutto ricordati RTFM :wink:
_________________
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
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Tue Feb 05, 2008 4:20 pm    Post subject: Reply with quote

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:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Tue Feb 05, 2008 4:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum