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


Groups > comp.lang.python > #16689

Re: Backspace does not erase in stdout

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.028
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'lines.': 0.05; 'ugly': 0.07; 'am,': 0.12; 'received:209.85.210.174': 0.13; 'received :mail-iy0-f174.google.com': 0.13; '(eg': 0.16; 'backspace': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'letter"': 0.16; 'word),': 0.16; 'wrote:': 0.18; 'rewrite': 0.18; 'subject:not': 0.21; 'dec': 0.22; 'header:In-Reply-To:1': 0.22; '(b)': 0.23; 'though.': 0.23; 'message-id:@mail.gmail.com': 0.28; 'ran': 0.30; 'wraps': 0.30; "i've": 0.31; 'tue,': 0.32; 'to:addr :python-list': 0.34; 'character': 0.34; '(a)': 0.34; 'stopping': 0.34; 'before.': 0.37; 'received:google.com': 0.37; 'doing': 0.38; 'received:209.85': 0.38; 'hit': 0.40; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'more': 0.61; '2011': 0.61; 'your': 0.61; 'link': 0.63; 'benefit': 0.69; 'physical': 0.79; '4:40': 0.84; 'edwards': 0.91; 'fast,': 0.91
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:content-transfer-encoding; bh=SQwrXlFnC2XZnW0wHpWDsPpX3uobDt/g9YdqHJIG1hg=; b=JpLFcTvfCZaCiLq+RrrHLOGzEwN6RiFw9kC343ByY69U0pQ3U6ZK3NUUZaSB2cbHJG pUQgL0KUonDHQDciBBg59v9hZsrykBPLY0EEuEtZ9zBReW5qVgZKtDQeZVuEkjCVRoGf ZalMCM0zKX/lTrSs4m1HPP5iXtuFpHf13etpc=
MIME-Version 1.0
In-Reply-To <jbivmm$2jl$1@reader1.panix.com>
References <4edcecc6$0$29988$c3e8da3$5496439d@news.astraweb.com> <mailman.3305.1323101623.27778.python-list@python.org> <jbir6r$c3$1@reader1.panix.com> <4edcfe6b$0$29988$c3e8da3$5496439d@news.astraweb.com> <jbivmm$2jl$1@reader1.panix.com>
Date Tue, 6 Dec 2011 09:00:47 +1100
Subject Re: Backspace does not erase in stdout
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3323.1323122450.27778.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1323122450 news.xs4all.nl 6892 [2001:888:2000:d::a6]:52528
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:16689

Show key headers only | View raw


On Tue, Dec 6, 2011 at 4:40 AM, Grant Edwards <invalid@invalid.invalid> wrote:
> After thinking a while, I do remember one program I ran across
> recently that when you hit backspace would erase the entire line, then
> rewrite the entire line stopping one character short of where it was
> before.  Even at network speeds it was noticable when the link was
> encrypted.

I've seen a few programs that do that. Benefit is that it works even
when (a) you're doing more than just "backspace one letter" (eg
deleting an entire word), and (b) when your logical line wraps over
multiple physical lines. It gets ugly fast, though.

ChrisA

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


Thread

Backspace does not erase in stdout Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-12-05 16:09 +0000
  Re: Backspace does not erase in stdout Chris Angelico <rosuav@gmail.com> - 2011-12-06 03:13 +1100
    Re: Backspace does not erase in stdout Grant Edwards <invalid@invalid.invalid> - 2011-12-05 16:23 +0000
      Re: Backspace does not erase in stdout Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-12-05 17:24 +0000
        Re: Backspace does not erase in stdout Grant Edwards <invalid@invalid.invalid> - 2011-12-05 17:40 +0000
          Re: Backspace does not erase in stdout Chris Angelico <rosuav@gmail.com> - 2011-12-06 09:00 +1100
      Re: Backspace does not erase in stdout Nobody <nobody@nowhere.com> - 2011-12-06 09:27 +0000
        Re: Backspace does not erase in stdout Rick Johnson <rantingrickjohnson@gmail.com> - 2011-12-06 05:21 -0800
          Re: Backspace does not erase in stdout Chris Angelico <rosuav@gmail.com> - 2011-12-07 01:03 +1100
          Re: Backspace does not erase in stdout Roy Smith <roy@panix.com> - 2011-12-06 09:49 -0500
        Re: Backspace does not erase in stdout Roy Smith <roy@panix.com> - 2011-12-06 09:45 -0500
        Re: Backspace does not erase in stdout Grant Edwards <invalid@invalid.invalid> - 2011-12-06 15:24 +0000

csiph-web