TXTMENU - Text-Based Menu for the Command Window

版本 1.4.0.0 (14.5 KB) 作者: Sky Sartorius
Like the built-in MENU function, but all in the command prompt so fingers never leave the keyboard.
1.1K 次下载
更新时间 2017/2/15

查看许可证

TXTMENU is similar to the built-in MATLAB function MENU but has the following features to make using menus faster and more useful:
1. The menu is text-based in the command window so time isn't wasted generating a GUI menu and the user does not have to waste time with the mouse to click an option.
2. There can be a default choice, which is selected when there is no input (i.e. hitting return key without first typing a menu choice).
3. The menu is customizable both in appearance (content, layout, and color) and the type of choices available (e.g., a mixture of string and numeric options is possible).

引用格式

Sky Sartorius (2024). TXTMENU - Text-Based Menu for the Command Window (https://www.mathworks.com/matlabcentral/fileexchange/28285-txtmenu-text-based-menu-for-the-command-window), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2016a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Desktop 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.4.0.0

Added option to use cprintf to add color to the menu.

1.3.0.0

Total rework with lots more features, more documentation, more checks, etc.

1.2.0.0

You can now control the input prompt (default: "Select a menu number: " by using a 2 cell array for the first input.

1.1.0.0

Use of \n, \t, etc. now allow in input strings
Default now at beginning of list instead of end
No header option

1.0.0.0