Writers have been in terrible situations and have yet managed to produce extraordinary work.