add title.

This commit is contained in:
Christopher Jeffrey 2015-02-09 00:03:09 -08:00
parent c8a9222749
commit 4c1e020b42
1 changed files with 2 additions and 1 deletions

View File

@ -6915,7 +6915,8 @@ Screen.prototype.displayImage = function(file, callback) {
var file = path.resolve(process.cwd(), file);
var args = ['w3m', '-T', 'text/html'];
var input = '<img align="center" src="file://' + file + '">';
var input = '<title>press q to exit</title>'
+ '<img align="center" src="file://' + file + '">';
var opt = {
stdio: ['pipe', 1, 2],
env: process.env,