You are not logged in.

#1 2014-11-12 11:45:18

vohof
Member
Registered: 2013-08-14
Posts: 33

[SOLVES] urxvt: ctrl+u clears the entire line :O

My .xResources is here but here's the urxvt part:

!-------------------------------------------------------------------------------
! URxvt settings
! Colours lifted from Solarized (http://ethanschoonover.com/solarized)
! More info at:
! http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.1.pod
!-------------------------------------------------------------------------------

URxvt.iso14755:         false
URxvt.iso14755_52:      false
urxvt.borderLess: false
URxvt.depth: 32
!URxvt.fading: 0
URxvt.urgentOnBell: true
URxvt.visualBell: false
URxvt.loginShell: true
URxvt.saveLines: 500
URxvt.lineSpace: 1
URxvt*.transparent: true
URxvt*.shading: 40

! Padding
URxvt.internalBorder:10
URxvt.externalBorder:0

! Font
URxvt.font: xft:Fira Mono:size=09:style=Regular
URxvt.boldfont: xft:Fira Mono:size=09:style=Bold

! Scrollbar
URxvt.scrollBar: False
URxvt.secondaryScroll: true
! Input Method
URxvt.preeditType: Root
URxvt.inputMethod: fcitx

! Perl extensions
URxvt.perl-ext-common: default,matcher,keyboard-select,clipboard,url-select
URxvt.matcher.button: 1
URxvt.urlLauncher: google-chrome-stable
URxvt.url-select.button: 1
URxvt.url-select.launcher: google-chrome-stable
URxvt.url-select.underline: true
! Commands
!! ---- ctrl+F12 --> clean screen and scroll-bar
URxvt.keysym.Control-F12: command:\033c
URxvt.keysym.M-Escape: perl:keyboard-select:activate
URxvt.keysym.Control-C:   perl:clipboard:copy
URxvt.keysym.S-Insert:   perl:clipboard:paste
URxvt.keysym.Control-V: perl:clipboard:paste_escaped

! Tabs
!URxvt.perl-ext-common: tabbed
!URxvt.tabbed.tabbar-fg: 8
!URxvt.tabbed.tabbar-bg: 11
!URxvt.tabbed.tab-fg: 11
!URxvt.tabbed.tab-bg: 8

! Cursor
URxvt.cursorBlink: true
URxvt.cursorColor: #CCCCCC
URxvt.cursorUnderline: true

! Pointer
URxvt.pointerBlank: false

I haven't binded anything to ctrl+u so I don't understand why it empties to whole line instead of deleting from the beginning of the line up to my cursor.

Last edited by vohof (2014-11-12 22:28:37)

Offline

#2 2014-11-12 12:39:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVES] urxvt: ctrl+u clears the entire line :O

Does this only happen in urxvt, or in other terminals (and tty) in the same shell?  Is this bash, or what shell?  As these questions may suggest, this is almost certainly controlled by the shell, not the terminal emulator.  Your shellrc file would be more relevant.  As would and readline configurations.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-11-12 13:52:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVES] urxvt: ctrl+u clears the entire line :O

Isn't this the standard readline emacs-style binding? 'Kill backward from point to the beginning of the line.'

Offline

#4 2014-11-12 17:07:39

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVES] urxvt: ctrl+u clears the entire line :O

This might be an interaction with the input method: URxvt.inputMethod: fcitx.  Are you able to test with this line commented out?

Offline

#5 2014-11-12 17:09:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVES] urxvt: ctrl+u clears the entire line :O

I don't have that line and Ctrl-u works as I described.

Offline

#6 2014-11-12 21:40:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVES] urxvt: ctrl+u clears the entire line :O

Karol, the OP is not getting the behavior you describe.  The OP says the whole line is deleted, not just up to the cursor.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2014-11-12 22:28:04

vohof
Member
Registered: 2013-08-14
Posts: 33

Re: [SOLVES] urxvt: ctrl+u clears the entire line :O

Trilby wrote:

Does this only happen in urxvt, or in other terminals (and tty) in the same shell?  Is this bash, or what shell?  As these questions may suggest, this is almost certainly controlled by the shell, not the terminal emulator.  Your shellrc file would be more relevant.  As would and readline configurations.

I'm using zsh as my default shell. I've tried it in bash and it works fine! So it appears it's a problem with my zsh configuration. Thanks!

Related Question

Offline

Board footer

Powered by FluxBB