简体   繁体   中英

Trouble porting over python-2.7 curses to python-2.4

I wrote my python code at home for 2.7, but now I'm trying to fix it to run on 2.4 here at work.

The first is hline does not work for me. I have

stdscr.hline(0,0,'=',5)

but it only prints out one = sign.

Second is chgat does not work in

screen.chgat(0,0,-1,curses.color_pair(2)

as it returns AttributeError: chgat

Not sure how to disable cursors since

curses.curs_set(0)` doesn't work either.`enter code here`

I can't find any documentation on curses for python 2.4.3 so I'm having trouble porting this over.

The answer to your precise question "documentation on curses for python 2.4.3" is:

http://docs.python.org/release/2.4.3/lib/module-curses.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM