Feature changed by: Ludwig Nussel (lnussel)
Feature #326741, revision 6
Title: zypper: use dialog to display license
Requested by: Ludwig Nussel (lnussel)
Partner organization: openSUSE.org
From user feedback I got at Akademy. By default zypper displays
licenses to confirm in "less". That requires pressing 'q' to exit
pager. That is not intuitive for not so Linux experienced users. So to
make this more user friendly, zypper could use "dialog" instead of less
if available. An example call could be for example:
# dialog --textbox /etc/YaST2/licenses/base/license.txt $((LINES-5)) 85
--and-widget --yesno $"Do you agree with the terms of the license?" 0
#2: Michael Andres (mlandres) (2018-11-21 17:31:09)
Zypper uses $PAGER and prints navigation hints. In case of 'less' it's
* Use arrows or pgUp/pgDown keys to scroll the text by lines or pages.
* "Press 'q' to exit the pager.
Even unexperienced users should learn to use 'less', otherwise thy
can't read man pages.
#3: Jiri Srain (jsrain) (2018-11-22 07:03:35Z) (reply to #2)
I tend to agree. Users who use command-line should have some basic
knowledge; for those who don't, they still can use the graphical UI
(YaST) which has even lower knowledge level expectation.
+ #5: Ludwig Nussel (lnussel) (2018-11-30 15:42:04Z)
+ ok, great that you know better than what users should do. I didn't make
+ this up, it's actual feedback and seems like a low hanging fruit. Using
+ zypper despite limited command line knowledge seems to be common as we
+ talk about it everywhere. So improving that is completely independent
+ from 'man'.