]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/ansi/examples/beep/index.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / ansi / examples / beep / index.js
1 #!/usr/bin/env node
2
3 /**
4  * Invokes the terminal "beep" sound once per second on every exact second.
5  */
6
7 process.title = 'beep'
8
9 var cursor = require('../../')(process.stdout)
10
11 function beep () {
12   cursor.beep()
13   setTimeout(beep, 1000 - (new Date()).getMilliseconds())
14 }
15
16 setTimeout(beep, 1000 - (new Date()).getMilliseconds())