Use NEED_FORE flag for 'hardcopy'.
commit43db71f8b5ecb9e6f243cf940d479547ebf8c855
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Thu, 1 Apr 2010 19:59:34 +0000 (1 15:59 -0400)
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Thu, 1 Apr 2010 19:59:34 +0000 (1 15:59 -0400)
tree21b27a4479fd0b32dd15c1a42b64be931c67d753
parentfd8832ccdbf807fe9a6ecd04d6166191c3b7ae90
Use NEED_FORE flag for 'hardcopy'.

Screen wouldn't do anything with 'hardcopy' if there was no
foreground window, except overwriting the specified file (when
hardcopy_append is off, of course). But the NEED_FORE flag wasn't
set. I am not sure why this was the case. So I have added the
NEED_FORE flag so that 'hardcopy' command fails if there is no
foreground window.
src/comm.c
src/process.c