vercel / vercel/hyper

Double line prompt on opening

Open
#6,233 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

  • I am on the latest Hyper.app version

  • I have searched the issues of this repo and believe that this is not a duplicate

  • OS version and name: Pop!_OS 21.10

  • Hyper.app version: 3.1.5

  • Link of a Gist with the contents of your .hyper.js: https://gist.github.com/gruvw/6a50fd7834f580b4348f116f4e018678

  • Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): N/A

  • The issue is reproducible in vanilla Hyper.app: yes

Issue

I am using fish shell along with starship prompt and when I open the Hyper Terminal application, (only) the first line of my prompt is displayed but about 200ms later the full prompt is displayed correctly (when the window dimensions are shown in the bottom right corner of the screen).
Picture of the result below:
image
Typing the clear command displays the prompt correctly, but resizing the window after that produces the same issue.

I cannot reproduce this issue with any other terminal (tested Kitty, Terminator and Gnome Terminal).

GIF of the opening of a new window:
Peek 2022-01-09 11-26

Related issues: https://github.com/vercel/hyper/issues/1714 https://github.com/vercel/hyper/issues/4504 (none fixed my problem)

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Reproduce the issue in vanilla Hyper on Pop!_OS 21.10 with fish and starship, starting with the opening and resize behavior described here. Review related issues #1714 and #4504 for prior investigation. Done means the prompt renders fully and correctly once when opening a window and after resizing.

Written by the indexing model from the issue text.

Assessment

Tech stack
fish, typescript
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.