Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
width: "50%",
height: "55%",
left: "50%",
top: "42%",
border: {
type: "line"
},
style: {
fg: -1,
border: {
fg: this.color
}
}
});
this.assetTable = blessed.table({
parent: this.assets,
height: "100%",
width: "100%-5",
align: "left",
pad: 1,
scrollable: true,
alwaysScroll: true,
scrollbar: {
ch: " ",
inverse: true
},
keys: false,
vi: false,
mouse: true,
data: [["Name", "Size"]]
});
screen.key('h', function(ch, key){
post_box.setContent("");
table = blessed.table({
parent: post_box,
border: 'line',
align: 'center',
tags: true,
style: {
border: {
fg: 'white'
},
header: {
fg: 'blue',
bold: true
},
cell: {
fg: 'magenta'
}
}
displayArbs(arbs) {
HUD.initScreen();
if (!HUD.objects.arbTable) {
HUD.objects.arbTable = blessed.table({
top: '0',
left: 'center',
width: '50%',
height: '50%',
border: {
type: 'line'
},
style: {
header: {
fg: 'blue',
bold: true
}
}
});
HUD.screen.append(HUD.objects.arbTable);
export function tableAdapter(options?: Widgets.TableOptions) {
return blessed.table({ ...options, ...defaultOptions });
}
top: 0,
left: 0,
width: '100%',
height: '100%',
padding: 0,
style: {
fg: 'black',
bg: 'black',
border: {
fg: '#f0f0f0',
bg: 'black',
},
},
});
const scoreboardTable = blessed.table({
top: 5,
left: 'center',
width: '33%',
height: 8,
tags: true,
border: {
type: 'line',
},
style: {
header: {
fg: 'white',
},
cell: {
fg: 'white',
},
},
export const helpDialogue = () => {
const helpDialogue = blessed.table({
align: 'left',
border: { type: 'line' },
data: help.helpText(),
height: 'shrink',
hidden: true,
noCellBorders: true,
padding: 1,
right: 0,
style: {
border: { fg: themeColor },
},
bottom: 0,
width: 'shrink',
});
return helpDialogue;
height : '100%',
width: '80%+1',
border: 'line',
label : chalk.bold(' MultiSSH ' + pkg.version) + ': SSH command result ',
top: 0,
left: 0,
padding : 2,
style : {
border: {
fg: 'cyan',
bold : true
}
}
});
var text = blessed.table({
parent: screen,
keys: true,
label : chalk.bold(' Helper '),
width: '20%',
border: 'line',
bottom: 0,
right: 0,
style: {
fg: 'white',
bg: 'default',
border: {
fg: 'cyan',
bold : true
},
selected: {
}
width: "75%",
height: "42%",
left: "0%",
top: "0",
border: {
type: "line"
},
style: {
fg: -1,
border: {
fg: this.color
}
}
});
this.moduleTable = blessed.table({
parent: this.modules,
height: "100%",
width: "100%-5",
align: "left",
pad: 1,
margin: "auto",
shrink: true,
scrollable: true,
alwaysScroll: true,
scrollbar: {
ch: " ",
inverse: true
},
keys: false,
vi: false,
mouse: true,
padding: {bottom: 1},
})
.append(spinner)
this.intervals.push((setInterval(() => {
spinner.setContent(
chalk.yellow.bold(this.spinnerAnimationFrames[spinnerFrameIndex])
)
this.screen.render()
spinnerFrameIndex++
if (spinnerFrameIndex >= this.spinnerAnimationFrames.length) {
spinnerFrameIndex = 0
}
}, 120) as any) as NodeJS.Timer)
this.table = blessed.table({
parent: centeredContainer,
border: 'line',
align: 'left',
width: 75,
style: {
border: {
fg: '#333',
},
},
data: this.getTableData(),
})
this.intervals.push(
setInterval(() => {
this.table.setData(this.getTableData())
this.progressBar.setProgress(
label: ' Play By Play ',
border: {
type: 'line',
},
scrollbar: {
ch: ' ',
track: {
bg: '#0253a4',
},
style: {
inverse: true,
},
},
});
const boxscoreTable = blessed.table({
parent: screen,
top: 15,
left: '70%',
width: '30%-3',
height: '100%-15',
tags: true,
pad: 0,
label: ' Box Score ',
border: {
type: 'line',
},
});
screen.append(baseBox);
screen.append(seasonText);
screen.append(timeText);