Nano is displayed incorrectly in emacs when using term or ansi-term. This is what nano is supposed to look like (run in an ordinary terminal emulator):
This is nano as run from ansi-term:
In the above picture, you can see that the first line of commands is missing.
The same behavior appears in GUI and CLI mode, and running emacs with
--no-init does not fix the problem.
Since I know the nano commands, this is only a minor nuisance, but it's pretty annoying. Is there any way I can fix this issue? I don't want to use the other terminal modes in emacs for various reasons.