#include <sys/types.h>
#include <stdio.h>
#include "telnet.h"externchar *term; /* terminal name, from initialization *//*ARGSUSED*/int
subtermtype(FILE *sfp, FILE *tfp, int c)
{
/* have received IAC.SB.TERMTYPE.SEND */
(void) putc(TCIAC, sfp);
(void) putc(TCSB, sfp);
(void) putc(TOTERMTYPE, sfp);
(void) putc(TT_IS, sfp);
fputs(term, sfp);
(void) putc(TCIAC, sfp);
(void) putc(TCSE, sfp);
return 0;
}