Updates for terminal i/o

This commit is contained in:
Michiel Broek 2004-11-04 20:49:32 +00:00
parent aac11ee69e
commit 8a59793d06
5 changed files with 28 additions and 6 deletions

View File

@ -7,7 +7,7 @@ v0.71.0 27-Oct-2004
mbsebbs: mbsebbs:
In change handle the first character of the name is not In change handle the first character of the name is not
capitalized. capitalized.
Changed layout of raw directory listing to support long Changed layout of raw directory listing to support longer
filenames. filenames.
Rewrote terminal i/o. Rewrote terminal i/o.
If a user pages the sysop a hint is displayed to fill in the If a user pages the sysop a hint is displayed to fill in the
@ -24,6 +24,7 @@ v0.71.0 27-Oct-2004
examples: examples:
Fixed logo display. Fixed logo display.
Fixed Spanish txtfiles to leave out an old support bbs.
v0.70.0 06-Jun-2004 - 26-Oct-2004. v0.70.0 06-Jun-2004 - 26-Oct-2004.

View File

@ -66,7 +66,7 @@ void Good_Bye(int onsig)
* Don't display goodbye screen on SIGHUP and idle timeout. * Don't display goodbye screen on SIGHUP and idle timeout.
* With idle timeout this will go into a loop. * With idle timeout this will go into a loop.
*/ */
if ((onsig != SIGHUP) && (onsig != SIGALRM) && (onsig != MBERR_TIMEOUT) && (hanged_up == 0)) if ((onsig != SIGALRM) && (onsig != MBERR_TIMEOUT) && (hanged_up == 0))
DisplayFile((char *)"goodbye"); DisplayFile((char *)"goodbye");
if (do_mailout) if (do_mailout)

View File

@ -291,7 +291,7 @@ void ExtDoor(char *Program, int NoDoorsys, int Y2Kdoorsys, int Comport, int NoSu
} }
clear(); clear();
PUTSTR((char *)"Loading ..."); PUTSTR((char *)"Loading, please wait ...");
Enter(2); Enter(2);
/* /*

View File

@ -146,6 +146,25 @@ int main(int argc, char **argv)
sprintf(pTTY, "%s", tty); sprintf(pTTY, "%s", tty);
} }
/*
* Now that we have all terminal information, we close the tty and
* reopen the default tty so that doors will work.
*/
// cookedport();
// close(0);
// close(1);
// if ((i = open("/dev/tty", O_RDWR|O_NONBLOCK)) < 0) {
// perror("open 0");
// exit(MBERR_TTYIO_ERROR);
// }
// Syslog('t', "new fd %d", i);
// if ((i = open("/dev/tty", O_RDWR|O_NONBLOCK)) < 0) {
// perror("open 1");
// exit(MBERR_TTYIO_ERROR);
// }
// Syslog('t', "new fd %d", i);
// rawport();
umask(007); umask(007);
/* /*

View File

@ -80,11 +80,13 @@ void die(int onsig)
} else if (onsig == SIGALRM) { } else if (onsig == SIGALRM) {
Syslog('+', "User inactivity timeout"); Syslog('+', "User inactivity timeout");
} else { } else {
if (onsig <= NSIG) if (onsig <= NSIG) {
hanged_up = 1;
WriteError("Terminated on signal %d (%s)", onsig, SigName[onsig]); WriteError("Terminated on signal %d (%s)", onsig, SigName[onsig]);
else } else {
WriteError("Terminated with error %d", onsig); WriteError("Terminated with error %d", onsig);
} }
}
} else { } else {
Syslog(' ', "Terminated by user"); Syslog(' ', "Terminated by user");
} }