Update of /cvsroot/perfparse/_perfparse/db_tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25545/db_tools
Modified Files:
convert.c
Log Message:
ncurses tweaks
Index: convert.c
===================================================================
RCS file: /cvsroot/perfparse/_perfparse/db_tools/convert.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** convert.c 14 Mar 2007 00:05:40 -0000 1.17
--- convert.c 15 Mar 2007 00:01:58 -0000 1.18
***************
*** 145,149 ****
int iNDBnumrows;
! int i;
// ncurses variables
--- 145,149 ----
int iNDBnumrows;
! int i,x,y;
// ncurses variables
***************
*** 155,158 ****
--- 155,162 ----
getmaxyx(stdscr,iNCrows,iNCcols);
+ // switch on scrolling
+ idlok(stdscr,TRUE);
+ scrollok(stdscr,TRUE);
+
printw(_("The database schema for perfparse changed dramatically. "));
printw(_("Changing the tables\nwould be too error-prone, so we decided to copy the data into a new database.\n"));
***************
*** 218,223 ****
refresh();
echo();
! if(scanw("%s64",sODBhost) == 0) {
! printw("localhost");
}
refresh();
--- 222,230 ----
refresh();
echo();
! getyx(stdscr,y,x);
! if(scanw("%s64",sODBhost) == ERR) {
! move(y,x);
! printw("localhost\n");
! sprintf(sODBhost,"localhost");
}
refresh();
|