2007年04月01日 星期日 13:15
ÍøÂçµÄ×ÊÔ´±È½ÏÉÙ¡£ÎÒÔÚʹÓÃeclipse +pydevµÄʱºò£¬¼´Ê¹ import curses Ò²»áÌáʾÕÒ²»µ½ÆäÖеĴ󲿷ַ½·¨£¬ ±ÈÈçcurses.noecho()£¬curses.cbreak()µÈµÈ¡£¼ì²éÔËÐл·¾³µÄsys.pathҲû´íÎó£¬ÇëÎÊÈçºÎ½â¾ö£¿ »¹ÓÐÎÞ·¨½«getch »ñÈ¡µÄ×Ö·ûÓëcurses.KEY_RIGHT µÈ²ÎÊý½øÐбȽϣ¬±ÈÈç if c==curses.KEY_RIGHT -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070401/64c498a2/attachment.html
2007年04月01日 星期日 13:17
On 4/1/07, chaorong yu <xiaoyuycr at gmail.com> wrote: > > 网络的资源比较少。我在使用eclipse +pydev的时候,即使 import curses 也会提示找不到其中的大部分方法, > 比如curses.noecho(),curses.cbreak()等等。检查运行环境的sys.path也没错误,请问如何解决? > 还有无法将getch 获取的字符与curses.KEY_RIGHT 等参数进行比较,比如 if c==curses.KEY_RIGHT > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > 貌似 curses 很多功能在 linux 下才行。 -- http://codeplayer.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070401/248b302c/attachment.html
2007年04月01日 星期日 13:21
ÔÚ07-4-1£¬»ÆÒã <yi.codeplayer在gmail.com> дµÀ£º > > On 4/1/07, chaorong yu <xiaoyuycr在gmail.com> wrote: > > > > ÍøÂçµÄ×ÊÔ´±È½ÏÉÙ¡£ÎÒÔÚʹÓÃeclipse +pydevµÄʱºò£¬¼´Ê¹ import curses Ò²»áÌáʾÕÒ²»µ½ÆäÖеĴ󲿷ַ½·¨£¬ > > ±ÈÈçcurses.noecho()£¬curses.cbreak()µÈµÈ¡£¼ì²éÔËÐл·¾³µÄsys.pathҲû´íÎó£¬ÇëÎÊÈçºÎ½â¾ö£¿ > > »¹ÓÐÎÞ·¨½«getch »ñÈ¡µÄ×Ö·ûÓëcurses.KEY_RIGHT µÈ²ÎÊý½øÐбȽϣ¬±ÈÈç if c==curses.KEY_RIGHT > > > > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to > > python-chinese-request在lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > òËÆ curses ºÜ¶à¹¦ÄÜÔÚ linux ϲÅÐС£ > > -- > http://codeplayer.blogspot.com/ > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese ÎÒÓõÄÊÇfedora core 6.Íü¼Ç˵Á˲»ºÃÒâ˼£¬ÎÒÔÚVIMÏÂÃæ±à¼ºÃµÄcursesÓ¦Óã¬ÔÚÖÕ¶ËÏÂÃæÔËÐÐÊÇ¿ÉÒԵġ£µ«ÊÇÔÚeclipseÀïÃæ¾ÍÎÞ·¨ÔËÐÐÁË£¬ÊDz»ÊÇÅäÖõÄÎÊÌ⣿ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070401/857ab025/attachment-0001.htm
2007年04月01日 星期日 17:50
eclipse的terminal 不支持curses,。。。猜的 On 4/1/07, chaorong yu <xiaoyuycr在gmail.com> wrote: > > > 在07-4-1,黄毅 <yi.codeplayer在gmail.com> 写道: > > On 4/1/07, chaorong yu <xiaoyuycr在gmail.com> wrote: > > > > > 网络的资源比较少。我在使用eclipse +pydev的时候,即使 import curses > 也会提示找不到其中的大部分方法,比如curses.noecho(),curses.cbreak()等等。检查运行环境的sys.path也没错误,请问如何解决? > > > 还有无法将getch 获取的字符与curses.KEY_RIGHT 等参数进行比较,比如 if c==curses.KEY_RIGHT > > > > > > _______________________________________________ > > > python-chinese > > > Post: send python-chinese在lists.python.cn > > > Subscribe: send subscribe to > python-chinese-request在lists.python.cn > > > Unsubscribe: send unsubscribe to > python-chinese-request在lists.python.cn > > > Detail Info: > http://python.cn/mailman/listinfo/python-chinese > > > > > > > 貌似 curses 很多功能在 linux 下才行。 > > > > -- > > http://codeplayer.blogspot.com/ > > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to > python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to > python-chinese-request在lists.python.cn > > Detail Info: > http://python.cn/mailman/listinfo/python-chinese > > 我用的是fedora core > 6.忘记说了不好意思,我在VIM下面编辑好的curses应用,在终端下面运行是可以的。但是在eclipse里面就无法运行了,是不是配置的问题? > > > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to > python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to > python-chinese-request在lists.python.cn > Detail Info: > http://python.cn/mailman/listinfo/python-chinese >
Zeuux © 2025
京ICP备05028076号