ishell icon indicating copy to clipboard operation
ishell copied to clipboard

Update part of screen

Open MrVine opened this issue 6 years ago • 4 comments

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?

MrVine avatar Dec 24 '18 22:12 MrVine

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.

abiosoft avatar Dec 25 '18 00:12 abiosoft

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?

MrVine avatar Dec 25 '18 07:12 MrVine

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

abiosoft avatar Dec 25 '18 09:12 abiosoft

Ok, thanks

MrVine avatar Dec 25 '18 11:12 MrVine