move low level line edit to termedit.py