Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #93624

Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time?

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <torriem+gmail@torriefamily.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.016
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'modifier': 0.09; 'subject:both': 0.09; 'subject:same': 0.09; 'tab': 0.09; 'subject: \n ': 0.15; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'set,': 0.16; 'wrote:': 0.16; 'detect': 0.18; 'skip': 0.18; 'input': 0.18; 'keyboard': 0.22; 'bit': 0.23; 'second': 0.24; 'plain': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; "doesn't": 0.26; 'sense': 0.26; 'point.': 0.27; 'separate': 0.27; 'subject: -- ': 0.27; 'readline': 0.29; 'thus,': 0.29; 'character': 0.29; 'code': 0.30; 'message-id:@gmail.com': 0.34; 'subject:time': 0.35; 'unicode': 0.35; 'to:addr:python- list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'received:org': 0.37; 'itself': 0.38; 'subject:the': 0.39; 'received:192': 0.39; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'skip:u 10': 0.61; 'yes': 0.62; 'charset:windows-1252': 0.62; 'different': 0.63; 'physical': 0.72; 'plays': 0.93
X-Virus-Scanned amavisd-new at torriefamily.org
Date Thu, 09 Jul 2015 22:56:05 -0600
From Michael Torrie <torriem@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version 1.0
To python-list@python.org
Subject Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time?
References <55904328$0$1636$c3e8da3$5496439d@news.astraweb.com> <tsAnx.3609$JE3.2939@fx44.am4> <mailman.371.1436473016.3674.python-list@python.org> <87si8x6p1p.fsf@elektro.pacujo.net>
In-Reply-To <87si8x6p1p.fsf@elektro.pacujo.net>
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.383.1436504170.3674.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1436504170 news.xs4all.nl 2828 [2001:888:2000:d::a6]:41209
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:93624

Show key headers only | View raw


On 07/09/2015 02:42 PM, Marko Rauhamaa wrote:
> Skip Montanaro <skip.montanaro@gmail.com>:
> 
>> It makes perfect sense to me that TAB and Ctrl-TAB would generate the
>> same keycode, as TAB is itself a control character (Ctrl-I). As the
>> Ctrl modifier bit is effectively already set, I don't think you can
>> really set it a second time and be able to detect it.
> 
> If you input a character stream, that's the case since the characters
> are Unicode code points. AFAIK, Unicode doesn't have Ctrl-TAB as a
> separate code point.

Yes and readline works on character streams, not with X11.
> 
> However, X11 key events come with modifiers. Thus, CAPS-A, LeftShift-A,
> RightShift-A, CAPS-LeftShift-RightShift-A and the plain A are different
> key events (provided the physical keyboard plays along).

Not relevant to libreadline, unfortunately.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Readline -- cannot bind to both Ctrl-tab and tab at the same time? Steven D'Aprano <steve@pearwood.info> - 2015-06-29 04:55 +1000
  Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time? Laura Creighton <lac@openend.se> - 2015-06-28 23:22 +0200
  Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time? Chris Angelico <rosuav@gmail.com> - 2015-06-29 11:36 +1000
  Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time? Tony the Tiger <tony@tiger.invalid> - 2015-07-09 20:03 +0000
    Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time? Marko Rauhamaa <marko@pacujo.net> - 2015-07-09 23:42 +0300
      Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time? Michael Torrie <torriem@gmail.com> - 2015-07-09 22:56 -0600

csiph-web