Changes

Jump to: navigation, search

Iolib functions 20103 - OOP344

35 bytes added, 22:50, 13 October 2010
Line Editor: int iol_edit(........)
** if '''IsTextEditor''' is true, TAB will insert '''CIO_TAB_SIZE''' number of spaces into the string.'''CIO_TAB_SIZE''' should be a defined "tab size" value in iol.h. If '''CIO_TAB_SIZE''' spaces cannot be inserted into the string for any reason then the inputted tab should be ignored. (See '''“[[Iolib functions 20103 - OOP344#IsTextEditor:|IsTextEditor Section #2]]”''' for more)
* '''ESCAPE''' - Terminates iol_edit() and aborts editing: '''"str"''' will contain originally passed data when leaving function. (See '''“[[Iolib functions 20103 -OOP344#IsTextEditor:|IsTextEditor Section #3]]”''' for exception)
* '''INSERT''' - toggle Insert/Overstrike mode(toggles the value of *insertmode)
**<u>In Insert mode</u>, printable characters are inserted into the string, moving the remainder of the string to the right to make room.
**<u>In Overstrike mode</u>, printable characters overwrite existing characters (if any). Note that if you are past the end of the string, printable characters are appended to the string (as long as the string isn't full) regardless of the mode.

Navigation menu