#Clearing Console. cls, Clear-Host should clear the console.

11 messages · Page 1 of 1 (latest)

fluid basin
#

as the title implies, Clearing Console. cls, Clear-Host should clear the console. and not allow me to scroll up, is this a feature?

If so, how do I enable it?

burnt zincBOT
#

Hi @fluid basin. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Warp currently does not treat cls / Clear-Host / clear as “wipe everything so you can’t scroll back” commands. Instead, they behave like CTRL-L / “Clear Screen”: they move previous output out of view but keep it in the scrollback history. [Input position; clear confusion]

There is no documented setting to change clear / cls / Clear-Host so they fully delete scrollback. Users have requested this behavior (including for PowerShell’s Clear-Host on Windows), and Warp has acknowledged it as something they “need to fix,” but it’s not implemented yet. [Windows Clear-Host; clear blocks request]

Today, the only built‑in way to truly clear history in a pane is:

  • macOS: CMD-K
  • Windows/Linux: CTRL-SHIFT-K

These shortcuts “clear the entire list of input/output blocks for a clean view,” i.e., remove scrollback. [Input position]

So:

  • Yes, what you’re seeing (being able to scroll up after cls / Clear-Host) is the current, intended behavior.
  • There is no toggle to make cls / Clear-Host behave like CMD-K / CTRL-SHIFT-K yet; you must use those shortcuts to fully clear the console.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@fluid basin Kapa.ai is still learning and improving, please let me know how I did by reacting below.

fluid basin
#

@burnt zinc any way to work around it? add a bind if typed etc?

burnt zincBOT
#

Let me check the knowledge base for you again. One moment! :books:

#

There’s no documented way in Warp today to programmatically trigger the “clear blocks” action (the equivalent of CMD-K / CTRL-SHIFT-K) from a command like clear, cls, or Clear-Host. The knowledge sources don’t mention any escape sequence or bindable action that would let you do this. [clear blocks request]

What is available:

Users have asked for:

But there’s no confirmed solution or example binding in the sources.

So, based on the available info:

  • You cannot currently bind cls / Clear-Host / clear to perform a true hard clear in Warp.
  • The only reliable workaround mentioned is to use the keyboard shortcut (CMD-K / CTRL-SHIFT-K) directly when you want to wipe scrollback.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@fluid basin Kapa.ai is still learning and improving, please let me know how I did by reacting below.

fluid basin
#

what's the bind for Windows? @burnt zinc

burnt zincBOT
#

Let me check the knowledge base for you again. One moment! :books:

#

On Windows, the shortcut to fully clear all blocks (hard clear) is:


Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: