#Clearing Console. cls, Clear-Host should clear the console.
11 messages · Page 1 of 1 (latest)
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-Hostbehave likeCMD-K/CTRL-SHIFT-Kyet; 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.
@burnt zinc any way to work around it? add a bind if typed etc?
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:
clear/CTRL-Lonly “soft clear” (push content out of view but keep scrollback). [clear feature reply; clear workaround]CMD-K(macOS) orCTRL-SHIFT-K(Linux) “hard clear” by deleting all blocks in the session. [clear blocks reply; clear all panes]
Users have asked for:
- Making
clearbehave likeCMD-K. [clear blocks request] - A way to send the
CMD-Kaction via a command / escape sequence. [clear blocks comments]
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/clearto 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.
what's the bind for Windows? @burnt zinc
Let me check the knowledge base for you again. One moment! :books:
On Windows, the shortcut to fully clear all blocks (hard clear) is:
CTRL-SHIFT-K– clears the entire list of input/output blocks for a clean view. [Input position; Keyboard shortcuts]