How to use the textbox function from blessed
Find comprehensive JavaScript blessed.textbox code examples handpicked from public code repositorys.
GitHub: fazo96/telecommander
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',
2
32
2
+ 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%',
18
6
4
+ 9 other calls in file
GitHub: cryptocurs/hidecoin
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,
7
17
0
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,
5
11
18
+ 2 other calls in file
GitHub: nkzou/tera-cli
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',
4
6
4
+ 11 other calls in file
GitHub: meriadec/samus
193 194 195 196 197 198 199 200 201 202
} }), autoCommandKeys: true, }) this.search = blessed.textbox({ top: 1, left: 1, height: 1, input: true,
2
6
2
+ 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'],
1
5
2
+ 3 other calls in file
GitHub: RainaXA/Precipitation
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,
1
4
1
+ 294 other calls in file
GitHub: RainaXA/Precipitation
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,
1
4
0
+ 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,
1
4
2
+ 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) {
0
10
0
GitHub: natsu-anon/STOWAWAY
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,
0
3
2
+ 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,
85
0
25
+ 23 other calls in file
GitHub: aredridel/lev
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,
41
0
2
+ 5 other calls in file
GitHub: spacemaus/postvox
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,
0
1
1
GitHub: DockerExpert/kubebox
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',
148
0
1
+ 7 other calls in file
GitHub: 5l1v3r1/kubebox
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,
148
0
0
GitHub: hikalium/slack-tui
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',
4
52
0
blessed.box is the most popular function in blessed (4356 examples)