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


Groups > comp.lang.python > #57204

Re: What's wrong with Windows Command Prompt (was Re: Error Testing)

Date 2013-10-21 15:29 -0500
From Tim Chase <python.list@tim.thechases.com>
Subject Re: What's wrong with Windows Command Prompt (was Re: Error Testing)
References (1 earlier) <CAPTjJmpOHZchuoCeknTaywb+bz2NjYJNNVKF93Eg4+h42tjcMw@mail.gmail.com> <CAF3XjbxnFV31Sq31B=Hyrh8EseQWn3wXZu7n5BPbuaPaWcaTmA@mail.gmail.com> <20131019133119.4109918c@bigbox.christie.dr> <l3uqer$pi4$1@ger.gmane.org> <CAF3Xjbydc0UFGCa-4VAS+azRuUNK8nHegWeeLQjHaiXoqaQG1g@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1320.1382387285.18130.python-list@python.org> (permalink)

Show all headers | View raw


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



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


Thread

Error Testing Scott Novinger <scnovinger@gmail.com> - 2013-10-19 05:23 -0700
  Re: Error Testing Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-19 13:37 +0100
    Re: Error Testing Scott Novinger <scnovinger@gmail.com> - 2013-10-19 06:34 -0700
      Re: Error Testing Chris Angelico <rosuav@gmail.com> - 2013-10-20 00:42 +1100
      Re: Error Testing rusi <rustompmody@gmail.com> - 2013-10-19 09:22 -0700
        Re: Error Testing Chris Angelico <rosuav@gmail.com> - 2013-10-20 09:28 +1100
        Re: Error Testing Ned Deily <nad@acm.org> - 2013-10-19 15:46 -0700
        Re: Error Testing Chris Angelico <rosuav@gmail.com> - 2013-10-20 10:02 +1100
        Re: Error Testing Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-10-20 12:18 -0400
  Re: Error Testing Ned Batchelder <ned@nedbatchelder.com> - 2013-10-19 08:44 -0400
    Re: Error Testing Roy Smith <roy@panix.com> - 2013-10-19 08:57 -0400
      Re: Error Testing Chris Angelico <rosuav@gmail.com> - 2013-10-20 00:04 +1100
      Re: Error Testing Ned Batchelder <ned@nedbatchelder.com> - 2013-10-19 09:07 -0400
        Re: Error Testing Roy Smith <roy@panix.com> - 2013-10-19 09:09 -0400
      Re: Error Testing Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-19 14:19 +0100
  Re: Error Testing Chris Angelico <rosuav@gmail.com> - 2013-10-20 00:01 +1100
  Re: Error Testing David Robinow <drobinow@gmail.com> - 2013-10-19 14:08 -0400
  Re: Error Testing Tim Chase <tim@thechases.com> - 2013-10-19 13:31 -0500
  Re: Error Testing Terry Reedy <tjreedy@udel.edu> - 2013-10-19 15:50 -0400
  What's wrong with Windows Command Prompt (was Re: Error Testing) Terry Reedy <tjreedy@udel.edu> - 2013-10-19 16:35 -0400
  Re: What's wrong with Windows Command Prompt (was Re: Error Testing) Chris Angelico <rosuav@gmail.com> - 2013-10-20 09:15 +1100
  Re: Error Testing Chris Angelico <rosuav@gmail.com> - 2013-10-20 09:20 +1100
  Re: What's wrong with Windows Command Prompt (was Re: Error Testing) David Robinow <drobinow@gmail.com> - 2013-10-21 15:55 -0400
  Re: What's wrong with Windows Command Prompt (was Re: Error Testing) Tim Chase <python.list@tim.thechases.com> - 2013-10-21 15:29 -0500

csiph-web