27 |
* COPYING. |
* COPYING. |
28 |
* |
* |
29 |
*/ |
*/ |
30 |
#include<stdlib.h> |
#include <stdlib.h> |
31 |
#include<stdio.h> |
#include <stdio.h> |
32 |
#include<assert.h> |
#include <assert.h> |
33 |
#include<string.h> |
#include <string.h> |
34 |
#include<limits.h> |
#include <limits.h> |
35 |
#include<signal.h> |
#include <signal.h> |
36 |
|
#include "utilities\ascConfig.h" |
37 |
|
|
38 |
|
#ifndef __WIN32__ |
39 |
|
|
40 |
#include<unistd.h> |
#include<unistd.h> |
41 |
#ifndef linux |
#ifndef linux |
42 |
#include<sgtty.h> |
#include<sgtty.h> |
220 |
else |
else |
221 |
SetupTerminal(); |
SetupTerminal(); |
222 |
ClearScreen(); |
ClearScreen(); |
223 |
#endif |
#endif /* ! _HPUX_SOURCE */ |
224 |
} |
} |
225 |
|
|
226 |
void ReadString(str,len) |
void ReadString(str,len) |
239 |
if (ioctl(filenum,TIOCSETN,&old)==-1) InterfaceError(); |
if (ioctl(filenum,TIOCSETN,&old)==-1) InterfaceError(); |
240 |
} |
} |
241 |
|
|
242 |
|
#else /* __WIN32__ */ |
243 |
|
|
244 |
|
int OutputChar(char c) |
245 |
|
{ |
246 |
|
fprintf(stderr,"OutputChar() not implemented in Windows.\n"); |
247 |
|
return 0; |
248 |
|
} |
249 |
|
|
250 |
|
void DeleteBackOne(void) |
251 |
|
{ |
252 |
|
fprintf(stderr,"DeleteBackOne() not implemented in Windows.\n"); |
253 |
|
} |
254 |
|
|
255 |
|
void ClearScreen(void) |
256 |
|
{ |
257 |
|
fprintf(stderr,"ClearScreen() not implemented in Windows.\n"); |
258 |
|
} |
259 |
|
|
260 |
|
void Bell(void) |
261 |
|
{ |
262 |
|
fprintf(stderr,"Bell() not implemented in Windows.\n"); |
263 |
|
} |
264 |
|
|
265 |
|
void ClearLine(void) |
266 |
|
{ |
267 |
|
fprintf(stderr,"ClearLine() not implemented in Windows.\n"); |
268 |
|
} |
269 |
|
|
270 |
|
void SetupTermcapStuff(void) |
271 |
|
{ |
272 |
|
fprintf(stderr,"SetupTermcapStuff() not implemented in Windows.\n"); |
273 |
|
} |
274 |
|
|
275 |
|
void InterfaceError(void) |
276 |
|
{ |
277 |
|
fprintf(stderr,"InterfaceError() not implemented in Windows.\n"); |
278 |
|
} |
279 |
|
|
280 |
|
void SetupTerminal(void) |
281 |
|
{ |
282 |
|
fprintf(stderr,"SetupTerminal() not implemented in Windows.\n"); |
283 |
|
} |
284 |
|
|
285 |
|
void RestoreTerminal(void) |
286 |
|
{ |
287 |
|
fprintf(stderr,"RestoreTerminal() not implemented in Windows.\n"); |
288 |
|
} |
289 |
|
|
290 |
|
void TermSetup_ResetTerminal(void) |
291 |
|
{ |
292 |
|
fprintf(stderr,"TermSetup_ResetTerminal() not implemented in Windows.\n"); |
293 |
|
} |
294 |
|
|
295 |
|
void ReadString(char *str, int *len) |
296 |
|
{ |
297 |
|
fprintf(stderr,"ReadString() not implemented in Windows.\n"); |
298 |
|
} |
299 |
|
|
300 |
|
|
301 |
|
#endif /* __WIN32__ */ |
302 |
|
|