Commit 1d1cc1b5 authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent 97148cce
...@@ -43,7 +43,7 @@ var last ...@@ -43,7 +43,7 @@ var last
// //
// initialization // initialization
// //
spawnSync('maim',['--showcursor','out.jpg']) spawnSync('maim',['out.jpg'])
img = fs.readFileSync('out.jpg','binary') img = fs.readFileSync('out.jpg','binary')
var requests = [null] var requests = [null]
// //
...@@ -101,7 +101,7 @@ update() ...@@ -101,7 +101,7 @@ update()
// //
function update() { function update() {
if (requests[0] == null) { if (requests[0] == null) {
const ps = spawn('maim',['--showcursor','out.jpg']) const ps = spawn('maim',['out.jpg'])
ps.on('close',function(code){ ps.on('close',function(code){
fs.readFile('out.jpg','binary',function(err,data){ fs.readFile('out.jpg','binary',function(err,data){
var changed = false var changed = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment