GHCi: buggy terminal behaviour on Apple Silicon
Summary
I'm not entirely sure if this is the right place to put this -- apologies if not. I'm requesting that this issue be marked with the 8.10.8 milestone, so the submodule for libraries/terminfo
can be bumped to 0.4.1.5 in the next minor 8.10 release. I've got a patched version of 8.10.7 on my current system, and I can confirm that bumping terminfo
is all that's necessary to fix the issue described below.
Steps to reproduce
- Run GHCi on any ARM mac
- type a line of some sort
- issue
^A
Expected behavior
Cursor moves to the start of the line
Actual behavior
- Cursor moves one character to the left
- the current line and some adjacent start getting overwritten with garbage on further input
For some reason, this can be worked around by setting TERM=dumb
.
Environment
- GHC version used: 8.10.7
Optional:
- Operating System: macOS 12.0.1
- System Architecture: arm64