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

Update part of screen #104

Open
MrVine opened this issue Dec 24, 2018 · 4 comments
Open

Update part of screen #104

MrVine opened this issue Dec 24, 2018 · 4 comments

Comments

@MrVine
Copy link

MrVine commented Dec 24, 2018

Is it possible to update concrete line of ishell?

I creating some application, which will return results []*Result slice to user. In my application hard background work should be done for each element of slice, so I want to notify user about current progress by sending new state of *Result item over chan *Result channel.

So, is it possible to update only concrete line of ishell, without re-writing all content of results slice?

@abiosoft
Copy link
Owner

I don't fully understand what you are trying to do. But sounds like you can make use of the progress bar and simply set your progress like this https://github.com/abiosoft/ishell/blob/master/example/main.go#L144.

@MrVine
Copy link
Author

MrVine commented Dec 25, 2018

I want to show progress for several lines simultaneously, like during docker pull:

1

Or just update each line, like this:

2

Is it possible with abiosoft/ishell?

@abiosoft
Copy link
Owner

No, you cannot do that yet. I actually have it listed in the roadmap, may prioritise it.

@MrVine
Copy link
Author

MrVine commented Dec 25, 2018

Ok, thanks

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

No branches or pull requests

2 participants