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,
fork icon2
star icon44
watch icon2

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 () {
fork icon254
star icon5
watch icon3

+ 3 other calls in file

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,
fork icon1
star icon0
watch icon3