Dne Monday 01 of October 2007 16:13:45 David Michal napsal(a): > Na ANSI/POSIX systemech se to resi pres knihovnu ncurses, v pythonu je > pro pristup k ncurses knihovna curses. > > Napsat sam si to urcite muzes, ale uz podle citace z > http://www.amk.ca/python/howto/curses/curses.html, to bude pekna fuska. > > The curses library supplies a terminal-independent screen-painting and > keyboard-handling facility for text-based terminals; such terminals > include VT100s, the Linux console, and the simulated terminal provided > by X11 programs such as xterm and rxvt. Display terminals support > various control codes to perform common operations such as moving the > cursor, scrolling the screen, and erasing areas. Different terminals use > widely differing codes, and often have their own minor quirks. > > Jinak poradit neumim, jedine snad odkazat na zdrojaky curses a podivat > se jak to maji udelane. > David > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > > Ondrej Beranek > > Sent: Monday, October 01, 2007 2:41 PM > > To: Konference PyCZ > > Subject: Re: [python] ovladani textove konzole > > > > Diky. Ja nutne nepotrebuji knihovnu umejici vsechnomozne, klidne si ji > > napisu sam. potreboval bych nejaky prostredek k tomu. treba radu "pres > > co" se tohle resi. > > _______________________________________________ > Python mailing list > [email protected] > http://www.py.cz/mailman/listinfo/python
Zkus to pomocí ANSI znaků barev, viz http://pueblo.sourceforge.net/doc/manual/ansi_color_codes.html . Vkládá se to za escape znakem, takže například \[33m nastaví barvu textu na žlutou. Nevím jistě, jestli to jde na widlích. _______________________________________________ Python mailing list [email protected] http://www.py.cz/mailman/listinfo/python
