From nobody@FreeBSD.org  Tue Oct  5 17:54:46 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5AF761065672
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  5 Oct 2010 17:54:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 3118E8FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  5 Oct 2010 17:54:46 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o95HsjDS077926
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 5 Oct 2010 17:54:45 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o95Hsjh3077924;
	Tue, 5 Oct 2010 17:54:45 GMT
	(envelope-from nobody)
Message-Id: <201010051754.o95Hsjh3077924@www.freebsd.org>
Date: Tue, 5 Oct 2010 17:54:45 GMT
From: Bruce Cran <bruce@cran.org.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sysinstall(8) - shift-tab doesn't work as expected
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         151229
>Category:       bin
>Synopsis:       xterm terminal emulation - shift-tab doesn't work as expected
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    eadler
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 05 18:00:07 UTC 2010
>Closed-Date:    Mon Nov 19 04:10:24 UTC 2012
>Last-Modified:  Mon Nov 19 04:10:24 UTC 2012
>Originator:     Bruce Cran
>Release:        9.0-CURRENT
>Organization:
>Environment:
N/A
>Description:
In various configuration dialogs, it's common to want to go back to a previous field. For example, in the network configuration page, to edit the hostname. Pressing shift-tab as one might expect to use to go back doesn't work, and instead causes sysinstall to proceed to the next page.
>How-To-Repeat:
Press shift-tab in a configuragion page which has several tabs.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-sysinstall 
Responsible-Changed-By: brucec 
Responsible-Changed-When: Tue Oct 5 18:02:58 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151229 

From: Devin Teske <dteske@vicor.com>
To: bug-followup@FreeBSD.org, bruce@cran.org.uk
Cc: Devin Teske <dteske@vicor.com>
Subject: Re: bin/151229: sysinstall(8) - shift-tab doesn't work as expected
Date: Tue, 09 Nov 2010 09:46:59 -0800

 This appears to be related to terminal emulation settings provided
 by /etc/termcap as cons25 works fine while everything else (xterm*, vt*,
 ans*) all seem to have problems.
 
 On the console (where TERM=cons25), shift+tab works as expected.
 Almost anywhere else -- via ssh for example where TERM=xterm -- shift
 +tab is not recognized/emulated so libdialog gets the leading escape
 character out of the sequence produced by shift+tab (ESC+[Z), and
 therefore it exits the menu.
 
 It should be noted that all libdialog-based programs are effected,
 including dialog(1), not just sysinstall(8).
 --
 Devin Teske
 
 dteske@vicor.com
 

From: Devin Teske <devin.teske@fisglobal.com>
To: <bug-followup@FreeBSD.org>, <bruce@cran.org.uk>
Cc:  
Subject: Re: bin/151229: sysinstall(8) - shift-tab doesn&#39;t work as expected
Date: Mon, 23 Jan 2012 07:43:50 -0800

 Appears bsdinstall is also effected in the new 9.0-RELEASE installer.
 -- 
 Devin
 
 _____________
 The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
Responsible-Changed-From-To: freebsd-sysinstall->freebsd-bugs 
Responsible-Changed-By: nwhitehorn 
Responsible-Changed-When: Mon Jan 23 15:57:24 UTC 2012 
Responsible-Changed-Why:  
Send back to the general bug pool. This is a problem with xterm emulation 
generally (not just at the kernel console, and certainly not with 
sysinstall). It might be a patch with our termcap entry or some wider 
unexpected behavior with how xterm works. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151229 

From: Yuri Pankov <yuri.pankov@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: bin/151229: xterm terminal emulation - shift-tab doesn't work as
 expected
Date: Mon, 23 Jan 2012 21:14:58 +0400

 --IS0zKkzwUGydFO0o
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 It's just missing kB (key_btab) cap entry from xterm and screen terminal
 definitions in /etc/termcap. Patch attached (tested using PuTTY and
 native XTerm, as well as screen and tmux).
 
 
 Yuri
 
 --IS0zKkzwUGydFO0o
 Content-Type: text/x-diff; charset=us-ascii
 Content-Disposition: attachment; filename="termcap-backtab.diff"
 
 Index: termcap.src
 ===================================================================
 --- termcap.src	(revision 230473)
 +++ termcap.src	(working copy)
 @@ -2767,7 +2767,7 @@
  	:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:sr=\EM:al=\E[L:\
  	:AL=\E[%dL:dl=\E[M:DL=\E[%dM:cs=\E[%i%d;%dr:dc=\E[P:\
  	:DC=\E[%dP:im=\E[4h:ei=\E[4l:IC=\E[%d@:\
 -	:ks=\E[?1h\E=:ke=\E[?1l\E>:vb=\Eg:\
 +	:kB=\E[Z:ks=\E[?1h\E=:ke=\E[?1l\E>:vb=\Eg:\
  	:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
  	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:\
  	:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:\
 @@ -2822,9 +2822,9 @@
  	:Co#8:co#80:kn#12:li#24:pa#64:\
  	:AB=\E[4%dm:AF=\E[3%dm:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:\
  	:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=\E(B:al=\E[L:\
 -	:as=\E(0:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:\
 +	:as=\E(0:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:\
  	:cm=\E[%i%d;%dH:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:\
 -	:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E[!p\E[?3;4l\E[4l\E>:\
 +	:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E[!p\E[?3;4l\E[4l\E>:kB=\E[Z:\
  	:kD=\E[3~:kb=^H:ke=\E[?1l\E>:ks=\E[?1h\E=:le=^H:md=\E[1m:\
  	:me=\E[m:ml=\El:mr=\E[7m:mu=\Em:nd=\E[C:op=\E[39;49m:\
  	:rc=\E8:rs=\E[!p\E[?3;4l\E[4l\E>:sc=\E7:se=\E[27m:sf=^J:\
 
 --IS0zKkzwUGydFO0o--
Responsible-Changed-From-To: freebsd-bugs->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Wed Jan 25 00:07:01 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151229 
Responsible-Changed-From-To: eadler->freebsd-bugs 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Sun Sep 2 17:05:54 UTC 2012 
Responsible-Changed-Why:  
I won't be looking at this PR for a while and I need to clear some out 
of my queue 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151229 
Responsible-Changed-From-To: freebsd-bugs->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Fri Nov 2 00:35:39 UTC 2012 
Responsible-Changed-Why:  
I'll finally deal with this now 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151229 
State-Changed-From-To: open->analyzed 
State-Changed-By: eadler 
State-Changed-When: Fri Nov 2 00:40:00 UTC 2012 
State-Changed-Why:  
awaiting approval or review prior to commit (no action needed from 
submitter) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151229 
State-Changed-From-To: analyzed->patched 
State-Changed-By: eadler 
State-Changed-When: Thu Nov 15 18:34:48 UTC 2012 
State-Changed-Why:  
committed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151229 
State-Changed-From-To: patched->closed 
State-Changed-By: eadler 
State-Changed-When: Mon Nov 19 04:10:22 UTC 2012 
State-Changed-Why:  
MFCed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151229 
>Unformatted:
