bool SlwReadline::refresh() { switch(parser) { case DEFAULT: case MOVELAYER: color = TITLE_COLOR+20; putnch((char*) " use arrows to move selection, press ctrl-h for help with hotkeys" ,0,0,0); break; case COMMANDLINE: blank_row(0); color = PLAIN_COLOR; putnch((char*)": ", 0, 0, 2); if(command[0]!=EOL) putnch(command, 2, 0, 0); else cursor = 0; gotoxy(cursor+2, 0); break; default: break; } return(true); }
void TextConsole::refresh_current() { register int c; RowPtr r; if(!vis_row_in) return; else r = vis_row_in; LinkList<Row> &list = rows; LinkList<Row>::iterator it = std::find(list.begin(), list.end(), vis_row_in); for( c = 0; c < h; c++ ) { if(r == cur_row) { // implementation function blank_row(c); // widget console write putnch(r->text, 0, c, r->len); break; } if(it == list.end() || (++it) == list.end()) break; else r = *it; } }
bool TextConsole::refresh() { RowPtr r; register int c; if(!vis_row_in) return false; else r = vis_row_in; LinkList<Row> &list = rows; LinkList<Row>::iterator it = std::find(list.begin(), list.end(), vis_row_in); // tell the renderer to blank the surface for a refresh // this is a pure virtual function here blank(); for(c = 0; c < h; c++ ) { if(r->text) putnch(r->text, 0, c, r->len); if(it == list.end() || (++it) == list.end()) break; else r = *it; } return true; }
void TextConsole::refresh_current() { register int c; Row *r; if(!vis_row_in) return; else r = vis_row_in; for( c = 0; c <= h ; c++ ) { if(r == cur_row) { // implementation function blank_row(c); // widget console write putnch(r->text, 0, c, r->len); break; } if(!r->next) break; else r = (Row*) r->next; } }
bool SLW_Prompt::refresh() { Row *r = textconsole->cur_row; blank_row(1); putnch(r->text, 0, 0, r->len); return true; }
bool TextConsole::refresh() { Row *r; register int c; if(!vis_row_in) return false; else r = vis_row_in; // tell the renderer to blank the surface for a refresh // this is a pure virtual function here blank(); for(c = 0; c <= h; c++ ) { if(r->text) putnch(r->text, 0, c, r->len); if(!r->next) break; else r = (Row*) r->next; } return true; }