Unfreezing a terminal after pressing CTRL+S

Every now and then I mistakenly press CTRL+S inside a terminal window... it seems to freeze the entire terminal - no more input or output.

It actually just pauses the printing of any output, which can be restarted by simply pressing CTRL+Q.