Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Windows': 0.02; 'insert': 0.05; 'interpreter': 0.05; 'subject:Error': 0.07; 'suppose': 0.07; 'filenames': 0.09; 'prefix': 0.09; 'subset': 0.09; 'typed': 0.09; 'mostly': 0.14; 'windows': 0.15; '(other': 0.16; '-tkc': 0.16; 'adjacent': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'interpreter,': 0.16; 'one)': 0.16; 'subject: \n ': 0.16; 'followed': 0.16; 'wrote:': 0.18; "python's": 0.19; 'typing': 0.19; 'command': 0.22; 'library,': 0.24; 'header:In-Reply-To:1': 0.27; 'rest': 0.29; 'character': 0.29; 'words': 0.29; 'matching': 0.30; 'relative': 0.30; 'specified': 0.30; 'skip:( 20': 0.30; "i'm": 0.30; 'lines': 0.31; 'linux': 0.33; 'comment': 0.34; 'subject: (': 0.35; 'subject:with': 0.35; 'offered': 0.35; 'version': 0.36; 'curious': 0.36; 'executing': 0.36; 'charset:us- ascii': 0.36; 'being': 0.38; 'to:addr:python-list': 0.38; 'previous': 0.38; 'ability': 0.39; 'to:addr:python.org': 0.39; 'first': 0.61; 'power': 0.76; 'received:50.22': 0.84; 'subject:Testing': 0.84; 'clearing': 0.91 Date: Mon, 21 Oct 2013 15:29:43 -0500 From: Tim Chase To: python-list@python.org Subject: Re: What's wrong with Windows Command Prompt (was Re: Error Testing) In-Reply-To: References: <33549834-2f27-47f3-abea-eb3486909dec@googlegroups.com> <20131019133119.4109918c@bigbox.christie.dr> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: none X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 43 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382387285 news.xs4all.nl 16003 [2001:888:2000:d::a6]:58490 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57204 On 2013-10-21 15:55, David Robinow wrote: > I wasn't aware that the interactive interpreter on Linux had > features that the Windows version didn't. I'm curious what those > features might be. It's mostly the benefits that come from being built with the readline library, meaning you get - command history (Win32 offers this, the rest not AFAIK) - command-history searchability (control+R) - the ability to pull down things from previous lines (alt+period in particular) - the ability to comment out the currently typed command without executing it (alt+octothorpe) - the ability to prefix text/commands with a count (alt+number_of_times followed by the character/command) - the ability to insert matching filenames (alt+asterisk after typing path relative to the $CWD) - clearing to the start/end of line (control+U/control+K) - the ability to paste content (control+Y) previously-cut by ^U/^K - the ability to transpose adjacent words (alt+T) - the ability to jump forward/backward to a specified character (control+] and control+alt+] followed by the target char) like f/F in vi/vim Those are just a subset of the power offered by readline when built into Python's interpreter, none of which work (other than that first one) on Win32's cmd.exe (or, I suppose command.com). -tkc