Questions tagged [jquery-terminal]

JQuery Terminal Emulator is a plugin for creating command line interpreters in your applications.

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

I am not able to change the font size of the terminal text by using a command in the terminal itself

I have a terminal using jQuery.Terminal and I want to change the font size of the font of the text in the terminal using a command. But no matter what it just doesn't allow to do. Also, I want to echo ...
0 votes
0 answers
25 views

Jquery Terminal with ReactJs how to make a terminal reference global?

I am trying to include Jquery Terminal in my react application. I have got the terminal to display and to interpret commands from my custom interpreter function, however I need to reference the ...
  • 13
-1 votes
1 answer
14 views

JQuery Terminal how to display document.cookie

I was hoping to display the cookie data of the user in the terminal, however I have not been able to find any implementations apart from within: https://codepen.io/TheRealAlan/pen/qNOZPo where: hack:...
1 vote
1 answer
24 views

Prompt not showing up after a sequence of typing animations in jQuery Terminal

eth_atr_d9: function() { this.echo('Entering... ', { typing: true, delay: 10 }); this.echo('Text1', { typing: true, delay: 30 }); this.echo('Text2', { ...
0 votes
0 answers
25 views

How can I get rid of the text field when using jQuery.terminal with Next JS?

I am trying to use jquery.terminal within a Next.js app. This is my terminal component: import React, { useEffect } from 'react'; import $ from 'jquery'; import 'jquery.terminal'; ...
  • 179
2 votes
2 answers
38 views

How to run a video file in jquery-terminal

I am trying to create a website based on the initial graphics of jquery.terminal and I have noticed that there are currently no questions related to video management. I got to see questions related to ...
2 votes
0 answers
67 views

JQuery Terminal - How to prevent a command line being displayed in the terminal history

Does anyone know how to prevent a command from going into history in JQuery Terminal? That is, when a command is typed it triggers my : var term = $('body').terminal( function(command) { //stuff ...
  • 1,042
0 votes
1 answer
84 views

Creating text prompts with jquery Terminal

I've read the docs and the article on jquery Terminal https://itnext.io/how-to-create-interactive-terminal-like-website-888bb0972288 I'm using it for the GUI basically and not so much for the command ...
  • 15
0 votes
0 answers
61 views

Jquery terminal force scroll position

I'm trying to implement Jquery Terminal on my web application, but every time when I reload the page, the scroll position automatically change to terminal view. I would like to remove this “feature”, ...
0 votes
1 answer
84 views

trying to create a terminal using jquery.terminal

Hi I am trying to create a jquery.terminal. I tried to follow this article, here it uses the body tag, I wish to use only a div for the terminal area not the whole body. Tried accessing the <div id=...
  • 141
1 vote
2 answers
188 views

JQuery Terminal - Optional parameters in commands

I want to accept optional parameters when creating a function to handle a command in the JQuery Terminal plug-in. eg. Foo -> returns a list of Foo's Foo 1234 -> returns details of Foo 1234 only ...
1 vote
2 answers
473 views

How can I create a simple loading animation while a function is running?

I'm trying to create a simple loading animation for an arbitrary function in JQuery Terminal. I know that JavaScript is single threaded and synchronous, but are there any workarounds? I've seen the ...
0 votes
1 answer
62 views

Why does creating a color command in an HTML Terminal emulator create a (mostly) white screen?

I am making an HTML terminal, and have done most of the styling. I am trying to add one command, though, which will change the color. You can run these code snippets, and see why I'm asking this, but ...
1 vote
1 answer
97 views

How do I print out text in subscript/superscript in JQuery Terminal?

I've been trying to find a way to print out text in subscript/superscript within terminal.echo(), but I haven't found one. I know that you can add color and make text bold using the following return &...
0 votes
1 answer
181 views

How do I color text in JQuery Terminal that contains a backslash (\)?

I've been following this question to help me change the color of the output in JQuery Terminal, though the approach does not seem to work with backslashes. Ideally, I'd want to be able to highlight ...
0 votes
1 answer
65 views

How to remove the autofocus feature from JQuery Terminal Plugin?

I'm making a basic HTML page that contains a JQuery Terminal that is located just beneath the first visible window, so you essentially just scroll down and then you can see the terminal. My issue is ...
1 vote
0 answers
156 views

How to check CSS Box model of an element in Cypress?

I plan to create visual testing for my library jQuery Terminal. But I need to know, if it's possible to check the CSS box model (margin, padding, width, and height) of the elements. I need to check if ...
  • 60.7k
0 votes
1 answer
84 views

How to add spacing to the image tag? [jQuery Terminal]

How can I add a spacing or tab character before an image? I am making a terminal that resembles/bears a similarity to the neofetch command, and I kinda want to imitate the color palette like this. I ...
  • 3
2 votes
0 answers
80 views

Browser becoming sluggish after upgrading to jquery.terminal-2.19.2.js

we have a web application where we have web terminal to fire some commands from there and request goes back to server via websocket for processing and result comes to the browser and displayed back on ...
2 votes
1 answer
791 views

How to send a command to the shell with jQuery Terminal?

I want to build a Web-based Terminal and I want to execute a shell command. How can I use jQuery Terminal library to send command to shell and print the reply?
  • 60.7k
3 votes
2 answers
160 views

jQuery terminal: how to unset mask?

I'm using jQuery Terminal to build my site. Now I'm building signin command: signin: function() { this.read("user id: ").then(userId => this.set_mask('*').read("password: ")....
  • 41
0 votes
1 answer
288 views

Alternative to replace all html entities by characters in Web Worker

I'm trying to get my script (jQuery Terminal library) to run in Web Worker with minimal jQuery replacement and no JS-DOM. I have bare_text functions like this: // --------------------------------------...
  • 60.7k
0 votes
1 answer
53 views

arguments not working in jquery terminal plugin

I have been recently working on an electron application which uses jquery terminal plugin. I am using cmd function of the plugin and want to pass an argument while giving the command and then print ...
0 votes
0 answers
56 views

How do I add a jquery-terminal to a view in my c# ASP.NET MVC app?

Aside from some simple introductory tutorials and messing around with the default template, this is my first ever ASP.NET app and I'm a bit overwhelmed with all of the configurations, folders, ...
  • 1
0 votes
1 answer
78 views

TypeScript after 3.1 don't accept callback functions argument types

I have this issue with jQuery Terminal. I have quite big d.ts file but it don't work properly I've tried to update dependencies and everything broke. From some time I was not able to update TypeScript ...
  • 60.7k
3 votes
1 answer
697 views

Creating a Linux terminal themed website using HTML and JavaScript

I am trying to create a Linux terminal themed website which has multiple commands. The user has liberty to use whichever commands he/she wants just like a normal terminal. I've created a sample HTML ...
0 votes
1 answer
107 views

Bug in bookmarklet on web page that have HTML 3.2 doctype

I have bookmarklet that create REPL with Scheme language using my Scheme based lisp in JavaScript and jQuery Terminal. The bookmarklet is not important it just create terminal the link to the ...
  • 60.7k
0 votes
1 answer
48 views

How to Make a Log Retrieval System with jQuery Terminal

My Current Project I'm trying to make a terminal with jsQuery that has a log retrieval function. My Problem I don't know how to Make the function use an argument instead of writing each command, one ...
0 votes
1 answer
92 views

Changing greeting based on screensize

I was wondering how I can change my greeting based on the screensize. Currently it doesn't look nice on smaller screens. I'm not adept at jQuery/JS so I used an if statement to check the width and ...
1 vote
1 answer
506 views

How to Create More Than One Command in a jQuery Terminal Environment

My Current Project I am trying to make a terminal-style webpage using jQuery Terminal. My Problem I cannot figure out how to add more than one command to the terminal. Here's my code: $('body')....
1 vote
0 answers
51 views

I am facing some issues with jquery-terminal while trying to build my own web terminal for my portfolio website

e.g. this.echo("Hospital Management System: Designed a full-fledged Hospital Management System Keeping in mind of all the necessary details and problems faced by the people. It was meticulously ...
7 votes
1 answer
1k views

Touch move fire only once when implementing "less" like scrolling on mobile

I'm trying to to implement touch scroll in less extension to jQuery Terminal. It work similar to less unix command. I have this code: self.touch_scroll(function(event) { // how much difference ...
  • 60.7k
4 votes
1 answer
3k views

How to parse cursor ANSI escape codes?

I'm writing code for processing ANSI escape codes for cursor for jQuery Terminal. but have problems, not sure how it should work, I've got weird results. I'm testing with ervy library. and using ...
  • 60.7k
0 votes
1 answer
428 views

JQuery Terminal: How to echo without line break

Is it possible to echo without causing a line break? For example, say I wanted to have three dots appear one second after each other: this.echo("."); await sleep(1000); this.echo("."); await sleep(...
  • 2,196
0 votes
0 answers
597 views

How to change jQuery terminal --char-width

I am using jQuery Terminal 2.4.1. In Chrome the Terminal allows the user to type characters only half of terminal width and it wraps. Firefox it works fine. The only difference I am seeing is --char-...
0 votes
0 answers
80 views

Jquery terminal cursor is hidden in FF upon pressing left arrow

I am using jquery 2.4.1 and adding a terminal window. In firefox I am facing an issue , the cursor is disappearing when I navigate using left arrow. It re-appears if I press enter. Other browsers it ...
0 votes
0 answers
53 views

Error --> "Can't logout() while you are in login"

While using jquery terminal, sometimes if without logging in if I try to call logout() it is throwing me an error like "U can't logout while you are in login". Any idea about this..?
  • 31
1 vote
0 answers
24 views

cursor is not visible on click of left and right arrows in Mozilla

I'm using jquery terminal plugin and I found that when I want to edit the entered command, the cursor is hiding and it's not visible in Mozilla but the text is inserting. Did I missed anything ..?
  • 31
1 vote
1 answer
95 views

How to prevent jQuery terminal plugin showing *** when typing a password in a password field?

I want to make the password field in jQuery terminal plugin the same as like the PuTTY password field, which will not show anything when we are entering a password. Currently, it is showing the ...
  • 31
1 vote
0 answers
63 views

Typescript 3.3 no longer get types for my functions from d.ts file

In my library jQuery Terminal I have d.ts file for types and I have test.ts for testing the types, it's just usage of almost every pice of the API, and I'm executing tsc without emitting output files ...
  • 60.7k
1 vote
1 answer
253 views

ASCII art on Codepen don't always show underscores

In my library jQuery Terminal I have issue with CSS on Codpen (ASCII art) when opening in Chrome Underscores is not always visible, Codepen use iframe, I've tested locally and iframe looks ok. Codpen ...
  • 60.7k
2 votes
1 answer
371 views

jQuery terminal - Reading shell response in Java as string shows weird characters in jQuery terminal

I'm currently using a piped input/output stream principe to read from and write to a shell channel using JSCH. Problem: I'm getting weird characters in my jQuery terminal when I transport the ...
  • 650
1 vote
1 answer
106 views

Can't edit textarea in JQuery Terminal

I am loading raw data from a url into JQuery Terminal... var terminal = $('#term').terminal(function(command, term) { term.pause(); //set url... $.get(url, function(result) { ...
0 votes
1 answer
89 views

Load raw link contents into terminal

I'm using the raw property to get formatted data from urls into the terminal, like this $(function() { var save_state = []; var terminal = $('#term').terminal(function(command, term) { term....
0 votes
1 answer
112 views

Reversing the flow of JQuery-Terminal

Is it possible to have new command results push previous command results down? This is kind of opposite from how JQuery works out of the box with new commands being entered below the entire command ...
0 votes
1 answer
38 views

What security implication to use anyLinks: true with jQuery-terminal?

I can't use anymore relative link in jquery-terminal because all links must have either a ftp or http(s) protocol. I don't quite understand the warning https://terminal.jcubic.pl/api_reference.php#...
  • 359
0 votes
1 answer
419 views

Jquery Terminal register & login

I have question, i want user register then login but here it's error anyone can help me ? i saw the documentation . here is link of the documentation jquery termi[jquery terminal]1nal here is my ...
0 votes
1 answer
236 views

Regular expression containing an escape sequence in JavaScript for jquery terminal not working

I am trying to execute special character functionality in jQuery terminal. I was able to execute backspace functionality successfully, but I am facing a problem while executing escape functionality. ...
0 votes
1 answer
136 views

Can this npm package be imported?

Hi I am trying to import a npm package called "jquery.terminal" into my project. I am using browserify through the command line to convert the require("jquery.terminal"); statement into readable code ...
  • 355
0 votes
1 answer
182 views

Using the jquery-terminal emulator widget without jquery

Is there a way to use this terminal widget without jquery. I mostly use vanilla js on my site, and I want to include this terminal. Is it possible to use without jquery? Is there a good alternative? ...