Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
513 B · 27 lines
JavaScript
12345678910111213141516171819202122232425262728import blessed from 'blessed';
// Create a screen objectconst screen = blessed.screen({ smartCSR: true, title: 'Blue Square'});
// Create a box to represent the blue squareconst blueSquare = blessed.box({ top: 'center', left: 'center', width: '50%', height: '50%', style: { bg: 'blue' }});
// Append the blue square to the screenscreen.append(blueSquare);
// Quit the program when 'q' is pressedscreen.key(['q', 'C-c'], () => process.exit(0));
// Render everythingscreen.render();