steveh250 / Unix-Menu-Program

An easy to use character based menu program written in C - use it to automate some of those regular tasks. Takes a simple input text file and draws a menu (uses curses or newt with a common menu input file). Takes up to 30 options per menu, curses menu draws one or two columns columns, newt provides a scrollable list.
13 stars 3 forks source link

Manage file line lengths #5

Closed steveh250 closed 4 years ago

steveh250 commented 4 years ago

Description lines longer than 30 chars or commands longer than 80 mess up the menu.

When processing the file abort if lines are too long. Do not throw away characters as this could lead to unforeseen issues with the command line being truncated - get the user to fix the line lengths.

steveh250 commented 4 years ago

Created FileFormatHandler branch to add the readline processing and error message handling to.

steveh250 commented 4 years ago

Fixed in r1.13