Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397829 - x11-terms/rxvt-unicode-9.14 - files/rxvt-unicode-9.14-clear.patch makes certain PS1 invisible
Summary: x11-terms/rxvt-unicode-9.14 - files/rxvt-unicode-9.14-clear.patch makes certa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Jeroen Roovers (RETIRED)
URL: https://bbs.archlinux.org/viewtopic.p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-06 01:34 UTC by avx
Modified: 2012-01-10 00:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description avx 2012-01-06 01:34:28 UTC
After emerging 9.14, urxvt doesn't play nice with my prompt, meaning the prompt shows and I can input stuff, but I only get blank lines in return - strangly only for command output, prompts like "Password:" still appear.

At first I thought I misconfigured some colors or it's a side-effect of the new "secondary-wheel"-patch, but it's not. A simple downgrade to 9.12-r1 fixes it for me.

For those who want to try, this is my zsh-prompt:
--snip--
PS1=$'%{\e[s\e[H\e[30;42;1m%}[%~][%M] %{\e[K\e[256C\e[8D\e[30;42;1m%} [%D{%H:%M}]%(?,%{\e[32;32m%}█,%{\e[31;41;1m█)%}%{\e[u\e[1A%}\n%{\e[0;32m%}> %{\e[0m%}
--snap--

Same prompt also still works in xterm

Reproducible: Always

Steps to Reproduce:
1. update rxvt-unicode to 9.14
2. start a new terminal (ie not urxvtc)
3. be puzzled
Actual Results:  
unsuable terminal

Expected Results:  
shouldn't have changed

I'm quite aware that this might be no ordinary prompt, but it worked for a long time in all my terminals. Using a simpler prompt like "> " doesn't introduce the problem.

emerge --info (for 9.12-r1, sorry):
--snip--
Portage 2.1.10.44 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.1.1-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.1.1-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Thu, 05 Jan 2012 09:15:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.7
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.4_p6-r1, 1.7.9-r2, 1.11.2
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo phorcix x-yubikey vmware
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -msse4 -mcx16 -msahf -mpopcnt -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -msse4 -mcx16 -msahf -mpopcnt -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
LINGUAS="de de_DE en en_US"
MAKEOPTS="-j9 --quiet"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/gentoo"
PORTDIR_OVERLAY="/usr/portage/phorcix /usr/portage/yubikey /var/lib/layman/vmware"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="*" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="casio_qv" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev joystick wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de de_DE en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

x11-terms/rxvt-unicode-9.12-r1 was built with the following:
USE="256-color mousewheel (multilib) perl truetype wcwidth -afterimage -alt-font-width -blink -fading-colors -focused-urgency -font-styles -force-hints -iso14755 -pixbuf -unicode3 -vanilla"
--snap--
Comment 1 avx 2012-01-06 13:19:14 UTC
Traced it down.

The problem only appears because of the newly added rxvt-unicode-9.14-clear.patch. If I comment that from the ebuild, everything's working dandy as before.
Comment 2 Alex Alexander (RETIRED) gentoo-dev 2012-01-07 12:05:05 UTC
Yeah, reproduced the issue myself, seems zsh calls rxvt's clear code to create that fancy prompt.

I'll move the clear patch to a USE flag with a warning for people using prompts similar to your's.

Thanks for reporting :)
Comment 3 Alex Alexander (RETIRED) gentoo-dev 2012-01-07 12:35:44 UTC
OK, the clear patch is now optional. Although it seems you got an answer/fix from the patch author already, this will allow you to avoid fixing PS1 in all your systems if you don't care about the clear fix :)

Cheers
Comment 4 avx 2012-01-07 14:58:24 UTC
Thanks Alex :)

Question, though: Can you/somebody think of another way, this clear.patch can be broken, except the way my propmt is doing it?

If not, maybe we could use something like
--snip--
use buffer-on-clear && use first-row-prompt && sed -i "s@==\s0@== 1@" "${FILESDIR}"/${P}-clear.patch" && epatch "${FILESDIR}"/${P}-clear.patch
--snap--
?

That way, I could just set these two flags and wouldn't need an overlay with the custom patch.
Comment 5 Alex Alexander (RETIRED) gentoo-dev 2012-01-09 09:19:57 UTC
Are you sure that custom patch works the way it should for you? In my tests, altering the clear patch like that results in a screen full of empty lines buffered when you press ctrl-l.

The only drawback with the original patch and your PS1 (well, the fixed one by rlblaster that works with the clear patch) is that pressing ctrl-l saves the top line in the buffer as well, but that seems better than having to scroll through empty lines.
Comment 6 avx 2012-01-10 00:28:21 UTC
You're right. I played a little with the patch and my prompt-settings, came to the conclusion that I give preference to my prompt and won't apply the patch.

thanks, though :)