NetBSD Problem Report #43148

From vle@gmx.net  Sun Apr 11 09:03:55 2010
Return-Path: <vle@gmx.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 786A063B8BC
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 11 Apr 2010 09:03:55 +0000 (UTC)
Message-Id: <87vdbynyx4.fsf@asrock.chizhovka.net>
Date: Sun, 11 Apr 2010 12:03:51 +0300
From: vle@gmx.net
To: gnats-bugs@gnats.NetBSD.org
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
>Organization:
>Environment:
System: NetBSD asrock.chizhovka.net 5.0_STABLE NetBSD 5.0_STABLE (GENERIC) #0: Sat Feb 20 12:33:43 EET 2010 cheusov@asrock.chizhovka.net:/srv/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
/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
   asrock#

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
or
   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
   asrock#

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

Further details are here

   http://mail-index.netbsd.org/netbsd-users/2010/03/29/msg005926.html

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

>Fix:

Unknown

NetBSD Home
NetBSD PR Database Search

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