Mercurial > hg > early-roguelike
comparison rogue5/mach_dep.c @ 34:655c317b6237
rogue5: add savedir, logfile, bugfixes
| author | elwin |
|---|---|
| date | Mon, 24 May 2010 20:16:15 +0000 |
| parents | f502bf60e6e4 |
| children | 2c62bd925c17 |
comparison
equal
deleted
inserted
replaced
| 33:f502bf60e6e4 | 34:655c317b6237 |
|---|---|
| 127 #else | 127 #else |
| 128 scoreboard = NULL; | 128 scoreboard = NULL; |
| 129 #endif | 129 #endif |
| 130 } | 130 } |
| 131 | 131 |
| 132 void | |
| 133 open_log(void) | |
| 134 { | |
| 135 #ifdef LOGFILE | |
| 136 logfi = fopen(LOGFILE, "a"); | |
| 137 if (logfi == NULL) | |
| 138 { | |
| 139 fprintf(stderr, "Could not open %s for appending: %s\n", LOGFILE, | |
| 140 strerror(errno)); | |
| 141 fflush(stderr); | |
| 142 } | |
| 143 #endif | |
| 144 return; | |
| 145 } | |
| 146 | |
| 132 /* | 147 /* |
| 133 * getltchars: | 148 * getltchars: |
| 134 * Get the local tty chars for later use | 149 * Get the local tty chars for later use |
| 135 */ | 150 */ |
| 136 | 151 |
| 161 num_checks = 0; | 176 num_checks = 0; |
| 162 #endif | 177 #endif |
| 163 | 178 |
| 164 raw(); /* Raw mode */ | 179 raw(); /* Raw mode */ |
| 165 noecho(); /* Echo off */ | 180 noecho(); /* Echo off */ |
| 181 nonl(); | |
| 166 keypad(stdscr,1); | 182 keypad(stdscr,1); |
| 167 getltchars(); /* get the local tty chars */ | 183 getltchars(); /* get the local tty chars */ |
| 168 } | 184 } |
| 169 | 185 |
| 170 /* | 186 /* |
