How to use the textbox function from blessed

Find comprehensive JavaScript blessed.textbox code examples handpicked from public code repositorys.

103
104
105
106
107
108
109
110
111
112
    data.msgBox[data.selectedWindow].focus()
})
data.screen.append(data.chats)

// Command line prompt
data.cmdline = blessed.textbox({
  keys: false,
  tags: true,
  mouse: true,
  label: 'Command for Telecommander',
fork icon2
star icon32
watch icon2

+ 2 other calls in file

21
22
23
24
25
26
27
28
29
30
    border: {
        type: 'line'
    },
    label: ' Log '
});
let input = Blessed.textbox({
    bottom: 0,
    left: 0,
    height: 3,
    width: '100%',
fork icon18
star icon6
watch icon4

+ 9 other calls in file

174
175
176
177
178
179
180
181
182
183
  style: {
    fg: 'white',
    bg: 'black'
  }
}),
cmd: blessed.textbox({
  parent: this.boxes.dev,
  top: this.boxes.dev.height - 1,
  left: 0,
  right: 0,
fork icon7
star icon17
watch icon0

35
36
37
38
39
40
41
42
43
44
    parent: form,
    content: 'Username:',
    top: 0
});

var username = blessed.textbox({
    parent: form,
    name: 'username',
    value: user.inputData.username === undefined ? user.name : user.inputData.username,
    input: true,
fork icon5
star icon11
watch icon18

+ 2 other calls in file

123
124
125
126
127
128
129
130
131
132
    border: {
      fg: '#f0f0f0'
    }
  }
})
var chat = blessed.textbox({
  top: '90%',
  left: '35%',
  width: '65%',
  height: 'shrink',
fork icon4
star icon6
watch icon4

+ 11 other calls in file

193
194
195
196
197
198
199
200
201
202
    }
  }),
  autoCommandKeys: true,
})

this.search = blessed.textbox({
  top: 1,
  left: 1,
  height: 1,
  input: true,
fork icon2
star icon6
watch icon2

+ 15 other calls in file

16
17
18
19
20
21
22
23
24
25
blessed.text({
    parent: form,
    fg: 'cyan',
    content: TITLE_PROG
})
var prog = blessed.textbox({
    parent: form,
    name:'program',
    inputOnFocus: true,
    value: js['program'],
fork icon1
star icon5
watch icon2

+ 3 other calls in file

74
75
76
77
78
79
80
81
82
83
84
    }
  }
});
screen.append(logBox);


var textBox = blessed.textbox({
  top: "100%-2",
  left: -1,
  width: "100%+2",
  height: 3,
fork icon1
star icon4
watch icon1

+ 294 other calls in file

74
75
76
77
78
79
80
81
82
83
84
    }
  }
});
screen.append(logBox);


global.textBox = blessed.textbox({
  top: "100%-2",
  left: -1,
  width: "100%+2",
  height: 3,
fork icon1
star icon4
watch icon0

+ 7 other calls in file

33
34
35
36
37
38
39
40
41
42
  border: theme.searchBox.border,
  style: theme.searchBox.style,
  content: 'Search addons',
  keys: true,
});
const text = blessed.textbox({
  parent: searchBox,
  mouse: true,
  keys: true,
  fg: theme.text.fg,
fork icon1
star icon4
watch icon2

+ 9 other calls in file

12
13
14
15
16
17
18
19
20
21
22
23
  };
};


exports.textboxImpl = function(options) {
  return function(){
    return blessed.textbox(options);
  };
};


exports.textImpl = function(options) {
fork icon0
star icon10
watch icon0

89
90
91
92
93
94
95
96
97
98
destroy () {
        this.screen.destroy();
}

question (prompt, censor=false) {
        const textbox = blessed.textbox({
                parent: this.screen,
                left: 'center',
                top: 'center',
                tags: true,
fork icon0
star icon3
watch icon2

+ 27 other calls in file

54
55
56
57
58
59
60
61
62
63
  scrollable: true,
  alwaysScroll: true,
  tags: true,
});

const messageInput = blessed.textbox({
  width: '90%',
  left: '5%',
  top: '85%',
  keys: true,
fork icon85
star icon0
watch icon25

+ 23 other calls in file

192
193
194
195
196
197
198
199
200
201
  top: 3,
  name: 'check',
  content: 'Local Database'
})

var textKeyEncoding = blessed.textbox({
  parent: form,
  mouse: true,
  keys: true,
  bg: 243,
fork icon41
star icon0
watch icon2

+ 5 other calls in file

82
83
84
85
86
87
88
89
90
91
    fg: 'black',
    tags: true,
    content: ''
});

self.inputBox = blessed.textbox({
    parent: self.rootBox,
    top: self.screen.height - 1,
    height: 1,
    left: 3,
fork icon0
star icon1
watch icon1

61
62
63
64
65
66
67
68
69
70
  bottom  : 6,
  align   : 'left',
  content : 'Cluster URL :',
}); 

const url = blessed.textbox({
  // hide the URL input when a server URL is already provided
  hidden       : !kube_config,
  parent       : form,
  name         : 'url',
fork icon148
star icon0
watch icon1

+ 7 other calls in file

45
46
47
48
49
50
51
52
53
54
  top     : 1,
  align   : 'left',
  content : 'Filter:',
});

const search = blessed.textbox({
  parent       : box,
  border       : 'line',
  width        : '100%-11',
  height       : 3,
fork icon148
star icon0
watch icon0

-2
fork icon20
star icon255
watch icon6

+ 3 other calls in file

-2
fork icon2
star icon59
watch icon2

+ 3 other calls in file

380
381
382
383
384
385
386
387
388
389
	keys: true,
	scrollable: true,
});
this.screen.append(this.contentBox);

this.inputBox = blessed.textbox({
	top: '80%',
	left: '25%',
	width: '75%',
	height: '20%+1',
fork icon4
star icon52
watch icon0