Просмотр исходного кода

dselect: Do not disaplay garbage on monochrome terminals

Set a missing ncurses character attribute. Closes: #155741, #157093
Sven Rudolph лет назад: 18
Родитель
Сommit
c6670c9119
3 измененных файлов с 9 добавлено и 0 удалено
  1. 5 0
      ChangeLog
  2. 3 0
      debian/changelog
  3. 1 0
      dselect/baselist.cc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-01-01  Sven Rudolph  <sr1@loom.sax.de>
+
+	* dselect/baselist.cc (baselist::startdisplay): Set helpscreen_attr
+	on monochrome terminals.
+
 2007-12-28  Raphael Hertzog  <hertzog@debian.org>
 
 	* scripts/Dpkg.pm: Add a warning to avoid adding unnecessary stuff

+ 3 - 0
debian/changelog

@@ -12,6 +12,9 @@ dpkg (1.14.15) UNRELEASED; urgency=low
   * Remove disabled, obsolete and quite incomplete Hebrew translations.
   * Revert dpkg-dev versioned dependency bump on dpkg >= 1.14.13 back to
     >= 1.14.6, as the compression variables are now in a module in dpkg-dev.
+  * Do not disaplay garbage in dselect on monochrome terminals, by setting
+    a missing ncurses character attribute. Closes: #155741, #157093
+    Thanks to Sven Rudolph.
 
   [ Updated dpkg translations ]
   * Norwegian Bokmål (Hans Fredrik Nordhaug). Closes: #457918

+ 1 - 0
dselect/baselist.cc

@@ -151,6 +151,7 @@ void baselist::startdisplay() {
     info_attr= list_attr;
     info_headattr= A_BOLD;
     whatinfo_attr= thisstate_attr;
+    helpscreen_attr= A_NORMAL;
   }
 
   // set up windows and pads, based on screen size