* Slightly alter the semantics of the input gathering function to take the
menu item it's associated with rather than an input string. This allows it to calculate the position to start the input at, as well as the correct line to place it on. The previous solution always put the input at the center line, which happened to be the right place by happy coincidence unless one also had the menu items for viewing/saving the debug syslog present. * Implement input buffer scrolling, and consequently lift the previous size limit on user input (it is now only limited by the size of the passed in buffer). * Implement parsing of the input buffer to allow it to handle comma-separated options. Thus, one can now input things like "disable_smp true, serial_debug_output false" and it will be handled properly. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41706 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -12,7 +12,7 @@ class MenuItem;
|
||||
|
||||
void platform_generic_update_text_menu_item(Menu* menu, MenuItem* item);
|
||||
void platform_generic_run_text_menu(Menu* menu);
|
||||
size_t platform_generic_get_user_input_text(Menu* menu, const char* prompt,
|
||||
size_t platform_generic_get_user_input_text(Menu* menu, MenuItem* item,
|
||||
char* buffer, size_t bufferSize);
|
||||
|
||||
#endif /* GENERIC_TEXT_MENU_H */
|
||||
|
||||
Reference in New Issue
Block a user