Fedora 19, Nvidia proprietary driver, control-c
https://bugzilla.redhat.com/show_bug.cgi?id=1028272
Recently hit this bug where terminals (urxvt256c) were not getting the ^C interrupt. It is amazing how many times you use this combination in normal work.
The Redhat guys think it is the Nvidia driver which sucks, but at least there is work around. I used a script to start my xterms so I just added an intermediate shell call.
New script for xfce4 to call: ~/bin/generic/run-urxvt
Recently hit this bug where terminals (urxvt256c) were not getting the ^C interrupt. It is amazing how many times you use this combination in normal work.
The Redhat guys think it is the Nvidia driver which sucks, but at least there is work around. I used a script to start my xterms so I just added an intermediate shell call.
New script for xfce4 to call: ~/bin/generic/run-urxvt
#!/bin/bash
# wrapper to work around ^C bug
exec /bin/csh -c "$0.real $@"
Which calls: ~/bin/generic/run-urxvt.real
#!/bin/bash
cd || ( echo "can't cd to ${HOME}" > /dev/console; exit 127)
COLOR[0]=cyan
COLOR[1]=green
COLOR[2]=orange
COLOR[3]=red
COLOR[4]=white
COLOR[5]=yellow
COLOR[6]=lightskyblue
COLOR[7]=#B94949
COLOR[8]=#FDCB54
COLOR[9]=mistyrose
COLOR[10]=GhostWhite
COLOR[11]=khaki
COLOR[12]=SlateGray
COLOR[13]=mediumaquamarine
COLOR[14]=#7459C5
COLOR[15]=violet
COLOR[16]=orangered
COLOR[17]=cornsilk
COLOR[18]=gold
COLOR[19]=LightSlateGrey
#
XBINS=/usr/bin
BINNAME=urxvt256c
#
GEOMETRY=${GEOMETRY:-95x25}
LINEBUFFER=${LINEBUFFER:-2000}
CURSORCOLOR=${CURSORCOLOR:-red}
#
TERMCOLOR="`echo "\`date '+%S'\`%20" | bc`"
if [ ${TERMNAME:-foo} = "foo" ]; then
DATE="`date '+%H:%M:%S'`"
TERMNAME="${COLOR[${TERMCOLOR:-0}]:-white}-${DATE:-0}"
fi
#
# -ptab|+ptab
# If enabled (default), "Horizontal Tab" characters are being stored as actual wide characters in the screen buffer, which makes it possible to select and paste them. Since a horizontal tab is a cursor movement and not an actual glyph, this can sometimes be visually annoying as the cursor on a tab character is displayed as a wide cursor; resource pastableTabs.
for DIR in ${XBINS} ; do
if [ -x "${DIR}/${BINNAME}" ]; then
cd
${DIR}/${BINNAME} \
-sl ${LINEBUFFER} \
-cr ${CURSORCOLOR} \
-bg black \
-geometry ${GEOMETRY} \
-fg ${COLOR[${TERMCOLOR:-0}]:-white} \
-n "${TERMNAME}" \
-T "${TERMNAME}" \
-fn 6x13 \
-fb 6x13bold \
-tn rxvt \
+ptab \
-e /bin/bash
fi
done
exit $?
If you read through the redhat bug report, Andy Bakun, listed some interesting command line research commands I took note of:
cat /proc/self/status | grep SigBlk
ps -f -o user,pid,blocked,bsdstart,args
I'd used variations of these but never like this. Going to add this to my debugging tricks.
Comments
Post a Comment