Skip to content

Instantly share code, notes, and snippets.

View plushrib's full-sized avatar
🏳️‍⚧️

plushrib

🏳️‍⚧️
  • my parent's basement inc.
View GitHub Profile
@plushrib
plushrib / script.js
Created August 11, 2024 20:23 — forked from zux0x3a/script.js
Terminal with pipe (figlet+lolcat,fortune+cowsay)
var term;
function delay(time) {
return new Promise(r => setTimeout(r, time));
}
// ---------------------------------------------------------------------------------
Promise.all([fortune(), fonts()]).then(async ([fortune]) => {
term = $('body').terminal(async function(command) {
const {name, args, rest} = $.terminal.parse_command(command);
const options = $.terminal.parse_options(args);