If you interrupt nethack (^C) in tty windowport mode while a pompt is displayed and and msg_window=true, it can display the full message history at an unexpected time. Detect this and display only the topl, as expected.
If you interrupt nethack (^C) in tty windowport mode while a pompt is displayed and and msg_window=true, it can display the full message history at an unexpected time. Detect this and display only the topl, as expected.