Skip to content

fruitnuke/curses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning to use the (python) curses library. See screencasts of the code being written.

01 checkers.py

Drawing an ascii picture of a (configurable-size) checkers board in the terminal.

$ python3 checkers.py --size=10

02 noise.py

Using refresh and non-blocking key input to display an animation of white noise.

$ python3 noise.py

03 mandelbrot.py

Experimenting with color in curses by drawing a mandelbrot plot. (Requires a terminal with at least 16 colors.) I discovered after trial-and-error that extended support for color in Terminal.App on Mac OS X is pretty limited!

$ python3 mandelbrot.py

04 move.py

Using keyboard input to move a character around the terminal screen.

$ python3 move.py

05 windows.py

Experimenting with windows in curses by displaying random windows of pretty patterns (noise, mandelbrot or scrolling ascii).

$ python3 windows.py

06 mandelpad.py

Using pads to scroll around an area larger than the screen.

$ python3 mandelpad.py

07 menu.py

Create an interactive menu from scratch, and try out attributes while I'm at it.

$ python3 menu.py

About

Learning to use (n)curses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages