Skip to content

upgrade -i clips scrolling items #6643

Description

@robations

pnpm version: 8.6.0

Code to reproduce the issue:

pnpm upgrade -i

(Necessary to require enough dependencies that have available upgrades for the screen to scroll, I can make up a list of random deps if easier to reproduce.)

Expected behavior:

Should see the initial prompt for the upgrade list, cursor (indicating current dependency) should be visible on-screen.

Actual behavior:

The initial prompt ? Choose which packages to update... is not immediately visible.

After pressing [↓] twice, the cursor appears. Seems like the height calculation might be off by... 3 rows?

Have also tried

  • Changing terminal size
  • Native macOS Terminal app
  • WebStorm built in terminal (same issue in both)
  • Workaround is to scroll the terminal window up to see the missing items

Additional information:

  • node -v prints: v16.20.0
  • Windows, macOS, or Linux?: macOS
  • bash: 5.2.15
  • env var TERM=xterm-256color (if relevant)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions