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

not-TTY #25

Closed
herenickname opened this issue Sep 23, 2018 · 12 comments
Closed

not-TTY #25

herenickname opened this issue Sep 23, 2018 · 12 comments

Comments

@herenickname
Copy link

Can you add some functional to your module to support not-TTY prints?
Maybe setInterval with printing simple percent of completed jobs every 30 sec?
I can't see progress of my jobs from Docker logs...

@AndiDittrich
Copy link
Member

maybe...but generally cli-progress is designed to work in tty environments only - most people don't like a lot of status spam in their logs.

if more than 10 people request this feature i will implement it (requires some larger changes..)

in the meantime you can simply create a wrapper around cli-progress

best regards, Andi

@feed4rz
Copy link

feed4rz commented Sep 26, 2018

+1

@rvalitov
Copy link

rvalitov commented Dec 4, 2018

I use PHPStorm and I also don't see any progress bar in the log window:
image

I agree that too much output would be annoying, but it's OK to print just some information, at least the start of progress and the end of progress on the same line, or if it's impossible to print on the same line, then use 2 lines of text maximum, at least in this case it's possible to see what's going on (start and end of task/progress). Meanwhile I will have to use a wrapper.

And thank you for this great lib!

@kbzowski
Copy link

kbzowski commented Feb 4, 2019

+1.
I would like to see the progressbar in Webstorm during debugging.

@AndiDittrich
Copy link
Member

@kbzowski

it should work in terminal but not in run tasks (see JetBrains Help)

@rvalitov
Copy link

rvalitov commented Feb 5, 2019

@AndiDittrich

So do you mean that if I run it from terminal tab then it should work?

image

@AndiDittrich
Copy link
Member

of course - the "Run" tab is not intended to be used as terminal (as JetBrains said...)

@rvalitov
Copy link

@AndiDittrich
Thank you! Indeed it works in the Terminal tab.

@richdunajewski
Copy link

+1

Other progress bar modules work with WebStorm, and I was hoping to switch to this one. We run a lot of scripts where the progress is useful, and I run them from within the editor. Faster to rerun while coding than to switch to the terminal tab and rerun the command.

@Nox-404
Copy link
Contributor

Nox-404 commented Aug 12, 2019

+1 I could really use that feature too, having a render only once a bar is stopped could do the trick
It could report the elapsed time since the beginning and the {value}/{total} (maybe another format like nonTTYFormat or something)

@AndiDittrich
Copy link
Member

the feature is comming in v3.1.0

two options will be available to control the behaviour

{
    // enable output on non tty environments
    noTTYOutput: true,

    // 10s update interval
    notTTYSchedule: 100000
}

in noTTY mode, all terminal control sequences will be disabled and the progress bar output will be generated with the given schedule (notTTYSchedule).

synchronous updates are not supported

@AndiDittrich
Copy link
Member

notty support has been added to the master branch

i appreciate your feedback before releasing it

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

7 participants