[Idle-dev] backspace char in IDLE

Hernan Martinez Foffani hernan@orgmf.com.ar
Fri, 23 Nov 2001 14:46:57 +0100


It can be a matter of discussion what should
be the "right" behaviour of printing a backspace
on a GUI.
I'm opening two bugs report on sourceforge, one
for the "\b" and the other somewhat related.

-Hernan

> -----Mensaje original-----
> De: idle-dev-admin@python.org [mailto:idle-dev-admin@python.org]En
> nombre de Patrice Moreaux
> Enviado el: viernes, 23 de noviembre de 2001 13:34
> Para: idle-dev@python.org
> Asunto: [Idle-dev] backspace char in IDLE
>
>
> dear all,
>
> I am almost a beginner in Python but not in programming
> (I am associate professor in Computer Science)
>
> Planning to teach Python I experienced a problem with control
> char printing:
>
> ============
> #!/usr/bin/env python
> import time
>
> a="this is a string."
> print a
>
> #trying to print one char of a every t second
> #WITHOUT added SPACES between characters of a
> t=0.2
> for i in a:
>      print "\b%c" % (i),
>      time.sleep(t)
>
> #end of tstchar.py
> ===================
> this script does not print chars of a without spaces when run in
> the IDLE (Win98):
> i get a "rectangle" char instead of a backspace.
>
> it runs ok in command line mode (either under W98 MSDOS window or Linux).
>
> I do not configure anything in the IDLE.
>
> Is there a solution?
> Did I make a mistake somewhere?
>
> Thanks for your answer.
>
> Regards,
> Patrice.
>
>
> _________________________________________________________
>                                                      Patrice MOREAUX
> Dpt. de Mathematiques et Informatique
>   LERI-RESYCOM
> UFR de Sciences Exactes et
>    Universite de Reims
> Naturelles de Reims
>         Champagne-Ardenne
>                                       BP 1039 -- 51687 REIMS Cedex 2
>
> Tel: (33 3)/(03) 26.91.32.16 ou 33.67     Telecopie: (33 3)/(03)
> 26.91.33.97
> email: patrice.moreaux@univ-reims.fr      http://www.univ-reims.fr/resycom
> _________________________________________________________
>
> _______________________________________________
> IDLE-dev mailing list
> IDLE-dev@python.org
> http://mail.python.org/mailman/listinfo/idle-dev
>