etter capture of GHCI history (supports moving caret left and right)
(fixed #189)