The escapes would have to be hard coded in this TermInfo entry then anyway, wouldn't they?

It would probably be a cleaner solution, but I don't know enough Rust to implement that (correctly).