Clear command (CMD + K) is inconsistent with `clear` binary
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: macOS 10.12.3
-
Hyper.app version: 1.1.0.1408
-
Link of a Gist with the contents of your .hyper.js: https://gist.github.com/brandonweiss/454322d27983d2156d52d50b751e8edd
-
The issue is reproducible in vanilla Hyper.app: Is Vanilla
Issue
I have a multi-line bash prompt (two lines). If I run clear I see this:
~/Code
❯
If I press CMD + K I see this:
❯
I'm not totally sure what's happening… what I'd expect to see in both scenarios is this:
~/Code
❯
But with the binary I get an extra space at the top and with the shortcut the first line of my prompt is eaten. Maybe this is normal and expected, though, because when I try this in Terminal.app I get the same results. If this isn't a bug, what am I misunderstanding? Why are they different, and why does neither do what seems logical?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the report on macOS with a two-line bash prompt, comparing the clear binary with CMD+K in Hyper and Terminal.app. Determine whether the differing blank-line and prompt behavior is an application bug or expected terminal behavior; done means the behavior is either made consistent or clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100