Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Nov 2011 13:41:32 +0100
From:      Stefan Bethke <stb@lassitu.de>
To:        Aleksandr Rybalko <ray@dlink.ua>
Cc:        freebsd-current@freebsd.org
Subject:   Re: 9.0-RC2 - bsdinstall - ifconfig
Message-ID:  <FB3EE3E0-4091-468C-B4D0-74505F6AD381@lassitu.de>
In-Reply-To: <20111123120715.7a338cbd.ray@dlink.ua>
References:  <20111123120715.7a338cbd.ray@dlink.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 23.11.2011 um 11:07 schrieb Aleksandr Rybalko:

> Hi peoples who stay current!
>=20
> Several days ago I made fresh installation of 9.0-RC2.
> I found that new installer is very easy and very usable.
> But found small problem:
> When I doing interface configuration, I press <tab> instead of <arrow>
> and then for return press <Shift+Tab>, after that dialog was closed
> with only IP field filled.
>=20
> So it is not a problem that <Shift+Tab> not supported, but problem is
> that unexpected keys combinations close the dialog box.

I've been annoyed by this dialog mis-feature as well, and I've just =
found this debian bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D641135

My standard terminal is Mac OS X' Terminal.app, using TERM=3Dxterm-color. =
 I've tested this dialog invocation:
$ dialog --menu foo 20 60 12 a one b two c three
Hitting Shift-Tab exits from dialog.

Looking at /etc/termcap, it seems the various xterm definitions lack a =
kB definition.  syscons as well as Terminal.app produces ^]]Z for =
Shift-Tab.

If I set these environment variables:
$ export TERMCAP=3D'xterm-fixed:kB=3D\E[Z:tc=3Dxterm-color:'
$ export TERM=3Dxterm-fixed

dialog behaves correctly.

This article discusses how to add a keybinding for plain xterm to =
produce ^[[Z for Shift-Tab (by default, xterm produces ^I for both Tab =
and Shift-Tab):
http://stuff.mit.edu/afs/sipb/user/daveg/Info/backtab-howto.txt

It might be beneficial to add kB=3D\e[Z to the standard xterm entries in =
our termcap.


Stefan

--=20
Stefan Bethke <stb@lassitu.de>   Fon +49 151 14070811




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FB3EE3E0-4091-468C-B4D0-74505F6AD381>