edv.py: trunctate overlong lines properly,
also reorganize for better style
ansi.py: define el erase in line special cases: ed_end,_start,_all