---------------------------------------------------------------------------------
| 134 | } |
| 135 | //--------------------------------------------------------------------------------- |
| 136 | static void consoleClearLine(int mode) { |
| 137 | //--------------------------------------------------------------------------------- |
| 138 | |
| 139 | int i, colTemp; |
| 140 | |
| 141 | switch (mode) |
| 142 | { |
| 143 | case 0: |
| 144 | colTemp = currentConsole->cursorX; |
| 145 | |
| 146 | for (i=0; i < currentConsole->windowWidth - colTemp + 1; i++) { |
| 147 | consolePrintChar(' '); |
| 148 | } |
| 149 | |
| 150 | currentConsole->cursorX = colTemp; |
| 151 | |
| 152 | break; |
| 153 | case 1: |
| 154 | colTemp = currentConsole->cursorX ; |
| 155 | |
| 156 | currentConsole->cursorX = 1; |
| 157 | |
| 158 | for(i=0; i < colTemp - 1; i++) { |
| 159 | consolePrintChar(' '); |
| 160 | } |
| 161 | |
| 162 | currentConsole->cursorX = colTemp; |
| 163 | |
| 164 | break; |
| 165 | case 2: |
| 166 | colTemp = currentConsole->cursorX ; |
| 167 | |
| 168 | currentConsole->cursorX = 1; |
| 169 | |
| 170 | for(i=0; i < currentConsole->windowWidth; i++) { |
| 171 | consolePrintChar(' '); |
| 172 | } |
| 173 | |
| 174 | currentConsole->cursorX = colTemp; |
| 175 | |
| 176 | break; |
| 177 | } |
| 178 | gfxFlushBuffers(); |
| 179 | } |
| 180 | |
| 181 | |
| 182 | //--------------------------------------------------------------------------------- |
no test coverage detected