Termo is a simple terminal emulator that can be used to create a terminal-like interface on your website.
Termo is a simple terminal emulator for the browser that allows you to create a terminal-like interface on a website. It is a wrapper on top of xterm.js.
Key features include:
Customizable appearance: You can set the terminal's title, prompt, font, and theme.
Welcome message: A message can be displayed when the terminal opens.
Command execution: You can add and execute JavaScript commands.
Sound effects: Control terminal sound effects.
Full access to xterm.js: You can access the underlying xterm.js library.
Docking/floating mode: The terminal can be set to docked or floating mode.
Termo can be installed via CDN or npm. It offers methods to create, show, hide, set the theme, destroy, dock, and float the terminal. It accepts an object with configuration options like playSound
, title
, welcomeMessage
, theme
, fontFamily
, prompt
, commands
, and terminalOptions
. You can define custom commands with a name, description, action and optional subcommands.