implement editline in echo app