Also not a lawyer, but if you happen to run across a reference to fair use being an affirmative defense, I would definitely be interested in seeing it.
Edit: I always thought that was why "fair dealing" was considered better, but it's definitely possible I've got it wrong.
libedit was written for just this purpose
https://github.com/NetBSD/src/tree/trunk/lib/libedit (cvsweb appears down)
Re:Things to Know About GNU Readline
by brianjhanfox on Friday August 23, 2019 @02:19AM
(#20774950)
Interestingly enough, neither of these libraries are as objectively as good as readline. For example, they do not implement a true kill ring. They aren't macro programmable. I find it almost amusing that the authors were too lazy to actually reimplement all of the extremely well documented behavior in libreadline and libhistory.
If the purpose is "plausible deniability" to allow GNU readline to be linked by users, that seems perfectly reasonable. Why work harder than needed?
I'll have to think more about the readline interface bit you raise. My gut instinct suggests that's not quite right, but my rational brain isn't able to label/ID/argue why, so your point has some merit. I'll need to think about it some (so thanks for that [seriously]!)
Maybe there's another line input library with a compatible binary interface and MIT licensed and clisp is written to interface to that library. That would seem like it might fly.