version 1.4, 1998/03/12 04:57:43 |
version 1.5, 1998/05/15 03:16:43 |
|
|
*/ |
*/ |
|
|
#include "telnet_locl.h" |
#include "telnet_locl.h" |
|
#include <term.h> |
|
|
#define strip(x) (eight ? (x) : ((x) & 0x7f)) |
#define strip(x) (eight ? (x) : ((x) & 0x7f)) |
|
|
|
|
* duplicate, or verbose names (names with spaces). |
* duplicate, or verbose names (names with spaces). |
*/ |
*/ |
|
|
|
int is_unique P((char *, char **, char **)); |
|
|
static char *name_unknown = "UNKNOWN"; |
static char *name_unknown = "UNKNOWN"; |
static char *unknown[] = { 0, 0 }; |
static char *unknown[] = { 0, 0 }; |
|
|
|
|
TerminalSpeeds(&ispeed, &ospeed); |
TerminalSpeeds(&ispeed, &ospeed); |
|
|
snprintf((char *)temp, sizeof(temp), |
snprintf((char *)temp, sizeof(temp), |
"%c%c%c%c%d,%d%c%c", IAC, SB, TELOPT_TSPEED, |
"%c%c%c%c%ld,%ld%c%c", IAC, SB, TELOPT_TSPEED, |
TELQUAL_IS, ospeed, ispeed, IAC, SE); |
TELQUAL_IS, ospeed, ispeed, IAC, SE); |
len = strlen((char *)temp+4) + 4; /* temp[3] is 0 ... */ |
len = strlen((char *)temp+4) + 4; /* temp[3] is 0 ... */ |
|
|