From a7d6f6e5914dbb202ccd7cf79d4f96b948547ee3 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 2 May 2015 03:08:28 -0700 Subject: [PATCH] multiplexer. --- example/multiplex.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/example/multiplex.js b/example/multiplex.js index 536f3c7..cb11843 100755 --- a/example/multiplex.js +++ b/example/multiplex.js @@ -25,6 +25,7 @@ var topleft = blessed.terminal({ cursor: 'line', cursorBlink: true, screenKeys: false, + label: ' multiplex.js ', left: 0, top: 0, width: '50%', @@ -50,6 +51,7 @@ var topright = blessed.terminal({ cursor: 'block', cursorBlink: true, screenKeys: false, + label: ' multiplex.js ', left: '50%-1', top: 0, width: '50%+1', @@ -71,6 +73,7 @@ var bottomleft = blessed.terminal({ cursor: 'block', cursorBlink: true, screenKeys: false, + label: ' multiplex.js ', left: 0, top: '50%-1', width: '50%', @@ -92,6 +95,7 @@ var bottomright = blessed.terminal({ cursor: 'block', cursorBlink: true, screenKeys: false, + label: ' multiplex.js ', left: '50%-1', top: '50%-1', width: '50%+1', @@ -114,6 +118,8 @@ var bottomright = blessed.terminal({ }); term.on('title', function(title) { screen.title = title; + term.setLabel(' ' + title + ' '); + screen.render(); }); term.on('click', term.focus.bind(term)); });