Browse Source

setup LINES in apt-pkg/install-progress.cc

tags/debian/0.9.13.exp1
Michael Vogt 8 years ago
parent
commit
bc37330b76
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      apt-pkg/install-progress.cc

+ 5
- 0
apt-pkg/install-progress.cc View File

@@ -235,6 +235,11 @@ void PackageManagerFancy::SetupTerminalScrollArea(int nr_rows)
static const char *move_cursor_up = "\033[1A";
std::cout << move_cursor_up;

// setup env for (hopefully!) ncurses
string s;
strprintf(s, "%i", nr_rows);
setenv("LINES", s.c_str(), 1);

std::flush(std::cout);
}



Loading…
Cancel
Save