Path: utzoo!attcan!uunet!cs.utexas.edu!csd4.milw.wisc.edu!bionet!apple!usc!bloom-beacon!husc6!mailrus!cornell!batcomputer!braner From: braner@batcomputer.tn.cornell.edu (Moshe Braner) Newsgroups: comp.sys.apollo Subject: vt100 -- alternatives? Summary: need a better terminal emulator Message-ID: <8254@batcomputer.tn.cornell.edu> Date: 24 Jun 89 12:23:51 GMT Reply-To: braner@tcgould.tn.cornell.edu (Moshe Braner) Organization: Cornell Theory Center, Cornell University, Ithaca NY Lines: 63 [] I am having problems with the vt100 emulator supplied by Apollo. It came without sources (why?!) so I cannot fix it. Is there an alternative program, PD perhaps? All I really need is a way to control the TEXT in a window: cursor addressing, erase to EOL, erase to EOS -- via escape sequences of chars output to the window. (I would also need a way to invoke the alternative instead of the Apollo vt100 automatically when a program (e.g., vi) uses TERMCAP.) The Apollo "vt100" thingy insists on changing the font to its own choosing, and hangs mysteriously at times during a "vt100 rlogin". - Moshe Braner Cornell Theory Center, 265 Olin Hall, Cornell University, Ithaca, NY 14853 USA (607) 255-9401 (INTERNET) (BITNET) PS: here is a little program that, when run on a remote machine accessed via "vt100 rlogin" from my Apollo 3500 (1280_bw), causes the window to hang after it exits: #include #include struct sgttyb ostate; struct sgttyb nstate; ttopen() { ioctl(1,TIOCFLUSH,0); sleep(1); gtty(1, &ostate); gtty(1, &nstate); nstate.sg_flags |= RAW; nstate.sg_flags &= ~(ECHO|CRMOD); stty(1, &nstate); } ttclose() { fflush(stdout); sleep(1); stty(1, &ostate); } main () { int c; ttopen(); fputs ("hit any key: ", stdout); c = fgetc(stdin); fputc (0x1B, stdout); /* movecursor (24, 1) */ fputs ("[24;1H", stdout); fputc ('\n', stdout); /* scroll */ ttclose(); exit(0); }