Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6803063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:17:56+00:00 2026-05-26T19:17:56+00:00

I am interested in writing a web based terminal which can execute and autocomplete

  • 0

I am interested in writing a web based terminal which can execute and autocomplete the commands in ubuntu terminal.

I have fiddled with Anyterm http://www.anyterm.org which uses ROTE: “a simple C library for VT102 terminal emulation” at the backend server and javascript/html for the terminal ui. The problem was that I couldn’t have it open two terminals in the same window.

After doing some research I’ve decided to write a terminal server/pseudo terminal (whichever is the right terminology) in python which can:

  • execute commands in ubuntu terminal (such as ls, grep etc…)
  • autocomplete the commands (like $gedi (pressed tab) $gedit)
  • and have multiple instances of terminal open at the same time (when typed ls in one, the other terminal won’t recognize ls as the last command since its another terminal session)

I have found that with pty python module I can write a pseudo terminal
however I’m new to python and I couldn’t even get the example on that page to work.

I’m planning to have the python script serve a http server with the javascript/html terminal ui I would write (this was the main reason I wanted to choose python for this project). Then I want to let the web ui talk to the backend terminal “server” and get the results back to the web ui.

If you could point me in the right direction, maybe tell me which module I should use -if not pty- and give me some ideas on how to write the python pseudo terminal server I would appreciate it.

I know javascript/php and familiar with bash scripting- At this point I could go for a C based or python based backend server, is python right for this project?

Note: I’m planning to write a ui that uses ajax post or get methods to retrieve the terminal output from backend server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:17:57+00:00Added an answer on May 26, 2026 at 7:17 pm

    You need to learn the basic terminology first. The shell is the program that interprets your input command lines, such as grep “foo” abc.txt. A terminal emulator is a program that mimics a terminal. Terminal is a device with display and keyboard that one
    used in 1970s to access a UNIX mainframe. A pseudoterminal, pty is the device node supporting terminal emulators, as opposed to “real terminal devices” (tty1) for example.

    Now, you could either build a shell, that would work in terminal instead of bash or dash; or you could build a terminal emulator that is usable over the internet; you could run any existing shell in it. Both are challenging tasks by themselves.

    Python documentation is not of much use, I recommend you should start by googling more of these concepts first – and not only python references, but C, C++ too.

    And lastly, if you want to run Emacs or nano or some other advanced program in your shell, you want to use the pty module.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a component for a web app which will display some html,
I have Java servlet-based web applications. I would like to implement some operations in
I am writing an app can load data from from web, then put the
We all have come across web pages which take some time to show the
I am interested in writing static code analyzer for vb.net to see if it
I'm interested in writing software that depends on being able to identify that there
I am interested in writing separate program modules that run as independent threads that
I'm interested in writing some basic computerized object recognition application, so I figure I
I am interested in writing a simplistic navigation application as a pet project. After
I am interested in writing utf-8 encoded strings to a file. I did this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.