Commit graph

2106 commits

Author SHA1 Message Date
Jan De Dobbeleer 6fd9f0bdd9 fix: render newline correctly cross platform/shell
Powershell has an issue rendering multiline prompts when it comes to
PSReadline on MacOS. To mitigate that, we make it a multiline
prompt by moving the cursor all the way to the end. That way, PSReadline
believes this is still a one line prompt and everything works as
expected.

https://github.com/PowerShell/PowerShell/issues/3687
2020-09-17 12:38:01 +02:00
Jan De Dobbeleer 5c4af19d90 feat: add shell info segment 2020-09-16 10:46:50 +02:00
Jan De Dobbeleer 2791b180b2 fix: remove incorrect percentage indicator 2020-09-16 10:46:50 +02:00
Jan De Dobbeleer 9b9405978e fix: make newline compatible cross shell
When using PowerShell, "\n" isn't recognized as a newline character.
To resolve this, moving the cursor down 1 line is more interesting
as it will work in any shell using ANSI escape sequences (which we
depends upon).
2020-09-16 10:46:50 +02:00
Jan De Dobbeleer f3582d229e feat(pkg): add PowerShell package 2020-09-16 10:46:50 +02:00
Jan De Dobbeleer c4d1c75781 feat: initial commit 2020-09-12 08:57:18 +02:00