Short Description: Tutorial Python Curses Programming Contents 1 Overview 2 1.1 Function. 2 1.2 History. 2 1.3 Relevance Today 3 2 Examples of Python Curses Programs 3 2.1 Useless Example 3 2.2 Useful Example 5 2.3 A Few Other Short Examples 3 What Else Can Curses Do? 7 3.1 Curses by Itself 7 4 Libraries Built on Top of Curses 7 5 If Your Terminal Window Gets Messed Up 7 6 Debugging 8
Content Inside: 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. That works fine for curses programming in C/C++, but for some reason this can’t be invoked for Python. Even the Eclipse IDE seems to have a problem in this regard
Tutorial on Python Curses Programming
Content of Page: 8 Pages
Source: heather.cs.ucdavis.edu
No comments:
Post a Comment