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: 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 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> <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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On 07/09/2015 02:42 PM, Marko Rauhamaa wrote: > Skip Montanaro : > >> 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.