How to use the textarea function from blessed
Find comprehensive JavaScript blessed.textarea code examples handpicked from public code repositorys.
GitHub: geek/radare2-extras
180 181 182 183 184 185 186 187 188 189
function isaText(x) { return (x[0] == ':'); } let res = undefined; if (isaText(name)) { res = blessed.textarea(obj); res.select = function() { /* do nothing */ }; } else if (isaBox(name)) { res = blessed.box(obj); res.select = function() { /* do nothing */ };
113
0
2
GitHub: Calinou/git-commander
10 11 12 13 14 15 16 17 18 19
layout = blessed.layout(styles.layout); styles.textarea.parent = layout; styles.menubar.parent = layout; textarea = blessed.textarea(styles.textarea); menubar = blessed.listbar(styles.menubar); return { layout : layout,
62
0
3
+ 3 other calls in file
49 50 51 52 53 54 55 56 57 58
border: 'line', tags: true, label: 'console' }); var codeBox = blessed.textarea({ parent: screen, shadow: true, height: '40%', width: '100%',
8
10
6
+ 9 other calls in file
GitHub: irrationalistic/nchat
26 27 28 29 30 31 32 33 34 35
fg: 'white' } }); // Input box var messageInput = blessed.textarea({ bottom: 0, left: 0, right: 0, height: 3,
6
73
5
GitHub: kicumkicum/vknplayer
73 74 75 76 77 78 79 80 81 82
* @return {Textarea} * @private */ Input.prototype._createNode = function(params) { params.style = params.style || {}; var input = blessed.textarea({ 'parent': params.parent, 'keys': true, 'mouse': true, 'bottom': params.bottom,
1
18
3
+ 3 other calls in file
71 72 73 74 75 76 77 78 79 80
}); console.log(user); var sshKey = blessed.textarea({ parent: form, name: 'ssh_keys', value: user.inputData.ssh_keys === undefined ? user.keys[0] : user.inputData.ssh_keys, input: true,
5
11
18
+ 2 other calls in file
GitHub: paintingofblue/Nyx
182 183 184 185 186 187 188 189 190 191
fg: 'white', }, }, }); global.enterMessageBox = blessed.textarea({ top: '85%', left: '15%', width: '85%', height: '17%',
1
4
1
+ 125 other calls in file
GitHub: Petingo/Telegram-TUI
89 90 91 92 93 94 95 96 97 98
}); //==============// // Init Cmd Box // //==============// this.cmdBox = blessed.textarea({ top: this.screen.height - 1, left: 'center', width: '100%', height: 1,
0
3
1
+ 2 other calls in file
GitHub: ybakos/rhizome-js
44 45 46 47 48 49 50 51 52 53
const list = this.grid.set(0, 1, 1, 1, blessed.list, { keys: true , fg: 'green' , label: `Hashes tagged: ${tag}` , columnWidth: [24, 10, 10]}) const textbox = blessed.textarea({ parent: list, name: 'Details', keys: true, bottom: 0,
0
2
0
GitHub: oliviaBahr/tipJar
241 242 243 244 245 246 247 248 249 250
tags: true, border: { type: 'line' }, style: { focus: { border: { fg: 'magenta' } } } }); this.descriptionBox = blessed.textarea({ label: 'Description', name: 'descriptionBox', top: 8,
0
2
0
+ 5 other calls in file
298 299 300 301 302 303 304 305 306 307
bottom: 0, height: 5, keys: true, style: theme.TEXT_STYLING }); const taskText = blessed.textarea({ parent: taskActions, top: 0, left: 0, height: 3,
1
1
0
+ 2 other calls in file
GitHub: rbrown29/NodeChat
114 115 116 117 118 119 120 121 122 123
height: '100%', width: '100%', hidden: true }); this.output = blessed.textarea({ parent: this.chatBox, tags: true, border: { type: 'line'
0
1
0
GitHub: nooitaf/nurdbar
220 221 222 223 224 225 226 227 228 229 230
bottom: 0, right: 0, top: 0 }) var irctextarea = blessed.textarea({ title: 'irctextarea', parent: ircinput, inputOnFocus: true, padding: 0,
3
0
0
GitHub: ivan-kravchuk/lab1_life
162 163 164 165 166 167 168 169 170 171 172
style: { bg: 'magenta' } }); var input_1 = blessed.textarea({ parent: form_1, top: '5%', left: '5%', width: '50%',
0
0
1
+ 7 other calls in file
GitHub: moofoo/dnv
438 439 440 441 442 443 444 445 446 447
fg: 'brightcyan', bg: 'black', }, }); const argsPrompt = blessed.textarea({ debug: this.panel.debug, screen, parent: argsContainer, inputOnFocus: false,
0
0
1
GitHub: Andrew-Eathan/cmdcord
120 121 122 123 124 125 126 127 128 129
parent: screen, content: 'Your comments...', top: 24, left: 5 }); var textarea = blessed.textarea({ parent: form, name: 'comments', top: 26, left: 5,
0
0
0
+ 12 other calls in file
GitHub: med-ridha/twitch_bot
98 99 100 101 102 103 104 105 106 107 108
fg: '#f0f0f0' }, } }); const input = blessed.textarea({ label: 'Write stuff', bottom: 0, left: 0, width: '80%',
0
0
0
40 41 42 43 44 45 46 47 48 49
bottom: 5, style: { bg: 'blue' } }); this.name = blessed.textarea({ parent: this.widget, left: 'center', height: 1, top: 13,
0
0
0
blessed.box is the most popular function in blessed (4356 examples)