Subversion Repositories SvarDOS

Rev

Rev 1409 | Rev 1443 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1409 Rev 1413
Line 63... Line 63...
63
 
63
 
64
/* poll stdin status, returns 0 if no character is pending in the keyboard
64
/* poll stdin status, returns 0 if no character is pending in the keyboard
65
 * buffer, non-zero otherwise */
65
 * buffer, non-zero otherwise */
66
int mdr_dos_keypending(void);
66
int mdr_dos_keypending(void);
67
 
67
 
68
/* disables the CTRL+C handler for the running program - in other words,
68
/* sets up the CTRL+C handler for the running program to a no-op - in other
69
 * after this call DOS will no longer abort the program on CTRL+C */
69
 * words, after this call DOS will no longer abort the program on CTRL+C.
-
 
70
 * this is only valid for the duration of the program because DOS will restore
-
 
71
 * the original handler after the program exits.
-
 
72
 *
-
 
73
 * an alternative is mdr_dos_ctrlc_off(), but this does not inhibit the
-
 
74
 * handler, it sets DOS to not react to CTRL+C in the first place, and this
-
 
75
 * setting stays active after the program quits so the program should remember
-
 
76
 * to restore the original setting before quitting. */
-
 
77
void mdr_dos_ctrlc_inhibit(void);
-
 
78
 
-
 
79
/* sets the DOS BREAK control OFF, ie. instructs DOS not to check for CTRL+C
-
 
80
 * during most input operations. returns the previous state of the break
-
 
81
 * control flag (0=disabled 1=enabled). this changes a global DOS flag that can
-
 
82
 * be checked on command line with the "BREAK" command, so the program should
-
 
83
 * take care to restore the initial setting before quitting. */
-
 
84
unsigned char mdr_dos_ctrlc_disable(void);
-
 
85
 
-
 
86
/* sets the DOS BREAK control ON. see mdr_dos_ctrlc_disable() for details. */
70
void mdr_dos_ctrlc_disable(void);
87
void mdr_dos_ctrlc_enable(void);
71
 
88
 
72
/* converts a "DOS format" 16-bit packed date into a standard (time_t)
89
/* converts a "DOS format" 16-bit packed date into a standard (time_t)
73
 * unix timestamp. A DOS date is a 16-bit value:
90
 * unix timestamp. A DOS date is a 16-bit value:
74
 * YYYYYYYM MMMDDDDD
91
 * YYYYYYYM MMMDDDDD
75
 *
92
 *