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

Resolved 💬 8 comments Opened Jan 21, 2026 by jason-azze-adi Closed Apr 4, 2026

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?

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

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

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.14 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Xterm

Additional Information

<img width="1262" height="613" alt="Image" src="https://github.com/user-attachments/assets/4ad14587-f45c-486e-a78d-6be009ec7911" />

View original on GitHub ↗

This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗