Pebellslearn by building
0%
RoadmapsMatrixCoursesSandboxSign in
Using Claude Code  ›  Lesson

Esc, Esc Esc, Ctrl+C and Ctrl+R

Esc 10 minEsc interrupts Claude so you can redirect it, a double Esc goes back to an earlier message, Ctrl+C cancels or exits, and Ctrl+R searches prompts you typed before.

Esc, Esc Esc, Ctrl+C and Ctrl+R

Claude is three files into a change when you realise it misunderstood you. You do not have to wait for it to finish and then untangle the result. A handful of keys let you interrupt, go back, leave, and reuse what you typed before.

The rule

Esc to interrupt, Esc Esc to go back, Ctrl+C to cancel or leave.

  • Esc (once) stops Claude at its current step. Nothing is lost: the conversation stays, and so do the changes made so far. Type a correction and it carries on from there in your new direction.
  • Esc Esc (twice, on an empty prompt) opens a list of your earlier messages so you can jump back to one. From there you can rewind the conversation — and, thanks to checkpoints, the code Claude changed — to that point. The Rewind lesson covers this in detail.
  • Ctrl+C cancels what you are typing or what Claude is generating. Pressed again at an empty prompt, it exits the session. The session is saved, so you can resume it later.
  • Ctrl+R searches back through prompts you typed earlier, so a long instruction you use often is a few keystrokes away. The up arrow also steps through recent prompts.

Key bindings differ a little between versions and terminals, and they can be customised. The built-in help lists the ones your version supports.

The shortcut

Ask: is the problem in the next step, or in something already done? The next step is heading the wrong way: Esc and correct it. Something several turns back was wrong and everything since builds on it: Esc Esc and go back there. Finished for now: Ctrl+C twice.

The pause feature goes sidewaysStep 1 of 5
  1. Wrong direction

    Claude starts editing the routes in app.py, but you only wanted the data model changed. Press Esc.

The common slip is reaching for Ctrl+C to redirect Claude and pressing it twice, which ends the session. Esc is the gentle stop. It keeps everything and simply hands the turn back to you.

Drills

Answer fast — trust the rule.

quick drill

Claude is editing the wrong file. What is the quickest way to stop it and redirect without losing the conversation?

quick drill

Five messages ago you gave a wrong instruction, and everything since has built on it. What do you reach for?

quick drill

What happens when you press Ctrl+C twice at an empty prompt?

quick drill

In current versions, which key searches back through prompts you typed earlier?

Remember

  • Esc interrupts, Esc Esc goes back, Ctrl+C cancels or leaves, Ctrl+R finds old prompts.
  • Shortcut: next step wrong means Esc; an earlier turn wrong means Esc Esc.
  • Trap: pressing Ctrl+C twice when you only meant to redirect.

Practice — level up

0/1 solved

Write your answer, then compare it with a rubric and a model answer.

ExplainThe right key at the right moment

Describe three moments in a Claude Code session on the tiffin app where you would press Esc, Esc Esc and Ctrl+C respectively, and explain why each key fits its moment.