bash: Add support for screen terminals