[BUG] Claude Code interactive TUI in Konsole 23.08.5 — overwrites existing screen output instead of starting at current cursor position

Open 💬 0 comments Opened Jul 10, 2026 by JGKle

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Reposting #19737 literal exact bug because you just ignored it & then closed it without fixing. Retaining the original issue description, but per the multiple follow-up comments, it persists in current ClaudeCode.

On launch, Claude Code’s interactive TUI renders at the top-left corner (row 0) and overwrites existing screen contents instead of starting at the current cursor position below prior output.

On exit, Claude Code does not restore cursor position / terminal screen state, leaving the shell prompt drawn on top of previous output.

This happens in Konsole (23.08.5) but _not_ in GNOME Terminal on the same machine.

Claude used to behave as I expect and only recently (circa 2026-01-19) began exhibiting this behavior.

What Should Happen?

Claude should start on the first row after existing content and or use alternate-screen mode.

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce

Open a terminal shell using Konsole 23.08.5 (I have not tested other versions.)
Hit enter a few times or ls or anything to move your cursor position down.
Launch claude
The TUI will start at terminal line 0.
exit
You are returned to a shell prompt at line 0

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.206

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗