classification
Title: curses: wrong indentation
Type: behavior Stage:
Components: Versions: Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: vjp
Priority: normal Keywords:

Created on 2012-06-19 13:19 by vjp, last changed 2012-06-19 13:19 by vjp.

Messages (1)
msg163161 - (view) Author: (vjp) Date: 2012-06-19 13:19
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)
History
Date User Action Args
2012-06-19 13:19:59vjpcreate