Terminal.js
DOM-driven fake terminal output jQuery plugin
Install / Use
/learn @cassidyjames/Terminal.jsREADME
terminal.js
This is a project I wrote (and @funnylookinhat heavily refactored) for System76. Basically you set up all the fake Terminal output in the DOM and use data attributes to control the speed of each line.
Then just runTerminal() on a jQuery object to kick it off, i.e. runTerminal($('#terminal')).
See terminal.mustache for example HTML, or a demo implementation here.
Data Attributes
On the container:
data-terminal-prompt- string: Prepend each prompt line, i.e.
"system76@Galago-UltraPro:~$ "
On each span:
data-terminal- string
"text"(default): type out the message on the currently-last line - string
"line": echo the whole line at once on a new line
- string
data-terminal-message:- string: the text to output
data-terminal-time- integer: How long to wait in milliseconds after the previous step starts. Account for 200ms/character in the previous message if it was
data-terminal="text"
- integer: How long to wait in milliseconds after the previous step starts. Account for 200ms/character in the previous message if it was
Featured at:
Related Skills
node-connect
337.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
337.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.2kCommit, push, and open a PR
