Process output goes out of screen in case of new lines after the command

Open
#1,396 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
cli

Research direction

Reproduce the issue with npm i, inserting a new line with Enter+Shift before running it, and compare the input and running screenshots. Start by tracing the terminal output rendering and scrolling behavior; use issue #1365 as related context. Done means output remains visible as it is produced, including after commands containing additional new lines.

Written by the indexing model from the issue text.

Description

bug needs-info ready-to-implement triaged
Discord username (optional)

ledniy#4557

Describe the bug
There was a similar issue [#1365](https://github.com/warpdotdev/Warp/issues/1365), when it was out of screen, but seems like it doesn't cover case with additional new lines.
To Reproduce

Steps to reproduce:

  1. Write the command npm i
  2. Press the shortcut Enter+Shift to add a new line
  3. Press Enter to run the command
  4. It can not see the output
Expected behaviour
It should always see the text as things are happening.
Screenshots

input:
image

running:
image

Operating System

No response

OS Version

any

Shell Version

any

Additional context

No response

Warp Internal (ignore): linear-label:24888f54-df93-45d5-9bdd-e38f740cac19

No response

Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from warpdotdev/warp

All issues in warpdotdev/warp

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.