Menu

#13 pacman's progress bar become multi-line in cmd

1.0
closed
Alexx83
None
2017-02-05
2014-01-10
LiTuX
No

Hello there.

I sometimes run bash inside ConEmu but not in MinTTY because MinTTY has issue on interaction programs (for example, a simple printf && scanf loop is confusing if without fflush, ConEmu do not have such issue), then I found that, pacman's output is not the same as in MinTTY. The progress bar which should be updated in the same line, now become multi-line as is shown in the attachment.

So, is the pacman optimized for MinTTY? As is known, such progress bars are often shown via ncurses, escape sequences, or even a string starting with '\r', which moves the cursor to the beginning of the line but don't create new lines. Which way do pacman use? AFAIK, the '\r' works without problem under cmd, while with a fflush call after printf, it works under MinTTY.

I then tested it from a bash running inside cmd, the result it the same as in ConEmu, see attachment.

1 Attachments

Discussion

  • Alexx83

    Alexx83 - 2014-01-10

    Pacman is Linux package manager and has been ported to MSYS2. It true posix application that written to work under SH terminals not CMD. ConEmu has issues with working with ncurses that why I prefer to use minty.

    Regards,
    Alexey.

     
  • Alexx83

    Alexx83 - 2014-01-10
    • assigned_to: Alexx83
     
  • Steven Penny

    Steven Penny - 2014-02-09

    I am also having this problem, workaround is to use --noprogressbar

     
  • David Macek

    David Macek - 2017-02-05
    • status: open --> closed
     
  • David Macek

    David Macek - 2017-02-05

    I think this one got actually resolved by a change upstream. Closing.