ansi.py (and edd.py) add (and use) functions for cursor control etc.
also, tweak comments about bufname and buffer functions in ed.py and ed0.py