You are not logged in.
This happens only when using yaourt-git in screen: http://loka.pl/outgoing/yaourt_colors.png
Is it just me? I tried changing all the color settings in yaourtrc but I can only "fix" it by disabling color entirely.
Last edited by fwojciec (2008-08-22 19:22:55)
Offline
No it's not just you.
If you run yaourt outside of screen, you can see that the highlited text is supposed to be in italics.
Offline
no, colors are fine for me in urxvt
Offline
no, colors are fine for me in urxvt
In urxvt or urxvt+screen?
Offline
It looks like it's impossible to get italics working in screen. I made a patch for yaourt-git to get rid of the problem, though this is really a pretty crude hack that simply disables italics when yaourt is used inside screen:
--- yaourt/src/lib/color.sh.orig 2008-08-22 14:07:28.000000000 -0400
+++ yaourt/src/lib/color.sh 2008-08-22 14:08:08.000000000 -0400
@@ -24,7 +24,11 @@
COL_BOLD="\033[1m"
COL_INVERT="\033[7m"
COL_BLINK="\033[5m"
-COL_ITALIQUE="\033[3m"
+if [ "$(echo $TERM | grep -o screen)" == "screen" ]; then
+ COL_ITALIQUE="\033[0m"
+else
+ COL_ITALIQUE="\033[3m"
+fi
NO_COLOR="\033[0m"
# Color list
This is an altered PKGBUILD for yaourt-git (you can use the yaourt-git tarball from aur and just add the patch line and update md5sums).
# Contributor: Manuel "ekerazha" C. (www.ekerazha.com)
# Author: Julien MISCHKOWITZ <wain@archlinux.fr>
pkgname=yaourt-git
_realname=yaourt
pkgver=20080822
_realver=0.9.1
pkgrel=1
pkgdesc="yaourt test release"
arch=('i686' 'x86_64' 'ppc')
url="http://www.archlinux.fr/yaourt-en/"
license="GPL"
depends=('wget' 'diffutils' 'pacman>=3.1.0')
makedepends=('git')
provides=("$_realname=$_realver")
conflicts=("$_realname")
install=yaourt.install
backup=('etc/yaourtrc')
source=('yaourtrc-0.9-1' 'yaourtrc-0.9.1-1' 'yaourt_screen.patch')
md5sums=('9e43668d5bed3b0561de8c9c10e7d618'
'd07a57031ad0fddb2565861f86cf5675'
'81c04a04303311dcaac76b5d64d5b978')
_gitroot="http://projects.archlinux.fr/yaourt.git"
_gitname="yaourt"
build() {
cd $startdir/src
msg "Connecting to GIT server...."
if [ -d $startdir/src/$_gitname ] ; then
cd $_gitname && git-pull origin
msg "The local files are updated."
else
git clone $_gitroot
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
cd $startdir/src/$_gitname-build/src
patch -Np2 -i $startdir/src/yaourt_screen.patch || return 1
make install DESTDIR=$pkgdir || return 1
# preinstall original backup files for yaourtrc
install -D -m 766 $startdir/src/yaourtrc-0.9-1 $pkgdir/var/lib/yaourt/backupfiles/yaourt/yaourt-0.9-1/yaourtrc
install -D -m 766 $startdir/src/yaourtrc-0.9.1-1 $pkgdir/var/lib/yaourt/backupfiles/yaourt/yaourt-0.9.1-1/yaourtrc
}
Offline
rooloo wrote:no, colors are fine for me in urxvt
In urxvt or urxvt+screen?
in screen. everything was just fine.
Offline
fwojciec wrote:rooloo wrote:no, colors are fine for me in urxvt
In urxvt or urxvt+screen?
in screen. everything was just fine.
Sorry to be inquisitive like this... Was it with the current version of yaourt-git (i.e. pulled from the git repository recently).
Or, actually, could you do a little test for me? Type this in a terminal running screen:
echo -e "\033[3mtest"
Is the displayed text highlighted or italicized? If it is italicized, what terminal are you using, and could you post your screenrc and Xdefaults here so I can try and figure out what's wrong with my setup?
Last edited by fwojciec (2008-08-23 02:58:49)
Offline
Sorry to be inquisitive like this... Was it with the current version of yaourt-git (i.e. pulled from the git repository recently).
No, probably not most recent. I will check it out and see though.
test returns highlight in screen
Offline
Sorry to be inquisitive like this... Was it with the current version of yaourt-git (i.e. pulled from the git repository recently).
No, probably not most recent. I will check it out and see though.
test returns highlight in screen
Thanks for the info anyways.
Offline
umm here is the new working patch (for new version of yaourt, and for those who change their $TERM when in screen):
--- yaourt/src/lib/color.sh.orig 2008-11-09 19:18:55.000000000 -0500
+++ yaourt/src/lib/color.sh 2008-11-09 19:19:09.000000000 -0500
@@ -25,8 +25,8 @@
COL_BLINK="\033[5m"
NO_COLOR="\033[0m"
if [ ! -z "$DISPLAY" ]; then
- COL_ITALIQUE="\033[3m"
- local _colitalique="\033[3m\\"
+ COL_ITALIQUE="\033[0m"
+ local _colitalique="\033[0m\\"
fi
fi
-Tj
Now reborn as Tjh_ (to keep it similar to my username in other places)
Offline
Instead of hacking yaourt, I found adding these lines to .Xdefaults will fix the problem:
URxvt.colorBD: white
URxvt.colorIT: green
I found this trick from http://manpages.ubuntu.com/manpages/har … urxvt.html.
Sorry, this is not working at last.
Last edited by phabulosa (2008-11-19 04:38:57)
Offline