Tutorial on Python Curses Programming (2007)

Many widely-used programs need to make use of a terminal’s cursor-movement capabilities. A familiar example is vi; most of its commands make use of such capabilities. For example, hitting the j key while in vi will make the cursor move down line. Typing dd will result in the current line being erased, the lines below it moving up one line each, and the lines above it remaining unchanged. There are similar issues in the programming of emacs, etc. The curses library gives the programmer functions (APIs, Application Program Interfaces) to call to take such actions. Since the operations available under curses are rather primitive—cursor movement, text insertion, etc.—libraries have been developed on top of curses to do more advanced operations such as pull-down menus, radio buttons and so on. More on this in the Python context later. [via]
http://heather.cs.ucdavis.edu/~matloff/Python...

Rating: 0/10

 

 

Tags: Tag python, Tag tutorial, ...

 

 

 

Related Files

 

Tutorial on Python Curses Programming

Rate this Document

ADS

 

Tag Clouds

 

BookShelf