GithubHelp home page GithubHelp logo

utsav-ladani / html-and-terminal Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 4.0 425 KB

Type command in browser and run on server

License: MIT License

JavaScript 55.46% HTML 14.76% CSS 29.78%
nodejs react web-base-terminal

html-and-terminal's People

Contributors

utsav-ladani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

html-and-terminal's Issues

Improve UI

As per the issue #2 , for add text editor and we need to change UI design.

What type of design ?

  • Use simple bootstrap classes
  • Two webpage: one have simple project info(landing page), second have a cmd and text editor.

Add basic feature

Like other terminal, it would be good to have a some specific key event like:

  1. ⬆️ and ⬇️ for use previous command
  2. CTRL + C and CTRL + Z for exit or pause the program

Text editor

Add simple text editor, so people can edit files and save it on server.

Directory not changed using cd <dirname>

Current behavior

cd <dirname> is not working

Expected behavior

'cd change path and go inside`

Why happen this?

execa and child_process can execute only one line command, then close cmd, so next cmd execute in other cmd, hence cd <dirname> goes vain.

Solution

For temporary solution, I make a new one more input box for enter your location, where you want to execute command. Use this value as cwd value in ExecOptions.

// code ...
 const options = {
        cwd: 'E:/' + location,
        shell: 'cmd',
    }

    exec(command, options, (err, stdout, stderr) => {
        if (err) {
// code ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.