UP

GTT and GTTHALT key pairs provide access to a terminal via a Tymnet circuit and perform certain terminal-related functions. These keys provide somewhat different functions than are available with other Tymnet-related keys. These keys will be implemented sooner than other Tymnet-related keys. These keys may become not available at a future time but if so a keys with very similar functions will become available. Familiarity with the Tymshare CMS and CP Assembler Users Supplement {AUS}, section Term, is assumed.

A GTT key and GTTHALT key pair correspond to a Tymnet adapter under Tymshare CP. An auxiliary circuit can not be built.

When a QUIT is received and no terminal operation is in progress, the QUIT is handled as though it were received immediately after the next terminal read or write operation is initiated. {There are no QUIT interrupts.}

GTT(GTT__READ_CHARACTERISTICS,((4,code));==>c,((4,state));) ("Read Terminal Characteristics") If "code" is invalid c will be 1. If there is no circuit present c will be 2. Otherwise c will be 0 and the state of the terminal characteristic identified by "code" is returned in "state". See BRS 10 in AUS for definition of codes.

GTT(GTT__SET_CHARACTERISTICS,((4,code),(4,state));==>c;) ("Set Terminal Characteristics") If "code" is invalid c will be 1. If there is no circuit present c will be 2. Otherwise c will be 0 and the terminal characteristic identified by "code" is set to "state". See BRS 11 in AUS for definition of codes.

GTT(GTT__SYNC,((4,timeout));==>c;) ("Synchronize with Terminal") If there is no circuit present c will be 2. Otherwise c is 0 and the operation does what BRS 12 does, waits, and returns when Device End occurs.

GTT(GTT_WRITE,((1,opts), (n,data));==>c,((4,m));) ("Output")

GTT(GTT_READ,(371,parameter_list);==>c,(371,parameter_list);) ("Input")

GTT(GTT__ENABLE;==>c;) ("Enable for Terminal Connection") If a circuit is connected c will be -1. If the operation was halted with GTTHALT c will be 1. Otherwise it waits until a circuit has been built and c is zero.

GTT(kt;==>c;) returns 14 (X'E') in c.

GTTHALT(0;==>c;) ("Halt Tymnet I/O") Does what BRS 13 does. c will be 1 if there was no terminal operation in progress and 0 if there was {in which case it is halted}.

GTTHALT(kt;==>c;) returns 270 {X'10E'} in c.

GTT__READ_CHARACTERISTICS=0, GTT__SET_CHARACTERISTICS=1, GTT__SYNC=2, GTT_WRITE=3, GTT_READ=4, GTT__ENABLE=5.