I tested, by applying the following patches from https://github.com/gnodet/jline/, and it seems to work. (listed in the order they should be applied)
7d9e0b984e954390ae6af18b87a4b4083c2f5373 Allow UnixTerminal subclasses to access the stty() method e1c87ff6bc173937302773302f750a9c4bcfce2b Fix delete button on Ubuntu 5b9a192c3187f6894d53d13267837cc373ce9a0b Presumably fix backspace on Mac OS X and other BSD based systems. 31e883a13f0fdd3385443231294fd36389a02243 Dirty fix for backspace not working over multiline input de5f3664425cbfeb683e7b0c8abd40f475444cbc Use some ANSI magic to get most wrapped line stuff working. d154af3b4cfa17472bdc7223e70ad3b22ff6be9b Fix delete key regression on non-ANSI terminals -- Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org