fix history related APIs

Term::EditLine's history related APIs does not works.
I need a history related APIs for implementing Term::ReadLine::EditLine.