Skip to content
Snippets Groups Projects
Commit 1d1cc1b5 authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

wip

parent 97148cce
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment