Skip to content

Allow more interactive apps (man, less etc.) to disable blocks and take over mouse input and scrolling #7738

@mitranim

Description

@mitranim

Pre-submit Checks

Describe the solution you'd like?

This is somewhere between a bug report and a feature request.

I'd like apps like man and less to take over the terminal, disabling blocks, similar to the behavior of vim.

Is your feature request related to a problem? Please describe.

Currently, some interactive apps (vim, yazi, btop) correctly take over the terminal, while some others (man, less, more) don't.

Comparing the app behaviors, this seems to be related to mouse input. The "correct" behavior of disabling blocks and taking over is exhibited by apps which support mouse input. The "incorrrect" behavior is exhibited by interactive apps which don't support mouse input. So I'm guessing this is the heuristic Warp uses.

There's probably another, more general heuristic Warp could use, to detect apps such as less which don't request mouse input.

See the attached video for an example. It shows me scrolling up and down. In the vim case, scrolling is limited to the actual CLI app, without spilling over to Warp's history and blocks. In the less case, scrolling "spills out" outside the app.

warp_blocks_720.mov

Additional context

Warp version: v0.2025.10.08.08.12.stable_03

Operating system (OS)

macOS

How important is this feature to you?

2

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    FEATUREFeature Requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions