150 lines
6.2 KiB
C
Executable File
150 lines
6.2 KiB
C
Executable File
/******************************************************************************
|
|
*
|
|
* uniVerse include file for PRINTERIO functions
|
|
*
|
|
* Module include/c_printerio.h
|
|
*
|
|
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
|
|
* This is unpublished proprietary source code of Ardent Software Inc.
|
|
* The copyright notice above does not evidence any actual or intended
|
|
* publication of such source code.
|
|
*
|
|
******************************************************************************/
|
|
|
|
#define PK_MAXUNITS 255
|
|
|
|
/* Keys to define the Printer IO function to be performed */
|
|
|
|
#define PK_INITIALIZE 1
|
|
#define PK_FINALIZE 2
|
|
#define PK_PRINT_STRING 3
|
|
#define PK_PRINT_STRING_WITH_NEW_LINE 4
|
|
#define PK_NEW_PAGE 5
|
|
#define PK_PRINT_NEW_LINE 6
|
|
#define PK_PRINT_CHARACTER 7
|
|
#define PK_PRINT_TAB 8
|
|
#define PK_PRINT_ERROR_MESSAGE 9
|
|
#define PK_INPUT 10
|
|
#define PK_INPUT_AT 11
|
|
#define PK_GET_KEY 12
|
|
#define PK_CLEAR_INPUT 13
|
|
#define PK_ECHO_INPUT 14
|
|
#define PK_STAT_IPEDIT 15
|
|
#define PK_PACK_FKEYS 16
|
|
#define PK_IPEDIT 17
|
|
#define PK_CONTROL_SEQUENCE_ONE_ARG 18
|
|
#define PK_CONTROL_SEQUENCE_TWO_ARGS 19
|
|
#define PK_PRINTER_ON 20
|
|
#define PK_PRINTER_OFF 21
|
|
#define PK_PRINTER_CLOSE 22
|
|
#define PK_HEADING 23
|
|
#define PK_FOOTING 24
|
|
#define PK_HEADER_VARIABLE 25
|
|
#define PK_SET_PAGE_NUMBER 26
|
|
#define PK_GETPU 27
|
|
#define PK_SETPU 28
|
|
#define PK_RESET_TERMINAL 29
|
|
#define PK_RESET_ALL_PRINTUNITS 30
|
|
#define PK_SET_KILL_CHARACTER 31
|
|
#define PK_SET_ERASE_CHARACTER 32
|
|
#define PK_SET_PROMPT_CHARACTER 33
|
|
#define PK_SET_HUSH 34
|
|
#define PK_SET_ECHO 35
|
|
#define PK_SET_BREAK 36
|
|
#define PK_SET_XOFF 37
|
|
#define PK_SET_DUPLEX 38
|
|
#define PK_SCOLOUR 39
|
|
#define PK_DISLEN 40
|
|
#define PK_COMO 41
|
|
#define PK_PRIMTV 42
|
|
#define PK_CR_IDLE 43
|
|
#define PK_SET_TERMINAL_TYPE 44
|
|
#define PK_GET_TERMINAL_TYPE 45
|
|
#define PK_CHECK_INPUT 46
|
|
#define PK_GET_PROMPT_CHARACTER 47
|
|
#define PK_GET_TERM_PAUSE 48
|
|
#define PK_SET_TERM_PAUSE 49
|
|
#define PK_SET_TERM_SUPPRESS 50
|
|
#define PK_GET_ECHO_DELAY 51
|
|
|
|
/* Values 52 to 55 are now used in P_GUI_KEYS.IT. The 'PK$' keys defined */
|
|
/* in PRINTERIO.IT and P_GUI_KEYS.IT must NOT clash. Care must be taken */
|
|
/* when adding new keys in future in either include file. */
|
|
|
|
#define PK_KEYIN 56
|
|
|
|
/* Options for passing to GTI input editor */
|
|
/* N.B: The values represent single bits in a 16 bit value */
|
|
|
|
#define IK_NON 0 /* No keys specified */
|
|
#define IK_OCR 1 /* Output <CR> */
|
|
#define IK_ATM 2 /* Terminate edit when string = maxlen */
|
|
#define IK_TCR 4 /* Toggle cursor */
|
|
#define IK_DIS 8 /* Reserved */
|
|
#define IK_HDX 16 /* Put terminal into half duplex */
|
|
#define IK_INS 32 /* Start in insert mode */
|
|
#define IK_BEG 64 /* Separate begin/end line functions */
|
|
#define IK_NEK 128 /* Ignore OS kill and erase chars */
|
|
|
|
/* Subkeys for setting the state of the command line editor */
|
|
|
|
#define CLE_READ_STATUS 1
|
|
#define CLE_WRITE_STATUS 2
|
|
#define CLE_DISABLED 0
|
|
#define CLE_COMMAND_INPUT 1
|
|
#define CLE_VERB_INPUT 2
|
|
#define CLE_ALL_INPUT 3
|
|
#define CLE_INSERT_KEY 0
|
|
#define CLE_OVERLAY_KEY 5
|
|
|
|
/* Error returns from PK$STAT.IPEDIT */
|
|
|
|
#define CLE_INVALID_ACTION 1
|
|
#define CLE_INVALID_STATE 2
|
|
#define CLE_INVALID_MODE 3
|
|
|
|
/* Class of GTI function keys loaded for terminal */
|
|
|
|
#define P_FKEYS_NONE 0 /* No key bindings loaded */
|
|
#define P_FKEYS_FUND 1 /* Fundamental key bindings loaded */
|
|
#define P_FKEYS_FUNC 2 /* Function key bindings loaded */
|
|
|
|
/* Options for the PK$SET.DUPLEX key */
|
|
|
|
#define PK_TTY_FULL 0 /* Set terminal to full duplex */
|
|
#define PK_TTY_HALF_LF 1 /* Set terminal to half duplex, do line feeds */
|
|
#define PK_TTY_HALF_NOLF 2 /* Set terminal to half duplex, dont do line feeds */
|
|
#define PK_TTY_TOGGLE_DUPLEX 3 /* Toggle from FULL to HALF.NOLF or either HALF to FULL */
|
|
|
|
/* Subkeys for the PK$SCOLOUR key used to provide colour */
|
|
/* replacement of monochrome attributes. */
|
|
|
|
#define IT_GETCOLOR 3 /* Retrieve colour settings for attributes */
|
|
#define IT_SETCOLOR 4 /* Set mono attribute to specified colours */
|
|
#define IT_DEFCOLOR 5 /* Set all attributes to default colours */
|
|
#define IT_NORMAL_ATT 10 /* Mono normal rendition */
|
|
#define IT_ULINE_ATT 11 /* Mono underline rendition */
|
|
#define IT_REVERSE_ATT 12 /* Mono reverse video rendition */
|
|
#define IT_HALFINT_ATT 13 /* Mono half intensity rendition */
|
|
#define IT_BLINK_ATT 14 /* Mono blinking rendition */
|
|
|
|
/* Subkeys for COMO support */
|
|
|
|
#define COMO_ON 1
|
|
#define COMO_INUSE 2
|
|
#define COMO_APPEND 3
|
|
#define COMO_PAUSE 4
|
|
#define COMO_CONTINUE 5
|
|
#define COMO_OFF 6
|
|
|
|
/* Type definition for printer io value argument */
|
|
|
|
typedef union prtrio_val
|
|
{
|
|
int int_val;
|
|
STRING str_val;
|
|
double float_val;
|
|
} PRTRIO_VAL;
|
|
|
|
/* END-CODE */
|