Subversion Repositories svn1-original

Rev

Rev 45 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 45 Rev 61
Line 59... Line 59...
59
 
59
 
60
int         rubout = '\010';                     /* users rubout character */
60
int         rubout = '\010';                     /* users rubout character */
61
char        escape = '\033';                     /* Escape character */
61
char        escape = '\033';                     /* Escape character */
62
int         abort_flag = FALSE;                  /* Abort character detected */
62
int         abort_flag = FALSE;                  /* Abort character detected */
63
int         fnc_opr;                             /* Function key pushed */
63
int         fnc_opr;                             /* Function key pushed */
-
 
64
char        *force_cmds = NULL;                  /* Initial commnads */
64
 
65
 
65
 
66
 
66
HANDLE      h_console;                          /* Output handle */
67
HANDLE      h_console;                          /* Output handle */
67
 
68
 
68
/*
69
/*
69
**  Prototypes
70
**  Prototypes
70
*/
71
*/
71
int get_kb_character( void );
72
int get_kb_character( void );
72
 
73
 
-
 
74
/*----------------------------------------------------------------------------
-
 
75
** FUNCTION           : set_commands
-
 
76
**
-
 
77
** DESCRIPTION        :
-
 
78
**
-
 
79
**
-
 
80
** INPUTS             : cptr            - Address of commands to execute
-
 
81
**
-
 
82
** RETURNS            : Nothing
-
 
83
**
-
 
84
** PRECONDITION       : 
-
 
85
**
-
 
86
** EXCEPTIONS         :
-
 
87
**
-
 
88
** WARNING            :
-
 
89
**
-
 
90
** SEE ALSO           :
-
 
91
----------------------------------------------------------------------------*/
-
 
92
 
-
 
93
void set_commands ( char * cptr )
-
 
94
{
-
 
95
    force_cmds = cptr;
-
 
96
}
-
 
97
 
73
 
98
 
74
/*========================================================================
99
/*========================================================================
75
 *
100
 *
76
 *  Initialize the screen
101
 *  Initialize the screen
77
 *
102
 *
Line 305... Line 330...
305
     * Will intercept function keys and set flags
330
     * Will intercept function keys and set flags
306
     */
331
     */
307
 
332
 
308
    int         c;
333
    int         c;
309
 
334
 
-
 
335
    if ( force_cmds && *force_cmds )
-
 
336
    {
-
 
337
        c = *force_cmds++;
-
 
338
    }
-
 
339
    else
-
 
340
    {
310
    c = get_kb_character();
341
        c = get_kb_character();
-
 
342
    }
311
    if( c & 0xff )
343
    if( c & 0xff )
312
    {
344
    {
313
        c = c & 0xff;
345
        c = c & 0xff;
314
        if( c == '\r' )
346
        if( c == '\r' )
315
            c = '\n';
347
            c = '\n';