homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: curses: wrong indentation
Type: behavior Stage: resolved
Components: Versions: Python 2.7
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, ned.deily, vjp
Priority: normal Keywords:

Created on 2012年06月19日 13:19 by vjp, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (3)
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)
msg222688 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014年07月10日 19:12
@vjp sorry about the delay in getting back to you :(
Anyone with curses knowledge who can comment on this please, I'm sorry I'm on Windows.
msg222715 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2014年07月11日 00:27
Sorry, I am unable to reproduce the failure on a couple of different systems; they all work as expected. If the problem persists, try checking your terminal settings and perhaps what version of libncurses* is being used.
History
Date User Action Args
2022年04月11日 14:57:31adminsetgithub: 59310
2014年07月11日 00:27:46ned.deilysetstatus: open -> closed

nosy: + ned.deily
messages: + msg222715

resolution: works for me
stage: resolved
2014年07月10日 19:12:10BreamoreBoysetnosy: + BreamoreBoy
messages: + msg222688
2012年06月19日 13:19:59vjpcreate

AltStyle によって変換されたページ (->オリジナル) /