You are not logged in.

#1 2009-09-05 12:31:12

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Control-C broken (in wmii?)

I have this problem for already a few months but never bothered for help.. until now wink
basically, in urxvt and in xterm (so i guess any terminal in X), but not outside of X, when I press ctrl-C my terminal window "flashes".  so i think my WM (wmii) is intercepting it or something.

It's not the same problem as http://bbs.archlinux.org/viewtopic.php?id=74372 because I don't get a '^C' or anything like that in my term.  I get no new chars at all.
It's also not the same problem as http://bbs.archlinux.org/viewtopic.php?id=78921 because 'stty -a' shows this:

dieter@dieter-ws-a7n8x-arch ~ stty -a
speed 38400 baud; rows 40; columns 279; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

I think that is all OK (default)

I have no ~/.inputrc, but here is /etc/inputrc:

# do not bell on tab-completion
#set bell-style none

set meta-flag on
set input-meta on
set convert-meta off
set output-meta on

$if mode=emacs

# for linux console and RH/Debian xterm
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[7~": beginning-of-line
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
"\e[1;5C": forward-word
"\e[1;5D": backward-word

# for rxvt
"\e[8~": end-of-line

# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
"\eOH": beginning-of-line
"\eOF": end-of-line

# for freebsd console
"\e[H": beginning-of-line
"\e[F": end-of-line
$endif

# Include user-specific configuration
$include ~/.inputrc

My .wmii-3.5/wmiirc is pretty much the default one.


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#2 2009-09-05 12:35:19

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Control-C broken (in wmii?)

dieter@dieter-ws-a7n8x-arch ~ diff .wmii-3.5/wmiirc /etc/wmii-3.5/wmiirc
5c5
< MODKEY=Mod4
---
> MODKEY=Mod1
19c19
< WMII_MENU="dmenu -fn '$WMII_FONT' -nf '$1' -nb '$2' -sf '$4' -sb '$5'"
---
> WMII_MENU="dmenu -b -fn '$WMII_FONT' -nf '$1' -nb '$2' -sf '$4' -sb '$5'"
21c21
< WMII_TERM="urxvt"
---
> WMII_TERM="xterm"
32,35d31
< /.*Claws Mail.*/ -> 2
< /Liferea/ -> 9
< /.*irc.*/ -> 2 
< /.*work.*/ -> 3
42,45c38
<     bat=''
<     bat=`grep '^remaining capacity:' /proc/acpi/battery/BAT0/state 2>/dev/null | awk '{print $2 $3}'`
<     [ -n "$bat" ] && bat="[ Batt: $bat ]"
<     echo -n $(date) $bat $(uptime | sed 's/.*://; s/,//g') "`mpc 2> /dev/null | grep -`"
---
>     echo -n $(uptime | sed 's/.*://; s/,//g') '|' $(date)

< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#3 2009-09-05 12:39:38

psycepa
Member
Registered: 2009-02-22
Posts: 45

Re: Control-C broken (in wmii?)

do you have 'visual bell' set on? maybe thats the problem?

Offline

#4 2009-09-05 12:47:14

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Control-C broken (in wmii?)

psycepa wrote:

do you have 'visual bell' set on? maybe thats the problem?

hmm yeah i remember enabling such stuff so that my WM can show something if irssi on my remote box in screen over ssh gets hilights.
I basically followed http://hackage.haskell.org/packages/arc … yHook.html

remote box that runs irssi: ~/.screenrc contains 'vbell off'
.Xdefaults on localhost:

!------------------------------------------------------------------------------
! c o l o r -  s e t t i n g s

*background: #222222
*foreground: #999999

! Default
! 0: black
*color0:  #222222
*color8:  #222222
! 1: red
*color1:  #9f6767
*color9:  #9f6767
! 2: green
*color2:  #92ac68
*color10: #92ac68
! 3: yellow
*color3:  #d0d293
*color11: #d0d293
! 4: blue
*color4:  #9aacc3
*color12: #9aacc3
! 5: magenta
*color5:  #bb77a4
*color13: #bb77a4
! 6: cyan
*color6:  #77bbb5
*color14: #77bbb5
! 7: white
*color7:  #777777
*color15: #777777

!------------------------------------------------------------------------------
! u r x v t

URxvt*geometry:         112x22
URxvt*font:            xft:terminus:size=8
!should be more performant but must get xorg to recognize it first
!urxvt*font:  -*-terminus-*-*-*-*-*-*-*-*-*-*-*-*
!urxvt*boldFont:
URxvt.perl-ext-common: default,matcher,tabbed
URxvt.urlLauncher: uzbl
URxvt.matcher.button: 2
URxvt.matcher.pattern.1: \\bwww\\.[\\w-]\\.[\\w./?&@#-]*[\\w/-]
URxvt.colorUL: #9aacc3
URxvt*scrollBar:        false
URxvt*scrollBar_right:        true
URxvt*scrollColor:        #000000

URxvt.tabbed.tabbar-fg:         1
URxvt.tabbed.tabbar-bg:         0
URxvt.tabbed.tab-fg:            1
URxvt.tabbed.tab-bg:            0

urxvt*urgentOnBell: true

! these things break url clicking?
!URxvt.keysum.M-d: perl:mark-yank-urls:activate_mark_mode
!URxvt.perl-ext: selection,mark-yank-urls

Edit: After commenting out 'urxvt*urgentOnBell: true' and restarting X I have the same problem.  (I guess this is obvious, as this just sets the urgency hint for the WM).  So what exactly is the problem then with visual bells and ctrl-C ?

Last edited by Dieter@be (2009-09-05 13:23:19)


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#5 2009-09-26 07:40:21

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Control-C broken (in wmii?)

anyone? psycepa?


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#6 2009-12-27 16:03:10

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Control-C broken (in wmii?)

turned out once i killed xbindkeys and restart it, it works fine ><
maybe something to do with me starting xbindkeys before the WM in .xinitrc


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

Board footer

Powered by FluxBB