Changes

Jump to: navigation, search

Project R0.1 20132- OOP344

141 bytes added, 15:05, 4 June 2013
display() method
===external links===
* instantiate Console, in an object called "console" in cui namespace and create an external linkage to in console.h
===displaystrdsp() method=== void display(const char* str, int row, int col, int fieldLen=0, int curpos = -1);
This method outputs the C-style, null-terminated string pointed to by str starting at row "row " and column "col " of the screen in a field of fieldLen characters. (Row value 0 refers to the top row, and column value 0 refers to the left-most column) and positions the cursor at "curpos" location relative to "col", only if it is greater or equal to zero.
If the string is longer than fieldLen, your function displays the first fieldLen characters. If the string is shorter than fieldLen, your function displays the entire string <!--that fits on the screen-->, followed by enough trailing spaces to fill out the field completely.
If fieldLen is 0, your function displays the entire string with no trailing spaces.
Your function positions the cursor after the last character displayed. Your function does not flush if curpos is less than zero otherwise it positions the output buffercursor at "curpos" location relative to "col". The results are undefined if the starting position of the string is not within the dimensions of the screen.
===lineedit() method===

Navigation menu