NetBSD Problem Report #43148

From  Sun Apr 11 09:03:55 2010
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 786A063B8BC
	for <>; Sun, 11 Apr 2010 09:03:55 +0000 (UTC)
Message-Id: <>
Date: Sun, 11 Apr 2010 12:03:51 +0300
Subject: /bin/ksh vs. rxvt terminal
X-Send-Pr-Version: 3.95

>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 amd64
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             off
   braceexpand    on     login          on     nounset        off    viraw          off
   bgnice         off    markdirs       off    physical       off    vi-show8       off
   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         off
   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'



NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.