[BUG] Claude Code should probably use \033\\─(ST) instead of── \007 (BEL) as the OSC terminator

Resolved 💬 6 comments Opened Mar 23, 2026 by jaymzh Closed May 23, 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?

When I use claude code inside of screen, when it's thinking it repeatedly creates an audible bell even though I have audible bells turned off in my terminal (xset -b, and in screen).

I tried to debug this with Claude for a while, and after trying many things it suggested:

For what it's worth, filing a bug/feature request would be reasonable since Claude Code should probably use \033\\─(ST) instead of \007 (BEL) as the OSC terminator, which would fix this entirely at the source.

Which seems right to me.

What Should Happen?

It should not beep repeatedly while thinking.

Error Messages/Logs

Steps to Reproduce

screen
claude
<ask it something>

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.81 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

I'm using rxvt-unicode terminal.

View original on GitHub ↗

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