diff --git a/lib/widgets/screen.js b/lib/widgets/screen.js index a6fcbb6..f7932ab 100644 --- a/lib/widgets/screen.js +++ b/lib/widgets/screen.js @@ -10,7 +10,8 @@ var path = require('path') , fs = require('fs') - , cp = require('child_process'); + , cp = require('child_process') + , os = require('os'); var colors = require('../colors') , program = require('../program') @@ -1832,7 +1833,7 @@ Screen.prototype.readEditor = function(options, callback) { , editor = options.editor || process.env.EDITOR || 'vi' , name = options.name || process.title || 'blessed' , rnd = Math.random().toString(36).split('.').pop() - , file = '/tmp/' + name + '.' + rnd + , file = path.join(os.tmpdir(), name + '.' + rnd) , args = [file] , opt;