This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=760f465b922b4afae9cfa32b2c07fe0649e94257 commit 760f465b922b4afae9cfa32b2c07fe0649e94257 Author: Guillem Jover <guil...@debian.org> AuthorDate: Thu Feb 10 03:43:55 2022 +0100 dselect: Do not beep on key press errors in method and package list windows When we resize a window, ncurses will generate keycodes, which then will be trapped by the key handling code and beep when they match no known keybinding. This is in general annoying, so instead we silence these beeps completely. Closes: #533639 --- dselect/methlist.cc | 3 ++- dselect/pkglist.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dselect/methlist.cc b/dselect/methlist.cc index 54382c546..aa9949bbe 100644 --- a/dselect/methlist.cc +++ b/dselect/methlist.cc @@ -174,7 +174,8 @@ quitaction methodlist::display() { interp= (*bindings)(response); debug(dbg_general, "methodlist[%p]::display() response=%d interp=%s", this, response, interp ? interp->action : "[none]"); - if (!interp) { beep(); continue; } + if (!interp) + continue; (this->*(interp->mfn))(); if (interp->qa != qa_noquit) break; } diff --git a/dselect/pkglist.cc b/dselect/pkglist.cc index 54df0fc40..335352939 100644 --- a/dselect/pkglist.cc +++ b/dselect/pkglist.cc @@ -607,7 +607,8 @@ pkginfo **packagelist::display() { interp= (*bindings)(response); debug(dbg_general, "packagelist[%p]::display() response=%d interp=%s", this, response, interp ? interp->action : "[none]"); - if (!interp) { beep(); continue; } + if (!interp) + continue; (this->*(interp->pfn))(); if (interp->qa != qa_noquit) break; } -- Dpkg.Org's dpkg