void pktgen_cls(void) { if ( scrn_is_paused() ) { scrn_cls(); scrn_pos(100, 1); } else // Update the display quickly. pktgen_redisplay(1); }
void pktgen_screen(const char * onOff) { if ( parseState(onOff) == DISABLE_STATE ) { if ( !scrn_is_paused() ) { scrn_pause(); scrn_cls(); scrn_setw(1); scrn_pos(scrn->nrows, 1); } } else { scrn_cls(); scrn_pos(scrn->nrows,1); scrn_setw(pktgen.last_row+1); scrn_resume(); pktgen_redisplay(1); } }
static __inline__ void display_dashline(int last_row) { int i; scrn_setw(last_row); last_row--; scrn_pos(last_row, 1); for(i=0; i<(mcos.scrn->ncols-15); i++) printf_info("-"); scrn_printf(last_row, 2, " MCOS Demo %s ", mcos_demo_version()); }
/* Print out the dashed line on the screen. */ void display_dashline(int last_row) { int i; scrn_setw(last_row); last_row--; scrn_pos(last_row, 1); pktgen_display_set_color("sep.dash"); for(i=0; i<(scrn->ncols-15); i++) scrn_fprintf(0, 0, stdout, "-"); pktgen_display_set_color("sep.text"); scrn_printf(last_row, 3, " Pktgen %s ", pktgen_version()); pktgen_display_set_color(NULL); }
void pktgen_redisplay( int cls_flag ) { if ( scrn_is_paused() ) return; scrn_pause(); if ( cls_flag ) { scrn_cls(); scrn_pos(100, 1); } pktgen.flags |= PRINT_LABELS_FLAG; scrn_resume(); pktgen_page_display(NULL, NULL); }