$Log$
+ Revision 601.56 2002/11/04 21:49:53 ajc
+ * Don't run the wait indicator when in an external editor
+
Revision 601.55 2002/11/01 04:57:56 ajc
* Fixed .AM and .AE commands
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
if (cmd == 3) {
tcsetattr(0, TCSADRAIN, &saved_settings);
}
+
}
#else
void sttybbs(int cmd)
e_ex_code = 1; /* start with a failed exit code */
editor_pid = fork();
cksum = file_checksum(filename);
+ screen_reset();
+ sttybbs(SB_RESTORE);
if (editor_pid == 0) {
char tmp[SIZ];
chmod(filename, 0600);
- screen_reset();
- sttybbs(SB_RESTORE);
snprintf(tmp, sizeof tmp, "WINDOW_TITLE=%s", header);
putenv(tmp);
execlp(editor_path, editor_path, filename, NULL);
snprintf(tmp, sizeof tmp, "WINDOW_TITLE=%s", desc);
putenv(tmp);
+ screen_reset();
+ sttybbs(SB_RESTORE);
editor_pid = fork();
if (editor_pid == 0) {
chmod(temp, 0600);
- screen_reset();
- sttybbs(SB_RESTORE);
execlp(editor_path, editor_path, temp, NULL);
exit(1);
}
if (editor_pid > 0)
do {
editor_exit = 0;
- b = wait(&editor_exit);
+ b = ka_wait(&editor_exit);
} while ((b != editor_pid) && (b >= 0));
editor_pid = (-1);
scr_printf("Executed %s\n", editor_path);
fclose(tempfp);
e_ex_code = 1; /* start with a failed exit code */
+ screen_reset();
+ sttybbs(SB_RESTORE);
editor_pid = fork();
cksum = file_checksum(filename);
if (editor_pid == 0) {
chmod(filename, 0600);
- screen_reset();
- sttybbs(SB_RESTORE);
putenv("WINDOW_TITLE=Network configuration");
execlp(editor_path, editor_path, filename, NULL);
exit(1);
*/
#if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
void wait_indicator(int state) {
- if (statuswindow) {
+
+ if (!isendwin() && statuswindow) {
mvwinch(statuswindow, 0, screenwidth - 2);
switch (state) {
windows_delete();
screen_reset();
#if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
- if (myscreen)
+ if (myscreen) {
delscreen(myscreen);
+ }
myscreen = NULL;
#endif
}