tty: changes to support TTY_PERM_INVENT resulted in blank inventory menu when
using the 'i' command while carrying only gold; didn't matter whether
or not TTY_PERM_INVENT was enabled during build
+tty: for the !DEF_PAGER configuration, redraw screen properly if attempting
+ to display a file fails and tty_display_file()'s caller requests
+ feedback for that situation
Unix: after lua changes to Makefiles, 'make spotless' for dat subdirectory
left some generated data files which should have been deleted
Windows: new tile additions in win/share did not trigger the creation of a new
}
break;
}
+ return;
}
void
-tty_display_file(const char *fname, boolean complain)
+tty_display_file(
+ const char *fname, /* name of file to display */
+ boolean complain) /* whether to report problem if file can't be opened */
{
#ifdef DEF_PAGER /* this implies that UNIX is defined */
+ /* FIXME: this won't work if fname is inside a dlb container */
{
/* use external pager; this may give security problems */
int fd = open(fname, O_RDONLY);
if (fd < 0) {
if (complain)
pline("Cannot open %s.", fname);
- else
+ else /* [is this refresh actually necessary?] */
docrt();
return;
}
tty_mark_synch();
tty_raw_print("");
perror(fname);
- tty_wait_synch();
+ tty_wait_synch(); /* "Hit <space> to continue: " */
+ if (u.ux) /* if hero is on map, refresh the screen */
+ docrt();
pline("Cannot open \"%s\".", fname);
- } else if (u.ux)
- docrt();
+ }
} else {
winid datawin = tty_create_nhwindow(NHW_TEXT);
boolean empty = TRUE;
}
}
#endif /* DEF_PAGER */
+ return;
}
void