This is meta.c in view mode; [Download] [Up]
#include "includes.h"
#include "debug.h"
extern char * term_server;
/* This file is intended to be the */
/* replacement for checkline, and */
/* linerem. This should be able to */
/* work out which characters */
/* combinations are getting eaten, and */
/* setup a termrc file accordingly. */
int meta_state(int i)
{
static int state = 0;
/* static char control[10];*/
static int c_index = 0;
static int last_c = 0;
switch (state) {
case 0:
/* We wait for start of packet processes. */
if (i != 'E') return 1;
last_c = 0;
c_index = 0;
state = 1;
break;
case 1: /* We got an E, now receive a number */
return 0; /* return to normal processing. */
}
return 0;
}
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.