X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 78.192.0.157 Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!nntpfeed.proxad.net!78.192.0.157.MISMATCH!news.le-studio75.com!newsfeed.xs4all.nl!newsfeed6.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.045 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'editors,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'input,': 0.16; 'subject:continuing': 0.16; 'tui': 0.16; 'wrote:': 0.16; 'wed,': 0.17; '(which': 0.19; 'header:In-Reply-To:1': 0.22; 'parameters.': 0.23; 'pm,': 0.24; 'command': 0.24; 'input': 0.24; 'aug': 0.24; 'consist': 0.24; 'message-id:@mail.gmail.com': 0.29; 'lines': 0.30; 'definition': 0.30; 'proficient': 0.30; 'subject:?': 0.31; 'yet': 0.32; 'implement': 0.32; 'to:addr :python-list': 0.33; 'done': 0.34; '...': 0.34; 'quite': 0.34; '17,': 0.34; 'file': 0.36; 'data.': 0.36; 'interface.': 0.37; 'run': 0.37; 'but': 0.37; 'something': 0.37; 'especially': 0.37; 'two': 0.37; 'steven': 0.38; 'some': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'client': 0.39; 'difficult': 0.39; 'user': 0.39; 'plain': 0.39; 'to:addr:python.org': 0.39; 'raw': 0.40; "it's": 0.40; 'where': 0.40; 'extremely': 0.40; 'become': 0.71; 'client-side': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=iOOnS1XIqSai1MeY+wb1vuFzCT8m8V31XLaq81PVUIE=; b=Tlk9lVMn2snSOYJTDgNTOa6y7vZHduC8TOCfz4L2TSi/YAatuNcEcGTIFiyMhgl6sW A2KdRGdp+bNW8gj6iT9vH5cmM7il95lwIFANLdjBQajP4U/WPpjYVToHFKvtz41NvYof UvzA34Hw10tve0kKejxYsDxxIgVsVQ0cINnkQ= MIME-Version: 1.0 In-Reply-To: <4e4c088c$0$29978$c3e8da3$5496439d@news.astraweb.com> References: <4e3f2827$0$5826$c3e8da3$12bcf670@news.astraweb.com> <2670f4ee-0ab4-42ba-a472-42a4c7669ce8@p5g2000vbl.googlegroups.com> <4e4c088c$0$29978$c3e8da3$5496439d@news.astraweb.com> Date: Wed, 17 Aug 2011 23:10:38 +0100 Subject: Re: Wait for a keypress before continuing? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313619041 news.xs4all.nl 23842 [2001:888:2000:d::a6]:33457 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11720 On Wed, Aug 17, 2011 at 7:29 PM, Steven D'Aprano wrote: > The raw_input/input UI is well-designed for entering plain text data. It is > extremely poor as a command interface. > > ... (Imagine how awkward it would be to use a TUI mail client or > text editor where the only user input was from something like raw_input.) I run a MUD and play several. MUDs by definition have only line-based input (if you use a raw TELNET client, you have character-based input, but most MUD clients send entire lines of text at once); yet it is possible to implement a reasonably-viable file editor. It's not difficult to become quite proficient with line-based editors, especially if you rig some client-side support (which I have done on two of the MUDs). Line-based input is excellent as a command interface, if commands consist of verbs and parameters. It's terrible for playing Tetris on. ChrisA