News for hackers. Stuff that matters.
Re:Keyboard differences between Windows and Macs by duskwuff on Friday October 09, 2026 @06:11PM (#50027215)
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.
Re:Keyboard differences between Windows and Macs by dotancohen on Saturday October 10, 2026 @02:06AM (#50030086)
Claude Code does distinguish between the two. Pressing the Enter key submits the query, pressing ^J inserts a newline.
Re:Keyboard differences between Windows and Macs by 1718627440 on Saturday October 10, 2026 @02:46AM (#50030353)
That's maybe, because (I was wrong and) it's LF, but pressing return produces CR, which is differentiable by an application.