opentty
opentty = false;
opentty = true;
if (opentty) {
bool lnext, havetty, allocated, opentty, good;
static void opentty(void);
opentty();