You are not logged in.

#1 2007-02-06 16:47:30

vogo
Member
Registered: 2007-02-06
Posts: 43

coloured pacman 3.x

Hi all,
I make colorful version of pacman 3.0.0, the patch is in mailinglist.

If you like, here is PKGBUILD and source code.

Warning: usage one's own risk

pacman-color.png

Last edited by vogo (2008-01-18 11:40:50)


Just because I'm paranoid doesn't mean they're not out to get me.

Offline

#2 2007-02-06 16:59:34

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: coloured pacman 3.x

Keep in mind this is a patch for pacman 3.0.  I would still deem this experimental, and would like everyone to make sure they know what they're doing this before using it.  And, for the record, pacman 3 will be released real soon, so just be patient.

Offline

#3 2007-02-06 17:15:21

vogo
Member
Registered: 2007-02-06
Posts: 43

Re: coloured pacman 3.x

See patch, the color output is making by function char *color(int desc, const char *str, ...), desc is number of descriptor, when it's a tty, then the string is coloured,  that is all. The colorchange is indicate by sequence %S in string.

Sorry my bad english sad


Just because I'm paranoid doesn't mean they're not out to get me.

Offline

#4 2007-02-07 08:05:33

vogo
Member
Registered: 2007-02-06
Posts: 43

Re: coloured pacman 3.x

update: all CVS changes
up to date 8.00 (GMT)


Just because I'm paranoid doesn't mean they're not out to get me.

Offline

#5 2007-02-07 16:45:15

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: coloured pacman 3.x

For the record, due to popular opinion we WILL be adding color into pacman 3, however, it will probably not be there for the official release.  3.0 will be a "stabilizing" release, and 3.1 will be chock-full of features (like color, yay!).  I'm just putting that out there.

Offline

#6 2007-02-07 18:26:20

delphinen
Member
Registered: 2006-10-02
Posts: 67

Re: coloured pacman 3.x

it reminds me of emerge, I like it

Offline

#7 2007-02-07 21:22:24

vogo
Member
Registered: 2007-02-06
Posts: 43

Re: coloured pacman 3.x

Hi,
I'm add option --nocolor, when is pacman run with --nocolor output isn't coloured wink


Just because I'm paranoid doesn't mean they're not out to get me.

Offline

#8 2007-02-07 22:15:08

deficite
Member
From: Augusta, GA
Registered: 2005-06-02
Posts: 693

Re: coloured pacman 3.x

phrakture wrote:

For the record, due to popular opinion we WILL be adding color into pacman 3, however, it will probably not be there for the official release.  3.0 will be a "stabilizing" release, and 3.1 will be chock-full of features (like color, yay!).  I'm just putting that out there.

Thanks! I've wanted colored pacman for quite some time but didn't want to bug with devs about such a trivial (but nice on the eyes. Much easier to read with color) thing. I'm really excited about pacman3(.1)

Offline

#9 2007-02-08 01:40:39

jb
Member
From: Florida
Registered: 2006-06-22
Posts: 466

Re: coloured pacman 3.x

Color can be disabled in the conf file for pacman3, right?


...

Offline

#10 2007-02-08 04:29:24

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: coloured pacman 3.x

why not do what most other apps do and automagically not color when it's being piped to a file or something, and color when it's to a tty (this might already be the case, havent read the patch...)


The suggestion box only accepts patches.

Offline

#11 2007-02-08 04:55:55

scarney
Member
From: Wisconsin, US
Registered: 2006-07-11
Posts: 173

Re: coloured pacman 3.x

phrakture wrote:

For the record, due to popular opinion we WILL be adding color into pacman 3, however, it will probably not be there for the official release.  3.0 will be a "stabilizing" release, and 3.1 will be chock-full of features (like color, yay!).  I'm just putting that out there.

sweet!. *waits patiently* 8)

Offline

#12 2007-02-08 08:39:33

vogo
Member
Registered: 2007-02-06
Posts: 43

Re: coloured pacman 3.x

jb wrote:

Color can be disabled in the conf file for pacman3, right?

no for the time being, but it's in my TODO list wink


Just because I'm paranoid doesn't mean they're not out to get me.

Offline

#13 2007-02-08 10:44:28

vogo
Member
Registered: 2007-02-06
Posts: 43

Re: coloured pacman 3.x

vogo wrote:
jb wrote:

Color can be disabled in the conf file for pacman3, right?

no for the time being, but it's in my TODO list wink

done
Option 'UseColor' in /etc/pacman.conf must be explicitly named, if you want coloured output. --nocolor is useful, if you like temporary non-use colored output


Just because I'm paranoid doesn't mean they're not out to get me.

Offline

#14 2007-02-08 13:26:58

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: coloured pacman 3.x

phrakture wrote:

for the record, pacman 3 will be released real soon, so just be patient.

Phrakture, thanks for being a hands-on developer and keeping us informed. wink
And thanks to all the Arch developers for their hard work. It is much appreciated, no doubt.

Offline

#15 2007-02-08 18:45:25

jb
Member
From: Florida
Registered: 2006-06-22
Posts: 466

Re: coloured pacman 3.x

vogo wrote:

done
Option 'UseColor' in /etc/pacman.conf must be explicitly named, if you want coloured output. --nocolor is useful, if you like temporary non-use colored output

Cool; thanks.


...

Offline

#16 2007-02-10 10:54:55

vogo
Member
Registered: 2007-02-06
Posts: 43

Re: coloured pacman 3.x

update: all CVS changes


Just because I'm paranoid doesn't mean they're not out to get me.

Offline

#17 2007-02-10 12:17:07

xerverius
Member
From: ~
Registered: 2004-11-02
Posts: 230
Website

Re: coloured pacman 3.x

What are the new/improved features in pacman 3?

Offline

#18 2007-02-11 11:09:11

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: coloured pacman 3.x

xerverius wrote:

What are the new/improved features in pacman 3?

There's too much to list - I'd recommend checking out the pacman-dev mailing list (linked off the main page)

Offline

#19 2007-02-13 10:55:54

vogo
Member
Registered: 2007-02-06
Posts: 43

Re: coloured pacman 3.x

update: all CVS changes


Just because I'm paranoid doesn't mean they're not out to get me.

Offline

#20 2007-02-14 09:37:03

vogo
Member
Registered: 2007-02-06
Posts: 43

Re: coloured pacman 3.x

update: patch for last RC


Just because I'm paranoid doesn't mean they're not out to get me.

Offline

#21 2007-02-18 10:23:21

vogo
Member
Registered: 2007-02-06
Posts: 43

Re: coloured pacman 3.x

update: all CVS changes
pacman color is mow usable whit white background (looks like makepkg)


Just because I'm paranoid doesn't mean they're not out to get me.

Offline

#22 2007-02-22 10:02:04

vogo
Member
Registered: 2007-02-06
Posts: 43

Re: coloured pacman 3.x

Update:
config is parsing earlier (for colorful help and version info)
all CVS changes


Just because I'm paranoid doesn't mean they're not out to get me.

Offline

#23 2007-03-03 21:21:54

vogo
Member
Registered: 2007-02-06
Posts: 43

Re: coloured pacman 3.x

update: all CVS changes


Just because I'm paranoid doesn't mean they're not out to get me.

Offline

#24 2007-03-07 19:00:12

cr7
Member
Registered: 2006-11-28
Posts: 103

Re: coloured pacman 3.x

Cool! big_smile

Offline

#25 2007-03-13 14:44:22

Miguel
Member
Registered: 2007-02-12
Posts: 2

Re: coloured pacman 3.x

Hi guys,

I've got a quick question. Seeing as some boot colour is white (i.e. [DONE]), will it be the same with pacman? I mean, I just love black-on-white terminals, and this makes "a bit" difficult to read white text. I'd love if this could be configured (similar to bright/dark background in vim). Oh! and thanks for the efforts from an Arch noobie!

PS: I just don't feel serious when I type "pacman" on a terminal.

Offline

Board footer

Powered by FluxBB