Fix console text becoming unreadable when selected (Fixes #1530)