This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var blessed = require('blessed'); | |
var program = blessed.program(); | |
// Create a screen object. | |
var screen = blessed.screen(); | |
function drawTui() { | |
// Create a box perfectly centered horizontally and vertically. | |
var box = blessed.box({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var blessed = require('blessed'); | |
// Create a screen object. | |
var screen = blessed.screen(); | |
var list = blessed.list({ | |
width: 50, | |
height: 10, | |
top: 1, | |
left: 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var blessed = require('blessed'); | |
// Create a screen object. | |
var screen = blessed.screen(); | |
var list1 = blessed.list({ | |
width: 50, | |
height: 10, | |
top: 1, | |
left: 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var blessed = require('blessed'); | |
// Create a screen object. | |
var screen = blessed.screen(); | |
var form = blessed.form({ | |
width: 40, | |
height: 8, | |
border: { | |
type: "line" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var blessed = require('blessed'); | |
function createScreen() { | |
var global = blessed.Screen.global; | |
var screen = blessed.Screen.global || blessed.screen({ tput: true }); | |
if (!global) { | |
screen.program.key('C-c', function() { | |
return process.exit(0); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var blessed = require('blessed'); | |
function createScreen() { | |
var global = blessed.Screen.global; | |
var screen = blessed.Screen.global || blessed.screen({ tput: true }); | |
if (!global) { | |
screen.program.key('C-c', function() { | |
return process.exit(0); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var t = this; | |
var FUNCTION_TESTS = [ | |
{ | |
title: "qx.Bootstrap.isFunction", | |
fn: function() { | |
return qx.Bootstrap.isFunction(qx.Bootstrap.isFunction); | |
} | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Provides a registry of top level objects | |
*/ | |
qx.Class.define("qx.core.Id", { | |
extend: qx.core.Object, | |
include: [ qx.core.MObjectId ], | |
type: "singleton", | |
members: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"searchfield": { | |
include: "textfield", | |
style: function(states, style) { | |
style = qx.lang.Object.clone(style); | |
style.padding = 0; | |
style.margin = 0; | |
return style; | |
} | |
}, | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Image which preserves the aspect ratio while scaling the image and constrains | |
* the dimensions to stay within the min/max width/height. The image is placed | |
* centrally within the dimensions of the widget. | |
* | |
* Based on the Qooxdoo image | |
*/ | |
qx.Class.define("grasshopper.af.ui.image.Image", { | |
extend : qx.ui.core.Widget, |
OlderNewer