Skip to content

Conversation

@jontze
Copy link
Contributor

@jontze jontze commented Jul 13, 2021

With the crossterm-backend enabled the tool will always try to use this in favor of ncurses and pancurses (docu).

However, even if ncurses and pancurses are not in use, the user have to install the ncurses library on the system first, to build the commit tool. So to flatten the dependencies I removed the default backends and call instead explicitly the crossterm backend.

As crossterm has a wider terminal support (all UNIX-Systems and Windows down to 7) as ncurses and pancurses this should not affect the user. Furthermore the ncurses library is known as "terribly unsafe".

jontze added 2 commits July 13, 2021 21:42
`Pancurses` and `Ncurses` (default features) are only used if crossterm fails. As this is very unlikely, because crossterm
support all unix terminals and windows terminals down to win7, I deactivated these default features. As a result the user don't
have to install the ncurses library on the system first, to be able to build the commit-tool.
This is essential so cursive uses only the crossterm backend and ignores the `pancurses` and `ncurses` backend.
These backends are unsave or require additional librarys to be installed.
@mkqavi mkqavi self-requested a review July 15, 2021 07:18
@mkqavi mkqavi self-assigned this Jul 15, 2021
@mkqavi mkqavi added the enhancement New feature or request label Jul 15, 2021
Copy link
Owner

@mkqavi mkqavi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! That's what I actually wanted to use from the beginning (that's why the crossterm-backend feature was already there) but apparently didn't 😅

Thank you for correcting this!

@mkqavi mkqavi merged commit e3aab00 into mkqavi:master Jul 15, 2021
@jontze jontze deleted the fix/use-crossterm-explicit branch July 27, 2021 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants