wrapper of libtecla, an alternative readline library.Derived from michaelmacinnis's repository.