From: Wichert Akkerman Date: Wed, 11 Apr 2001 11:40:43 +0000 (+0000) Subject: Handle window resize in dselect main menu X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fcfd1a2e773edd4a74d76a5b3dd989cb925790e;p=dpkg Handle window resize in dselect main menu --- diff --git a/ChangeLog b/ChangeLog index b4434ef2..328da421 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Apr 11 12:19:25 CEST 2001 Wichert Akkerman + + * dselect.main.cc: retry getch if it fails with EINTR + Sun Mar 11 19:24:58 CET 2001 peter karlsson * po/sv.po: Updated Swedish translation. diff --git a/debian/changelog b/debian/changelog index eda0f5f6..79b29e4c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -55,6 +55,7 @@ dpkg (1.9.0) unstable; urgency=low * Change dpkg-gencontrol to fix comma-related syntax errors after processing substvars * Very package signatures if debsig-verify is installed + * Handle window resize in dselect main menu. Closes: Bug#93559 -- Wichert Akkerman UNRELEASED diff --git a/dselect/main.cc b/dselect/main.cc index f1d7c796..da6542c8 100644 --- a/dselect/main.cc +++ b/dselect/main.cc @@ -262,7 +262,10 @@ urqresult urq_menu(void) { dme(0,1); for (;;) { refresh(); - c= getch(); if (c==ERR) ohshite(_("failed to getch in main menu")); + do + c= getch(); + while (c == ERR && errno == EINTR); + if (c==ERR) ohshite(_("failed to getch in main menu")); if (c==C('n') || c==KEY_DOWN || c==' ') { dme(cursor,0); cursor++; cursor %= entries; dme(cursor,1); } else if (c==C('p') || c==KEY_UP || c==C('h') ||