2015-04-03 20:08:01 -07:00
|
|
|
var blessed = require('../')
|
|
|
|
, screen;
|
|
|
|
|
|
|
|
screen = blessed.screen({
|
|
|
|
dump: __dirname + '/logs/dock.log',
|
|
|
|
smartCSR: true,
|
|
|
|
dockBorders: true
|
|
|
|
});
|
|
|
|
|
|
|
|
blessed.box({
|
|
|
|
parent: screen,
|
|
|
|
left: 0,
|
|
|
|
top: 0,
|
2015-04-03 22:55:56 -07:00
|
|
|
width: '50%',
|
|
|
|
height: '50%',
|
2015-04-03 20:08:01 -07:00
|
|
|
border: 'line',
|
|
|
|
content: 'Foo'
|
|
|
|
});
|
|
|
|
|
|
|
|
blessed.box({
|
|
|
|
parent: screen,
|
2015-04-03 22:55:56 -07:00
|
|
|
left: '50%-1',
|
2015-04-03 20:08:01 -07:00
|
|
|
top: 0,
|
2015-04-03 22:55:56 -07:00
|
|
|
width: '50%+1',
|
|
|
|
height: '50%',
|
2015-04-03 20:08:01 -07:00
|
|
|
content: 'Bar',
|
|
|
|
border: 'line'
|
|
|
|
});
|
|
|
|
|
|
|
|
blessed.box({
|
|
|
|
parent: screen,
|
|
|
|
left: 0,
|
2015-04-03 22:55:56 -07:00
|
|
|
top: '50%-1',
|
|
|
|
width: '50%',
|
|
|
|
height: '50%+1',
|
2015-04-03 20:08:01 -07:00
|
|
|
border: 'line',
|
|
|
|
content: 'Foo'
|
|
|
|
});
|
|
|
|
|
|
|
|
blessed.box({
|
|
|
|
parent: screen,
|
2015-04-03 22:55:56 -07:00
|
|
|
left: '50%-1',
|
|
|
|
top: '50%-1',
|
|
|
|
width: '50%+1',
|
|
|
|
height: '50%+1',
|
2015-04-03 20:08:01 -07:00
|
|
|
border: 'line',
|
|
|
|
content: 'Bar'
|
|
|
|
});
|
|
|
|
|
|
|
|
screen.key('q', function() {
|
|
|
|
return process.exit(0);
|
|
|
|
});
|
|
|
|
|
|
|
|
screen.render();
|