Comment by dotancohen
13 hours ago
Another surprise was discovering that Ctrl-J adds a newline in Claude Code. I'm fairly certain this is a feature of the environment, not CC, but it works everywhere I've tried it. KDE Konsole on Debian.
13 hours ago
Another surprise was discovering that Ctrl-J adds a newline in Claude Code. I'm fairly certain this is a feature of the environment, not CC, but it works everywhere I've tried it. KDE Konsole on Debian.
It's the Carret Notation: https://en.wikipedia.org/wiki/Caret_notation
That's because C-J IS ANSI Carriage Return. It's basically the absence of any special treatment.
In fact, without some fairly new (and poorly supported) extensions, it's impossible for an application running in a terminal to distinguish between ^J and a "real" press of the return key. The same goes for tab vs. ^I, Esc vs. ^[, and so on.
You meant ASCII Line Feed, ne?
Yes, shame on me. Should have conducted ascii(7) before making bold statements.