[asterisk-commits] trunk r26441 - in /trunk/build_tools:
menuselect.c menuselect_curses.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed May 10 06:05:18 MST 2006
Author: russell
Date: Wed May 10 08:05:17 2006
New Revision: 26441
URL: http://svn.digium.com/view/asterisk?rev=26441&view=rev
Log:
remove a debug message and make the exit keys not be case sensitive
inside of a category menu
Modified:
trunk/build_tools/menuselect.c
trunk/build_tools/menuselect_curses.c
Modified: trunk/build_tools/menuselect.c
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/menuselect.c?rev=26441&r1=26440&r2=26441&view=diff
==============================================================================
--- trunk/build_tools/menuselect.c (original)
+++ trunk/build_tools/menuselect.c Wed May 10 08:05:17 2006
@@ -726,6 +726,5 @@
if (force_clean)
unlink(".lastclean");
- fprintf(stderr, "\nmenuselect about to exit with res %d\n", res);
exit(res);
}
Modified: trunk/build_tools/menuselect_curses.c
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/menuselect_curses.c?rev=26441&r1=26440&r2=26441&view=diff
==============================================================================
--- trunk/build_tools/menuselect_curses.c (original)
+++ trunk/build_tools/menuselect_curses.c Wed May 10 08:05:17 2006
@@ -143,9 +143,11 @@
snprintf(buf, sizeof(buf), "XXX %d.%s %s", i, i < 10 ? " " : "", mem->name);
else
snprintf(buf, sizeof(buf), "[%s] %d.%s %s", mem->enabled ? "*" : " ", i, i < 10 ? " " : "", mem->name);
- if (curopt + 1== i)
+ waddstr(menu, buf);
+
+ if (curopt + 1 == i)
desc = mem->displayname;
- waddstr(menu, buf);
+
if (i == end)
break;
}
@@ -227,7 +229,7 @@
default:
break;
}
- if (c == 'x' || c == 'q')
+ if (c == 'x' || c == 'X' || c == 'Q' || c == 'q')
break;
draw_category_menu(menu, cat, start, end, curopt);
}
More information about the asterisk-commits
mailing list