You are not logged in.

#26 2007-03-13 14:57:38

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

Re: coloured pacman 3.x

Miguel wrote:

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.

color in init scripts can be set in /etc/rc.d/function


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

Offline

#27 2007-03-13 15:15:56

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

Re: coloured pacman 3.x

When this feature actually gets merged in (probably 3.1), the colors will probably be configurable (this = red, that = magenta)

Offline

#28 2007-03-13 15:30:20

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

Re: coloured pacman 3.x

vogo wrote:

color in init scripts can be set in /etc/rc.d/function

Thanks!

phrakture wrote:

When this feature actually gets merged in (probably 3.1), the colors will probably be configurable (this = red, that = magenta)

That's really nice, and seems logical to me.

Offline

#29 2007-03-15 08:40:21

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

Re: coloured pacman 3.x

Patch is now up to pacman-3.0.0-rc2, PKGBUILD and patch download here

--enjoy

(10:45 ECT) ops smile fix problem with option UseColor in /etc/pacman.conf (it was  malfunction)

fix bug whit padding spaces if output si colored, fix is available in cvs snapshot http://www.fi.muni.cz/~xgondz/pacman3-c … _snapshot/

Last edited by vogo (2007-03-15 15:30:44)


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

Offline

#30 2007-03-16 00:15:49

shevegen
Member
Registered: 2005-03-17
Posts: 10

Re: coloured pacman 3.x

Well i think _I_ would personally love it if it makes it into
the first "stable" release of pacman 3.0 :-)

At least I love colours!

Offline

#31 2007-03-16 07:20:26

Xilon
Member
Registered: 2007-01-01
Posts: 243

Re: coloured pacman 3.x

Is this going to use termcap or something to be more portable? From what I understand not all terminals use these escape sequences.

Offline

#32 2007-03-16 07:41:35

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

Re: coloured pacman 3.x

Xilon wrote:

Is this going to use termcap or something to be more portable? From what I understand not all terminals use these escape sequences.

ANSI escape sequences are supported in most of terminals, it is standart, and it was simpler use this to make coloured pacman. I don't know what shall pacman 3.1 use for colored output, but I think that shall ANSI sequences too.


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

Offline

#33 2007-03-16 15:37:34

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

Re: coloured pacman 3.x

changes:
cleanup of the code (in patch of course smile )
error, warning and debug messages are now white (or bold on white background)

source and PKGBUILD


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

Offline

#34 2007-03-25 13:51:31

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

Re: coloured pacman 3.x

Hi all,

I rewrote most parts of the patch, in strings are "color marks" (code is much cleaner), this marks are replaced by ansi sequences (only, when output is tty), if you like see patch. I make some changes in output too. This is a final form wink.
I hope you like it (it's much better like first version smile )

PKGBUILD, source code and patch

very usefull function smile

# ~/.bashrc
# pacman
pacman() {
    if echo $* |grep -E "\-S[cdefuwyvrbn]*\b|-[RUAF].*|\-S\b" &> /dev/null ; then
        sudo /usr/bin/pacman $*
        # su -c "/usr/bin/pacman $*"
    else
        /usr/bin/pacman $*
    fi
}

Last edited by vogo (2007-04-12 06:36:14)


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

Offline

#35 2007-04-01 20:18:50

kanpio
Member
From: Poland/Wrocław
Registered: 2006-01-25
Posts: 49

Re: coloured pacman 3.x

It's realy great stuff. Thanks! I think it should be in official pacman 3.0.0.

The output would be more readable if some less important lines were gray instead of white, I think (like in makepkg). How about that idea?

Good job.

Offline

#36 2007-04-01 21:19:50

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: coloured pacman 3.x

Thanks for this patch, it works nice here.


Mortuus in anima, curam gero cutis

Offline

#37 2007-04-04 20:30:15

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

Re: coloured pacman 3.x

update: patch for pacman 3.0.1 http://www.fi.muni.cz/~xgondz/pacman3-color/


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

Offline

#38 2007-04-08 23:45:35

gbrunoro
Member
From: Belo Horizonte, Brasil
Registered: 2007-04-04
Posts: 55

Re: coloured pacman 3.x

during makepkg, i got :

==> Validating source files with md5sums
    pacman-3.0.1.tar.gz ... Passed
    patch-pacman-3.0.1.color.diff ... FAILED
==> ERROR: One or more files did not pass the validity check!

Offline

#39 2007-04-09 06:54:45

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

Re: coloured pacman 3.x

==> Validating source files with md5sums
    pacman-3.0.1.tar.gz ... Passed
    patch-pacman-3.0.1.color.diff ... Passed
==> Validating source files with sha1sums
    pacman-3.0.1.tar.gz ... Passed
    patch-pacman-3.0.1.color.diff ... Passed

please download last version of PKGBUILD
all is ok, I make some changes, its a little step backward. I was at a party with my friends, and we spoke about pacman. I have finally any feedback, output are this changes.


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

Offline

#40 2007-04-09 18:00:41

gbrunoro
Member
From: Belo Horizonte, Brasil
Registered: 2007-04-04
Posts: 55

Re: coloured pacman 3.x

got it, thanks! big_smile
I had to download it from that PKGBUILD folder, because the tar.gz one still don't pass on md5
BTW looks very nice the coloured pacman from your patch ohoho

Offline

#41 2007-04-10 17:23:50

glad
Member
From: Norway
Registered: 2005-11-01
Posts: 103
Website

Re: coloured pacman 3.x

can someone upload a pkg for this package, on my system it refuses to build.. so if someone could upload it please?

it would be appreciated..

Offline

#42 2007-04-11 20:03:55

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

Re: coloured pacman 3.x

One little bug fix: bad text alignment in "Description" in package info (pacman -Si package)


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

Offline

#43 2007-04-11 20:42:01

glad
Member
From: Norway
Registered: 2005-11-01
Posts: 103
Website

Re: coloured pacman 3.x

i get the error cannot find -lacl under compilation. i assumed that i was missing the library but that was not the case, any ideas?

Last edited by glad (2007-04-11 20:42:25)

Offline

#44 2007-04-11 21:00:40

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

Re: coloured pacman 3.x

glad wrote:

i get the error cannot find -lacl under compilation.

I updated arch, and I've the same problem, wtf? it's a problem in someone package?! Yes that is acl-2.2.39-2.pkg.tar.gz, if use acl-2.2.39-1.pkg.tar.gz is all ok.


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

Offline

#45 2007-04-12 17:42:21

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

Re: coloured pacman 3.x

better format in Backup files
paman-color2.png

enjoy smile

edit: one more lost "\n" ops wink

edit: some little changes

Last edited by vogo (2007-04-13 10:34:05)


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

Offline

#46 2007-04-25 22:34:14

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

Re: coloured pacman 3.x

update: patch for pacman-3.0.2, download here, enjoy wink


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

Offline

#47 2007-04-26 05:26:27

aRcHaTe
Member
Registered: 2006-10-24
Posts: 646

Re: coloured pacman 3.x

is it gonna be ON pacman ???


Its a sick world we live in....

Offline

#48 2007-04-26 16:49:46

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: coloured pacman 3.x

sickhate wrote:

is it gonna be ON pacman ???

Please read the whole thread before you ask questions.

P.S. No.

Offline

#49 2007-04-28 17:37:01

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

Re: coloured pacman 3.x

Hi all, here is patch for pacman-3.0.3 wink enjoy

edit: some fixes in PKGBUILD
add option --nocolor and UseColor in pacman's manpages

Last edited by vogo (2007-05-02 19:46:38)


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

Offline

#50 2007-05-06 21:01:43

kanpio
Member
From: Poland/Wrocław
Registered: 2006-01-25
Posts: 49

Re: coloured pacman 3.x

Your patch doesn't support locales. Could you work on it? It would be awesome!!!

Offline

Board footer

Powered by FluxBB