Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

js terminal emulator (web-based)

Featured Replies

Hi all,

 

Is there a js library that would let me create a very simple terminal emulator with a prompt and some programmable by me commands. I'm not talking about a real one with tools like ssh, etc. What I need it for is a browser based game I am trying to write. I have googled it but couldn't find anything relevant. I know I could write it from scratch but was wandering if a library like that exists where I can just program my commands and the whole REPL idea is already implemented.

 

Thank you

I actually made a game like this a while ago chatrpg.co.uk, from what i remember i couldn't find anything. Ill have a look at the source code and if its any good ill put it up on github if not i dont mind giving you a few pointers.

 

*note* ive just checked out the database and its one of the sites ive yet to fully migrate over so you wont be able to login

Edited by D4Y0

  • Author

Thank you for your reply. Let me know once you're able to log in. In the meantime I'll try to put together something basic but I'll definitely need some help:)

I actually made a game like this a while ago chatrpg.co.uk, from what i remember i couldn't find anything. Ill have a look at the source code and if its any good ill put it up on github if not i dont mind giving you a few pointers.

 

*note* ive just checked out the database and its one of the sites ive yet to fully migrate over so you wont be able to login

 

A rather simple piece of Googling from a superior mind came across a particularly relevant piece of knowledge.

 

Have a look at http://terminal.jcubic.pl/ or https://github.com/chjj/tty.js/

 

Easily found by the Web Wizard.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.