Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "github.com/pkg/term" instead of "github.com/kless/term" #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

markelog
Copy link

@markelog markelog commented Sep 6, 2016

It seems kless version is not maintained anymore - github.com/kless/term/issues
Whereas github.com/pkg/term one has support and more "credibility", plus it seems fallbacks are no longer needed?

@sethgrid
Copy link
Owner

@markelog thanks for the pull request. I have been on vacation. The changes seem legit. I'll try to verify things today and hopefully merge today too. Thanks!

@@ -40,7 +40,7 @@ func New() (*Cursor, error) {
c := &Cursor{}
c.Position.X, c.StartingPosition.X = col, col
c.Position.Y, c.StartingPosition.Y = line, line
c.terminal, err = term.New()
c.terminal, err = term.Open("/bin/stty")
Copy link
Owner

Choose a reason for hiding this comment

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

I have an older Go program that I resurrected that uses curse and it gets an error here:
open /bin/stty: operation not permitted
I've tried it as root too just to be sure.

Copy link
Author

Choose a reason for hiding this comment

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

Hm, weird, I can take a look after the weekend, if you not figure this out by then that is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants