Skip to content
This repository

Dynamic status indicator for parallel install #975

23Skidoo opened this Issue July 12, 2012 · 2 comments

2 participants

Mikhail Glushenkov Dag Odenhall
Mikhail Glushenkov

While the output of cabal install in the parallel case was improved recently, it can still be made better. As described in #440, we want to implement a dynamically-updated status indicator (similar to Gentoo's emerge UI) that would show the number of packages that are being processed, that are already installed and that have failed; possibly also their names.

If we opt to also use the dynamic status indicator for sequential install, we'll have to get rid of or modify the internal setup method since it doesn't support build logging.

One related issue that @dcoutts mentions here is that printing of the last 10 lines of the build log for each failed package should be done during the post-install step (currently it's done in executeInstallPlan).

Mikhail Glushenkov

Related: #1062

Dag Odenhall

Just in case not everyone was aware; the simplest way to do this is by printing carriage returns. On terminals this moves the cursor to the beginning of the line without starting a new line, and you can then write over the previous content. It's also best to pad it with spaces to the length of the previous content.

I have no idea if this works in cmd.exe though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.