In developing for IMAP I type raw commands into an IMAP openssl connection very often, and I'm trying to figure out how to make this tool more usable. I connect via
openssl s_client -connect imap.gmail.com:993 -crlf
But arrow keys rather than navigating print what I can only call "strange characters":
t login chetsteadman^[[D^[[D^[[D^[[D
(That would be left arrow)
Ideally I'd like something that operates much more like a bash shell. Left arrow goes left, ctrl+a goes to beginning of line, up arrow goes to previous line.
Trying to figure out how to get this configuration on openssl and also researching other tools that might do a better job of this. I definitely need something low level though, especially given that I'm debugging problems with line-endings in iCloud currently.