Changeset 5369 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Oct 13, 2005, 12:39:28 AM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r5344 r5369 183 183 this->textSize = textSize; 184 184 this->lineSpacing = lineSpacing; 185 this->shellInput->setFont(this->fontFile, this->textSize); 186 187 this->rebuildText(); 185 this->shellInput->setSize(this->textSize); 186 this->shellInput->setRelCoor2D(5, (this->textSize + this->lineSpacing)*this->bufferDisplaySize + this->textSize); 187 188 if (this->bufferText != NULL) 189 { 190 for (unsigned int i = 0; i < this->bufferDisplaySize; i++) 191 { 192 if (this->bufferText[i] != NULL) 193 { 194 this->bufferText[i]->setSize(this->textSize); 195 this->bufferText[i]->setRelCoorSoft2D(calculateLinePosition(i)); 196 } 197 } 198 } 199 this->shellHeight = (this->textSize + this->lineSpacing) * (bufferDisplaySize+1); 200 188 201 } 189 202 -
trunk/src/lib/shell/shell_input.cc
r5309 r5369 208 208 ShellBuffer::addBufferLineStatic("Execute Command: %s\n", this->inputLine); 209 209 210 if (strlen(this->inputLine) == 0) 211 return false; 212 210 213 char* newCommand = new char[strlen(this->inputLine)+1]; 211 214 strcpy(newCommand, this->inputLine); 215 216 ShellCommandBase::execute(newCommand); 212 217 213 218 // removing the eventually added Entry (from scrolling) to the List … … 227 232 } 228 233 229 ShellCommandBase::execute(this->inputLine);230 231 234 this->flush(); 232 235 233 return false;236 return true; 234 237 } 235 238
Note: See TracChangeset
for help on using the changeset viewer.