"   TERMINAL DEFINITION FILE FOR MACINTOSH WITH CDC CONNECT                   "

"       MAC_CONNECT_11       VERSION 1.1                 OCTOBER 28, 1986     "

"   NOS/VE TERMINAL DEFINITION FILE FOR Macintosh using Control Data Connect  "
"   (basic VT100 plus function key definitions).  Connect should be run with  "
"   local echo on or echoplex for the insert/delete functions to work.        "
"   Important Terminal... and Compatiblity... settings in Connect are:        "
"     Repeat Ctrls           OFF                                              "
"     New Line               OFF                                              "
"     Auto Wraparound        ON                                               "
"     XON/XOFF Flow Control  ON                                               "
"   If Auto Wraparound is OFF, make the following change:                     "
"     char_past_right          type = stop_next                               "
"     char_past_last_position  type = stop_next                               "
"                                                                             "

"   VARIABLES                                                                 "
    prefix              = (esc 5B(16))
    clear_stay          = (prefix 32(16) 4A(16))
    clear_all_tabs      = (prefix 33(16) 67(16))
    set_to_24x80        = (prefix 3F(16) 33(16) 6C(16))
    set_to_24x132       = (prefix 3F(16) 33(16) 68(16))
    start_alternate     = (prefix 31(16) 6D(16))
    start_blink         = (prefix 35(16) 6D(16))
    start_inverse       = (prefix 37(16) 6D(16))
    start_underline     = (prefix 34(16) 6D(16))
    stop_alternate      = (prefix 6D(16))
    stop_blink          = (prefix 6D(16))
    stop_inverse        = (prefix 6D(16))
    stop_underline      = (prefix 6D(16))

"   MODEL NAME AND COMMUNICATION TYPE                                         "
    model_name          value = 'MAC_CONNECT_11'
    communications      type  = asynch
    application_string  name  = 'vt100_scrolling'  out = 'true'

"   END OF INFORMATION SPECIFICATION                                          "
    end_of_information  in    = (0)

"   CURSOR POSITIONING INFORMATION                                            "
    cursor_pos_encoding      bias  = (1)   type = ansi_cursor
    cursor_pos_column_first  value = FALSE
    cursor_pos_column_length value = (0)
    cursor_pos_row_length    value = (0)
    cursor_pos_begin         out   = (prefix)
    cursor_pos_second        out   = (3B(16))
    cursor_pos_third         out   = (48(16))

"   CURSOR MOVEMENT INFORMATION                                               "
    cursor_home              inout = (prefix 48(16)) label='Option H'
    cursor_up                inout = (prefix 41(16)) label='Option I'
    cursor_down              inout = (prefix 42(16)) label='Option M'
    cursor_left              inout = (prefix 44(16)) label='Option J'
    cursor_right             inout = (prefix 43(16)) label='Option K'

"   CURSOR BEHAVIOR (for cursor movement keys)                                "
    move_past_right          type  = stop_next
    move_past_left           type  = stop_next
    move_past_top            type  = stop_next
    move_past_bottom         type  = stop_next

"   CURSOR BEHAVIOR (for character keys)                                      "
    char_past_right          type  = wrap_adjacent_next
    char_past_left           type  = stop_next
    char_past_last_position  type  = scroll_next

"   TERMINAL ATTRIBUTES                                                       "
    clears_when_change_size  value = TRUE
    function_key_leaves_mark value = 0                  "for MAC"
    has_hidden               value = FALSE
    has_protect              value = FALSE
    home_at_top              value = TRUE
    multiple_sizes           value = TRUE
    tabs_to_home             value = FALSE
    tabs_to_tab_stops        value = TRUE
    tabs_to_unprotected      value = FALSE
    type_ahead               value = TRUE

"   SCREEN SIZES                                                              "
    set_size       rows = 24 columns = 80   out = (set_to_24x80)
    set_size       rows = 24 columns = 132  out = (set_to_24x132)

"   SCREEN AND LINE MODE TRANSITION                                           "
    set_screen_mode     out = (esc 3C(16) clear_all_tabs ..
         esc 28(16) 42(16) esc 29(16) 30(16) 0F(16) esc ..
         3D(16))

    set_line_mode       out = (esc 3C(16) clear_all_tabs ..
         esc 28(16) 42(16) esc 29(16) 30(16) 0F(16) esc ..
         3E(16))

"   TERMINAL CAPABILITIES                                                    "
    insert_char         inout = (prefix '@') label='Option Space'
    delete_char         inout = (prefix 'P') label='Option Backspace'
    delete_line_bol     inout = (prefix 'M') label='Option Shift Backspace'
    insert_line_bol     inout = (prefix 'L') label='Option Shift Space'
    erase_end_of_line   inout = (prefix 'K') label='Option C'
    erase_line_stay     inout = (prefix '2K')
    erase_page_stay     inout = (clear_stay) label='Option Shift C'
    backspace           in = (08(16))
    tab_forward         inout = (09(16))
    tab_clear_all       inout = (clear_all_tabs)
    tab_set             inout = (esc 48(16))

"   MISCELLANEOUS TERMINAL SEQUENCES                                          "
    output_begin        out = (prefix 34(16) 6C(16))
    bell_nak            out = (bel)

"   CDC STANDARD FUNCTION KEY INPUT INFORMATION                               "
    next      in = (CR)           label='Return'
    next_s    in = (ESC CR)       label='Shift Return'
    data      in = (ESC 27(16))   label='Option "'
    data_s    in = (ESC '"')      label='Option Shift "'
    back      in = (ESC ';')      label='Option ;'
    back_s    in = (ESC ':')      label='Option Shift ;'
    help      in = (ESC '/')      label='Option ?'
    help_s    in = (ESC '?')      label='Option Shift ?'
    edit      in = (ESC '.')      label='Option .'
    edit_s    in = (ESC 'n')      label='Option Shift .'
    down      in = (ESC 'd')      label='Option D'
    down_s    in = (ESC 'm')      label='Option Shift D'
    up        in = (ESC 'u')      label='Option U'
    up_s      in = (ESC 'U')      label='Option Shift U'
    fwd       in = (ESC 'f')      label='Option F'
    fwd_s     in = (ESC 'F')      label='Option Shift F'
    bkw       in = (ESC 'b')      label='Option B'
    bkw_s     in = (ESC 'B')      label='Option Shift B'
    undo      in = (ESC '5') label='f5  Option 5'
    stop      in = (ESC '6') label='f6  Option 6'
    undo_s    in = (ESC '%') label='    Option Shift 5'
    stop_s    in = (ESC '^') label='    Option Shift 6'

"   PROGRAMMABLE FUNCTION KEY INPUT INFORMATION                               "
    f1        in = (ESC '1') label='f1  Option 1'
    f2        in = (ESC '2') label='f2  Option 2'
    f3        in = (ESC '3') label='f3  Option 3'
    f4        in = (ESC '4') label='f4  Option 4'
    f5        in = (ESC '5') label='f5  Option 5'
    f6        in = (ESC '6') label='f6  Option 6'
    f7        in = (ESC 'g') label='f7  Option 7'
    f8        in = (ESC 'h') label='f8  Option 8'
    f9        in = (ESC '9') label='f9  Option 9'
    f10       in = (ESC '0') label=' 0  Option 0'
    f11       in = (ESC 'q') label=' q  Option Q'
    f12       in = (ESC 'w') label=' w  Option W'
    f13       in = (ESC 'e') label=' e  Option E'
    f14       in = (ESC 'r') label=' r  Option R'
    f15       in = (ESC 't') label=' t  Option T'
    f16       in = (ESC 'y') label=' y  Option Y'
    f1_s      in = (ESC '!') label='    Option Shift 1'
    f2_s      in = (ESC '@') label='    Option Shift 2'
    f3_s      in = (ESC 'i') label='    Option Shift 3'
    f4_s      in = (ESC '$') label='    Option Shift 4'
    f5_s      in = (ESC '%') label='    Option Shift 5'
    f6_s      in = (ESC '^') label='    Option Shift 6'
    f7_s      in = (ESC '&') label='    Option Shift 7'
    f8_s      in = (ESC '*') label='    Option Shift 8'
    f9_s      in = (ESC 'j') label='    Option Shift 9'
    f10_s     in = (ESC 'k') label='    Option Shift 0'
    f11_s     in = (ESC 'Q') label='    Option Shift Q'
    f12_s     in = (ESC 'W') label='    Option Shift W'
    f13_s     in = (ESC 'l') label='    Option Shift E'
    f14_s     in = (ESC 'R') label='    Option Shift R'
    f15_s     in = (ESC 'T') label='    Option Shift T'
    f16_s     in = (ESC 'Y') label='    Option Shift Y'

"   TERMINAL VIDEO ATTRIBUTES                                                 "
    alt_begin           out = (start_alternate)
    alt_end             out = (stop_alternate)
    blink_begin         out = (start_blink)
    blink_end           out = (stop_blink)
    inverse_begin       out = (start_inverse)
    inverse_end         out = (stop_inverse)
    underline_begin     out = (start_underline)
    underline_end       out = (stop_underline)

"   LOGICAL ATTRIBUTE SPECIFICATIONS                                          "
    error_begin         out = (start_alternate)
    error_end           out = (stop_alternate)
    input_text_begin    out = (start_underline)
    input_text_end      out = (stop_underline)
    italic_begin        out = (start_inverse)
    italic_end          out = (stop_inverse)

"   LINE DRAWING CHARACTER SPECIFICATION                                      "
    ld_fine_begin            out = 0E(16)
    ld_fine_end              out = 0F(16)
    ld_fine_horizontal       out = 71(16)
    ld_fine_vertical         out = 78(16)
    ld_fine_upper_left       out = 6C(16)
    ld_fine_upper_right      out = 6B(16)
    ld_fine_lower_left       out = 6D(16)
    ld_fine_lower_right      out = 6A(16)
    ld_fine_up_t             out = 77(16)
    ld_fine_down_t           out = 76(16)
    ld_fine_left_t           out = 74(16)
    ld_fine_right_t          out = 75(16)
    ld_fine_cross            out = 6E(16)

    ld_medium_begin          out = (0E(16) start_alternate)
    ld_medium_end            out = (0F(16) stop_alternate)
    ld_medium_horizontal     out = 71(16)
    ld_medium_vertical       out = 78(16)
    ld_medium_upper_left     out = 6C(16)
    ld_medium_upper_right    out = 6B(16)
    ld_medium_lower_left     out = 6D(16)
    ld_medium_lower_right    out = 6A(16)
    ld_medium_up_t           out = 77(16)
    ld_medium_down_t         out = 76(16)
    ld_medium_left_t         out = 74(16)
    ld_medium_right_t        out = 75(16)
    ld_medium_cross          out = 6E(16)

    ld_bold_begin            out = (start_inverse)
    ld_bold_end              out = (stop_inverse)
    ld_bold_horizontal       out = (' ')
    ld_bold_vertical         out = (' ')
    ld_bold_upper_left       out = (' ')
    ld_bold_upper_right      out = (' ')
    ld_bold_lower_left       out = (' ')
    ld_bold_lower_right      out = (' ')
    ld_bold_up_t             out = (' ')
    ld_bold_down_t           out = (' ')
    ld_bold_left_t           out = (' ')
    ld_bold_right_t          out = (' ')
    ld_bold_cross            out = (' ')


"   END OF TERMINAL DEFINITION FILE FOR Mac using Control Data Connect        "
