0 Favourites

How do I simulate a terminal/CMD ??

  • im trying to make a terminal/cmd like textbox, i already tried a lot of things but basically what i want to do is literally emulate a terminal, i know already how to make a textbox recognize text so i can create my own "commands" but what im having problems is typing, if i could only make the textbox object so users wont be able to erase what the terminal write and at the same time they could write on the terminal it will be amazing, thats basically all i need.

    being able to write on the textbox but not to erase text that is not in my line...

    a way to do it is by having 2 textbox, one for typing and one for the "console", but i dont want 2 textboxs, i NEED all to be happening in 1

  • Maybe you can do it with an ASCII-Table and the key-codes.

    I made a little example:

    It doesn't scroll or delete lines, if the textbox is full you don't see any more commands.

    If you want more characters for input you have to extend it yourself, at the moment you can only use letters and numbers.

    Use this ASCII-Table:

  • Maybe you can do it with an ASCII-Table and the key-codes.

    I made a little example:

    It doesn't scroll or delete lines, if the textbox is full you don't see any more commands.

    If you want more characters for input you have to extend it yourself, at the moment you can only use letters and numbers.

    Use this ASCII-Table:

    thats a really nice capx and will help me with my reserach! thanks!!, the thing is that it can delete lines :/

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Thanks!!!!! this work perfect!!! the only thing i would like to add is spaces haha since i cant type "_" hmmm

  • figured out

    (thats space bar in spanish), same must be done with the INPUT variable, just without the new line.

  • Koorbach

    That's pretty nice !

    How do you scroll content when bottom line is reached ?

    And what are the Commands and Shell arrays for ?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)