]> gerrit.simantics Code Review - simantics/district.git/blob - beep/index.js
Hide "enabled" column for non-component type tech type tables
[simantics/district.git] / 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())