[New-bugs-announce] [issue15105] curses: wrong indentation

vjp report at bugs.python.org
Tue Jun 19 15:19:59 CEST 2012


New submission from vjp <volker.pilipp at dectris.com>:

Running the program below on Linux (CentOS 5 and 6) two lines are printed, of which the second one is not correctly indented:

Output is:
1234567012345670
               012345670
rather than 
1234567012345670
       012345670




import curses
import time

def display(screen):
    while 1:
        screen.erase()
        screen.addstr("1234567012345670\n")
        screen.addstr("       012345670\n")
        screen.refresh()

        time.sleep(100)
                        
curses.wrapper(display)

----------
messages: 163161
nosy: vjp
priority: normal
severity: normal
status: open
title: curses: wrong indentation
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15105>
_______________________________________


More information about the New-bugs-announce mailing list