Changeset 1899 in MondoRescue for branches/2.2.6/mondo/src/common/newt-specific.c
- Timestamp:
- Apr 3, 2008, 12:08:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.6/mondo/src/common/newt-specific.c
r1878 r1899 221 221 system("sync"); 222 222 printf 223 ("---promptdialogYN---1--- %s\ r\n---promptdialogYN---Q--- [yes] [no] ---\r\n--> ",223 ("---promptdialogYN---1--- %s\n---promptdialogYN---Q--- [yes] [no] ---\n--> ", 224 224 prompt); 225 225 (void) fgets(tmp, MAX_NEWT_COMMENT_LEN, stdin); … … 267 267 system("sync"); 268 268 printf 269 ("---promptdialogOKC---1--- %s\ r\n---promptdialogOKC---Q--- [OK] [Cancel] ---\r\n--> ",269 ("---promptdialogOKC---1--- %s\n---promptdialogOKC---Q--- [OK] [Cancel] ---\n--> ", 270 270 prompt); 271 271 (void) fgets(tmp, MAX_NEWT_COMMENT_LEN, stdin); … … 791 791 if (g_text_mode) { 792 792 printf 793 ("---promptpopup---1--- %s\ r\n---promptpopup---Q--- [OK] ---\r\n--> ",793 ("---promptpopup---1--- %s\n---promptpopup---Q--- [OK] ---\n--> ", 794 794 prompt); 795 795 while (((ch = getchar()) != '\n') && (ch != EOF)); … … 833 833 if (g_text_mode) { 834 834 printf 835 ("---promptstring---1--- %s\ r\n---promptstring---2--- %s\r\n---promptstring---Q---\r\n--> ",835 ("---promptstring---1--- %s\n---promptstring---2--- %s\n---promptstring---Q---\n--> ", 836 836 title, b); 837 837 (void) fgets(output, maxsize, stdin); … … 1081 1081 } 1082 1082 if (!g_text_mode) { 1083 newtLabelSetText(g_isoform_header, g_isoform_header_str); 1083 if (g_isoform_header) { 1084 newtLabelSetText(g_isoform_header, g_isoform_header_str); 1085 } 1084 1086 } 1085 1087 g_mysterious_dot_counter = (g_mysterious_dot_counter + 1) % 27; … … 1117 1119 "] %3d%% done; %2ld:%02ld to go", percentage, 1118 1120 time_remaining / 60, time_remaining % 60); 1119 printf("---evalcall---1--- %s\ r\n",1121 printf("---evalcall---1--- %s\n", 1120 1122 g_isoform_header_str); 1121 printf("---evalcall---2--- %s\ r\n", taskprogress);1122 printf("---evalcall---E---\ r\n");1123 printf("---evalcall---2--- %s\n", taskprogress); 1124 printf("---evalcall---E---\n"); 1123 1125 } 1124 1126 } else { 1125 1127 newtScaleSet(g_isoform_scale, 1126 1128 (unsigned long long) percentage); 1127 newtLabelSetText(g_isoform_pcline, pcline_str); 1128 if (percentage >= 3) { 1129 if (g_isoform_pcline) { 1130 newtLabelSetText(g_isoform_pcline, pcline_str); 1131 } 1132 if ((percentage >= 3) && (g_isoform_timeline)) { 1129 1133 newtLabelSetText(g_isoform_timeline, timeline_str); 1130 1134 } … … 1248 1252 1249 1253 if (g_text_mode) { 1250 printf("---progress-form---1--- %s\ r\n", blurb1);1251 printf("---progress-form---2--- %s\ r\n", blurb2);1252 printf("---progress-form---3--- %s\ r\n", blurb3);1254 printf("---progress-form---1--- %s\n", blurb1); 1255 printf("---progress-form---2--- %s\n", blurb2); 1256 printf("---progress-form---3--- %s\n", blurb3); 1253 1257 printf("---progress-form---E---\n"); 1254 1258 sprintf(taskprogress, "TASK: ["); … … 1267 1271 " done; %2ld:%02ld to go", 1268 1272 time_remaining / 60, time_remaining % 60); 1269 printf("---progress-form---4--- %s\ r\n", taskprogress);1273 printf("---progress-form---4--- %s\n", taskprogress); 1270 1274 } else { 1271 1275 center_string(blurb1, 54); 1272 1276 center_string(blurb2, 54); 1273 1277 center_string(blurb3, 54); 1274 newtLabelSetText(g_blurb1, blurb1); 1275 newtLabelSetText(g_blurb2, blurb3); 1276 newtLabelSetText(g_blurb3, blurb2); 1278 if (g_blurb1) { 1279 newtLabelSetText(g_blurb1, blurb1); 1280 } 1281 if (g_blurb2) { 1282 newtLabelSetText(g_blurb2, blurb3); 1283 } 1284 if (g_blurb3) { 1285 newtLabelSetText(g_blurb3, blurb2); 1286 } 1277 1287 newtScaleSet(g_scale, (unsigned long long) g_current_progress); 1278 if ( percentage >= 2) {1288 if ((percentage >= 2) && (g_timeline)) { 1279 1289 newtLabelSetText(g_timeline, timeline_str); 1280 1290 } 1281 newtLabelSetText(g_percentline, percentline_str); 1291 if (g_percentline) { 1292 newtLabelSetText(g_percentline, percentline_str); 1293 } 1282 1294 newtRefresh(); 1283 1295 }
Note:
See TracChangeset
for help on using the changeset viewer.