How to use the Button function from blessed
Find comprehensive JavaScript blessed.Button code examples handpicked from public code repositorys.
43 44 45 46 47 48 49 50 51 52
}, inputOnFocus: true, mouse: true, }); const save = new Button({ parent: prompt, width: 'shrink', height: 1, mouse: true,
2
44
2
15 16 17 18 19 20 21 22 23 24
focusable: true, shrink: true, padding: {left: 1, right: 1} }).merge(opts || {}).toObject(); opts.style.focus = opts.style.hover; blessed.Button.call(self, opts); BaseElement.call(self, opts); } Button.prototype.__proto__ = blessed.Button.prototype; Button.prototype._initHandlers = function () {
254
5
3
+ 3 other calls in file
GitHub: cogswell-io/cogs-chat
88 89 90 91 92 93 94 95 96 97
mouse: true, inputOnFocus: true, keys: true, }); let button = blessed.Button({ parent: container, right: 0, bottom: 0, height: inputHeight,
1
0
3
blessed.box is the most popular function in blessed (4356 examples)