mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* select-screen-profile: limit erroneous attempts to 5; make the "plain"
profile default; remove the "recommended" pointer
This commit is contained in:
parent
8b93e99c30
commit
5cab15b5c3
2 changed files with 10 additions and 3 deletions
5
debian/changelog
vendored
5
debian/changelog
vendored
|
@ -1,8 +1,9 @@
|
||||||
screen-profiles (1.16) UNRELEASED; urgency=low
|
screen-profiles (1.16) UNRELEASED; urgency=low
|
||||||
|
|
||||||
*
|
* select-screen-profile: limit erroneous attempts to 5; make the "plain"
|
||||||
|
profile default; remove the "recommended" pointer
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 26 Jan 2009 15:24:52 -0600
|
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 27 Jan 2009 12:36:44 -0500
|
||||||
|
|
||||||
screen-profiles (1.15-0ubuntu1) jaunty; urgency=low
|
screen-profiles (1.15-0ubuntu1) jaunty; urgency=low
|
||||||
|
|
||||||
|
|
|
@ -72,14 +72,20 @@ prompt() {
|
||||||
i=$(expr $i + 1)
|
i=$(expr $i + 1)
|
||||||
desc=" "
|
desc=" "
|
||||||
if [ "$x" = "ubuntu" ]; then
|
if [ "$x" = "ubuntu" ]; then
|
||||||
desc="-light\t<---- ` gettext 'recommended'`"
|
desc="-light\t"
|
||||||
|
elif [ "$x" = "plain" ]; then
|
||||||
simple=$i
|
simple=$i
|
||||||
fi
|
fi
|
||||||
echo " $i. $x$desc"
|
echo " $i. $x$desc"
|
||||||
done
|
done
|
||||||
echo
|
echo
|
||||||
selected=x
|
selected=x
|
||||||
|
count=1
|
||||||
while /bin/true; do
|
while /bin/true; do
|
||||||
|
if [ $count -gt 5 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
count=`expr $count + 1`
|
||||||
if [ -z "$selected" -a ! -z "$simple" ]; then
|
if [ -z "$selected" -a ! -z "$simple" ]; then
|
||||||
selected="$simple"
|
selected="$simple"
|
||||||
elif ! test $selected -gt 0 2>/dev/null; then
|
elif ! test $selected -gt 0 2>/dev/null; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue