#include "defs.h" /* * Write a character in the "input area". * * This is a strip which grows downward from the top of the Tektronix screen. * * c = character which is written after the last written character in the input area */ echo(c) CHAR c; { if(textmode) { print("%E%c", c); }else{ mode(CMD); write(1, &c, 1); if(cmdpos->x > 1023-8){ mode(ALPHA); cmdpos->x = 0; cmdpos->y -= 12; mode(CMD); } else cmdpos->x += 8; } return(c); }