terminal

Creates a terminal-like interface in the browser console or a DOM element.

Functions

Function
Description
Example

terminal

Create terminal in DOM element

dphelper.terminal(parentDom)

Description

In-browser terminal:

  • Console Redirect - Redirect console methods to DOM

  • Visual Output - See logs in a visual terminal

  • Debugging - Great for debugging web apps

  • Interactive - Create terminal-like interface

Usage Examples

Create Terminal

// Create terminal in a div
const terminalDiv = document.getElementById('terminal');
dphelper.terminal(terminalDiv);

// Now console.log, console.error etc. appear in the div
console.log("Hello Terminal!");
console.error("Error message");
console.warn("Warning");

Debug Panel

Application Logging

Details

  • Author: Dario Passariello

  • Version: 0.0.1

  • Creation Date: 20240525

  • Last Modified: 20240525

  • Environment: client (browser)


Automatically generated document

Last updated