Skip to content

iTerm 2 behaves weirdly in macOS

Detailed steps to reproduce the problem:

  1. Install fish with brew
  2. Install iTerm2
  3. Change the dark theme to light theme, and change command to "/usr/local/bin/fish"

What happened: It does not automatically enter "alternate screen mode" if less/man/similar commands are run, and it seems like fish cannot overwrite contents on the screen.

What should have happened: Fish can display whatever it wants on the screen. iTerm2 will enter "alternate screen mode" if less or man is run.

This issue is also posted on superuser a while ago (by me, but no one had helped me yet): https://superuser.com/questions/1602794/iterm-terminal-emulation-is-weird

Edited by Joy Jin