21
edits
Changes
→void io_displayMenuItem(..........)
The menuItem argument will be always shown surrounded by two characters.
* If status is zero, then at row and col a space will be shown, then the menuItem and finally followed by another space.If the length of menuItem is less than (len-2), then enough spaces will be printed up to make the length (len-2).<pre>"Hello"</pre> with 10 as len will be printed as : <pre>" Hello "</pre>
* If status is non-zero, then at row and col format[0] will be shown then the menuItem and finally format[1].If the length of menuItem is less than (len-2), then enough spaces will be printed up to make the length (len-2).<pre>"Hello"</pre> with 10 as len and <code>"[]"</code> as format chars, will be printed as : <pre>"[Hello ]"</pre>
After the Menu item is displayed, the cursor is always placed under the first character of mentItem. (position row and col+1)