examples/lines.js fix

Retrieve window size using `process.stdout.getWindowSize()` instead of `require('tty').getWindowSize();`