2

I have read an article in OMG Ubuntu[0] about enabling the progress bar in the terminal. I'm browsing apt launchpad page [1] and browisng the code. Someone knows exactly where is the code for the progress bar? I'm browising the correct launchpad page code or is another?

Thanks in advance

[0]http://www.omgubuntu.co.uk/2014/04/how-to-enable-apt-terminal-progress-bar [1]https://code.launchpad.net/~ubuntu-branches/ubuntu/trusty/apt/trusty

  • Neat effect: try typing and pressing Enter while apt works => the text above scrolls but the progress bar is left in place. SetupTerminalScrollArea() contains the magic: it uses VT100 escape sequence that limits scrolling region. This is brilliant because the rest of apt/dpkg/install scripts can go on spilling to stdout without caring about the progress bar! – Beni Cherniavsky-Paskin Mar 4 '15 at 8:39
3

I've found the definition of PackageManagerFancy::PackageManagerFancy() in the debian git repo of the apt source package:

The file providing the Fancy progress bar is apt-pkg/install-progress.cc

  • I thought this was on la Bazaar code in launchpad – Diego Apr 22 '14 at 17:05
  • 1
    The same file in bzr – Sylvain Pineau Apr 22 '14 at 17:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.