NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/43148: /bin/ksh vs. rxvt terminal

>Number:         43148
>Category:       bin
>Synopsis:       /bin/ksh vs. rxvt terminal
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 11 09:05:00 +0000 2010
>Originator:     Aleksey Cheusov
>Release:        NetBSD 5.0_STABLE
System: NetBSD 5.0_STABLE NetBSD 5.0_STABLE (GENERIC) #0: 
Sat Feb 20 12:33:43 EET 2010 
Architecture: x86_64
Machine: amd64
/bin/ksh doesn't work properly with x11/mrxvt terminal application (TERM=rxvt).

Home and End keys doesn't work.

Assignments for Home and End keys were made in the following way

   asrock# bind '^[[7~=beginning-of-line'
   asrock# bind '^[[8~=end-of-line'
   asrock# bind | grep beginning-of-line
   ^A = beginning-of-line
   ^X7 = beginning-of-line
   ^XH = beginning-of-line
   asrock# bind | grep end-of-line
   ^E = end-of-line
   ^X8 = end-of-line
   ^XF = end-of-line

but when they pressed, cursor is moved to the beginning/end of line
and unexpected symbol ~ (tilde) is shown like this

   asrock# ~qqq # Home was pressed here
   asrock# qqq~ # End was pressed here

C-a and C-e keys works just fine.

   asrock# set -o
   Current option settings
   allexport      off    keyword        off    notify         off    vi         
   braceexpand    on     login          on     nounset        off    viraw      
   bgnice         off    markdirs       off    physical       off    vi-show8   
   emacs          on     monitor        on     posix          on     
vi-tabcomplete on
   emacs-usemeta  off    noclobber      off    privileged     off    
vi-esccomplete off
   errexit        off    noexec         off    restricted     off    xtrace     
   gmacs          off    noglob         off    stdin          on
   ignoreeof      on     nohup          on     trackall       off
   interactive    on     nolog          off    verbose        off

shells/mksh, shells/bash and shells/zsh work just perfectly.
/bin/ksh in xterm (XTERM=xterm) also works fine.

Further details are here

  $ mrxvt -ls
  $ /bin/ksh -li # in mrxvt window
  $ bind '^[[7~=beginning-of-line'
  $ bind '^[[8~=end-of-line'



Home | Main Index | Thread Index | Old Index