Changeset 2376 in MondoRescue for branches/2.2.10/mondo/src/common/newt-specific.c
- Timestamp:
- Sep 9, 2009, 12:37:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/newt-specific.c
r2357 r2376 99 99 long g_start_time = 0L; ///< The time (in seconds since the epoch) that the progress form was opened. 100 100 bool g_text_mode = TRUE; ///< If FALSE, use a newt interface; if TRUE, use an ugly (but more compatible) dumb terminal interface. 101 char g_xmondo_stdin[MAX_NEWT_COMMENT_LEN], ///< ... @bug Unneeded w/current XMondo.102 g_xmondo_stdout[MAX_NEWT_COMMENT_LEN]; ///< .... @bug Unneeded w/current XMondo.103 bool g_called_by_xmondo = FALSE; ///< @bug Unneeded w/current XMondo.104 101 char *g_selfmounted_isodir; ///< Holds the NFS mountpoint if mounted via mondoarchive. 105 102 106 103 /* @} - end of globalGroup */ 107 108 //int g_fd_in=-1, g_fd_out=-1;109 104 110 105 void popup_and_OK(char *); … … 130 125 if (g_text_mode) { 131 126 while (1) { 132 sy stem("sync");127 sync(); 133 128 printf("---promptdialogYN---1--- %s\n---promptdialogYN---Q--- [yes] [no] ---\n--> ", prompt); 134 129 mr_getline(tmp, stdin); … … 147 142 return (FALSE); 148 143 } else { 149 sy stem("sync");144 sync(); 150 145 printf("Please enter either YES or NO (or yes or no, or y or n, or...)\n"); 151 146 } … … 172 167 173 168 if (g_text_mode) { 174 sy stem("sync");169 sync(); 175 170 printf("---promptdialogOKC---1--- %s\n---promptdialogOKC---Q--- [OK] [Cancel] ---\n--> ", prompt); 176 171 mr_getline(tmp, stdin);
Note:
See TracChangeset
for help on using the changeset viewer.