.TH tset "" "" "/rdb Command" .PC "Fetch termcap entry for a terminal type" \fBtset [ \fITERM \fB]\fR .PP .II "termcap^find entry for TERM" .II TERM^find termcap entry" The command .B tset duplicates the Berkeley UNIX program by the same name. It finds the entry in file .B /etc/termcap for terminal type .IR TERM . If no terminal type is named on the command line, it returns the .B termcap entry for the type of terminal you are now using. .PP You can use .B tset to initialize an environmental variable, which you then filter with other .B /rdb or COHERENT commands. .SH Example If you are working on your computer's console, your terminal type is probably .BR ansipc . In that case, the command .B tset prints the following on the standard output: .DM :al=\eE[L:am:bs:bt=\eE[Z:bw:cd=\eE[O:ce=\eE[K:ch=\eE[%i%d`:cl=\eE[2O:\e :cm=\eE[%i%d;%dH:co#80:cs=\eE[%i%d;%dr:cv=\eE[%i%dd:dl=\eE[M:ho=\eE[H:\e :is=\eE[25f\eE[7m 1=Line_L 2=Line_R 3=D_Ln 4=Und_Ln 5=Undo 6=Und_Blk 7=Tag\e 8=Join 9=Rptx 10=Rptd \eE[m\eE[H:\e :k0=\eE[0x:k1=\eE[1x:k2=\eE[2x:k3=\eE[3x:k4=\eE[4x:\e :k5=\eE[5x:k6=\eE[6x:k7=\eE[7x:k8=\eE[8x:k9=\eE[9x:\e :kb=^h:kd=\eE[B:kh=\eE[H:kl=\eE[D:kr=\eE[C:ku=\eE[A:\e :li#24:ll=\eE[24;1H:hd=\eE[C:se=\eE[m:sf=\eE[S:sg#0:so=\eE[7m:sr=\eE[T:\e :te=\eEc:ue=\eE[m:up=\eE[A:us=\eE[4m:\e :KI=\eE[5x:KD=\eE[3x:Kd=\eE[P:KB=\eE[6x:KU=\eE[4x:Ku=\eE[@:KM=\eE[7x:KJ=\eE[8x:\e :Kt=\eE[Z:KT=\et:KL=\eE[1x:KR=\eE[2x:KP=\eE[U:Kp=\eE[V:KX=\eE[9x:KC=\eE[0x:\e :KE=\eE[24H:KW=^F:Kw=^R:Kr=^N:do=\eE[B: .DE .PP The command .DM TERMCAP=`tset` .DE .PP initializes the environmental variable .B TERMCAP to your terminal's .B termcap entry. Storing this information in an environmental variable greatly speeds processing of programs that manipulate the screen. .SH "See Also" .B termput .R .br COHERENT Lexicon: .B termcap .R .SO tset