Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:27
    jcubic labeled #708
  • 16:27
    jcubic closed #706
  • 16:25
    jcubic labeled #710
  • 16:24
    jcubic opened #711
  • 13:24
    jcubic edited #710
  • 13:24
    jcubic labeled #710
  • 13:24
    jcubic opened #710
  • Nov 25 14:30
    jcubic labeled #709
  • Nov 25 14:30
    jcubic opened #709
  • Nov 25 13:48
    jcubic opened #708
  • Nov 25 13:48
    jcubic labeled #708
  • Nov 23 18:28
    jcubic commented #707
  • Nov 23 18:28
    jcubic commented #707
  • Nov 23 16:03
    AlexandrosAlexiou commented #707
  • Nov 20 15:44
    AlexandrosAlexiou edited #707
  • Nov 20 15:44
    AlexandrosAlexiou edited #707
  • Nov 20 15:43
    AlexandrosAlexiou edited #707
  • Nov 20 15:37
    AlexandrosAlexiou commented #707
  • Nov 20 13:53
    jcubic labeled #707
  • Nov 20 13:53
    jcubic commented #707
danishjmi01
@danishjmi01
I understand its difficult to figureout problem without reproduction. But I am restricted by my organisation's policies. And thank you for all your suggestions and advices till now. If I manage to get approvals to share specific things, I will let you know.
Jakub T. Jankiewicz
@jcubic
@danishjmi01 you can tell your boss or whoever is in charge that I can sign the NDA and we can contact privately, maybe with an email or some other online form of communication. I'm also providing paid support if you need any.
Ra0R
@Ra0R
Hey guys, is there a possibility to create a selection of options (e.g. [start stop quit]) which can be selected with the keyboard arrows?
I skimmed the documentation and didn't find anything.
Jakub T. Jankiewicz
@jcubic
@Ra0R there is new extension, forms. see demo https://codepen.io/jcubic/pen/jOWRLex
Sorry, for the delay, I didn't notice the message
Ice Badger
@TheIceBadger_twitter
Hi, fairly new to jQuery Terminal (and JS in general) I am playing around a bit with it and was wondering if its possible to type a command in Terminal A, that can echo or do something over on Terminal B? Like a visual log of IP addresses for example :D
Jakub T. Jankiewicz
@jcubic
yes you need to create two terminals terminal jquery plugin return jquery terminal object that can be used to echo and do stuff. you need to keep two variables for both terminals and when command is executed on one terminal you call echo or exec on the other terminal.
I can create simple example if you need but I'm pretty limited right now because I don't have access to my computer. I'm using my phone. Will be back from my vacation in the end of the week.
Ice Badger
@TheIceBadger_twitter
I would love an example! I will play around with it a bit and see if I can figure it out, thanks a lot!
Ice Badger
@TheIceBadger_twitter

I think I figured it out!

var termTrace = $('#trace').terminal(function(command, term) {
        var cmd = $.terminal.parse_command(command);
        switch (cmd.name) {
            case 'echo':
                termMem.echo('Hello World');
                break;
        }
}, {
    greetings: null,
    name: 'trace',
    height: 90,
    width: 810,

});    

var termMem = $('#memory').terminal(function(command, term) {
        var cmd = $.terminal.parse_command(command);
        switch (cmd.name) {
            case 'echo':
                termTrace.echo('Hello World');
                break;
        }
    }, {
        greetings: null,
        name: 'memory',
        height: 960,
        width: 240,
    });    

This will let my type "echo" in one terminal and "Hello World" shows up in the other :D
Let me know if that's how it should be done ^^

Jakub T. Jankiewicz
@jcubic
yes exactly like this, also you can use termTrace.exec(`echo "something"`); since you have echo command on trace terminal.
Ice Badger
@TheIceBadger_twitter
Thank you so much for pointing me in the right direction, I have been stuck trying to figure it out for days!
Jakub T. Jankiewicz
@jcubic
but also with code like this if you call exec(echo) you will get infinite loop probably the browser will freeze. I'm not sure if you will get stack Overflow error.
Ice Badger
@TheIceBadger_twitter
Right now one of them just has nothing in it and I just echo things to that from another terminal, so one handles everything the other just sits there and shows stuff :D
sysc4ll
@sysc4ll_gitlab
hello, how to clear the screen with clear() command, but display the greetings message like the start
please
Jakub T. Jankiewicz
@jcubic
You need to use onClear: function() { } option
best is to put the greetings into variable and echo it in onClear.
sysc4ll
@sysc4ll_gitlab
when i use clear command in my term, there is a bug. Look here : https://pixshare.de/image/screenshot-2021-11-07-15-39-29.vfI7W
the prompt cursor is under the prompt
Jakub T. Jankiewicz
@jcubic
Do you have a demo online? It's hard ot say without seeing the code
sysc4ll
@sysc4ll_gitlab
no :( i have not. Sorry. But i can paste my code on pastebin
sysc4ll
@sysc4ll_gitlab
i understand, sorry to have disturb you, I'll be back later with a little line of code. But it seems to be a little bug. Good evening
Jakub T. Jankiewicz
@jcubic
You need to give me a way to reproduce the issue, either by creating demo online. you can use git to put your code (or gitlab looking at your username)
sysc4ll
@sysc4ll_gitlab
thanks
Jakub T. Jankiewicz
@jcubic
I also need to know what browser and system your using and which version of the library
sysc4ll
@sysc4ll_gitlab
I'll be back later with all of that, thanks again
sysc4ll
@sysc4ll_gitlab
hi! firefox: 94.0.1 your lib: 2.29.4 (npm version)
I'm on 4G in a hospital, i can't route port to my laptop from my smartphone
but i can upload my code in a tar.gz or zip
in private please
Jakub T. Jankiewicz
@jcubic
@sysc4ll_gitlab you can send it my email jcubic@onet.pl
sysc4ll
@sysc4ll_gitlab
thank you :)
sysc4ll
@sysc4ll_gitlab
it's send
Jakub T. Jankiewicz
@jcubic
Do you have any instruction how to run or build your app?
main package.json file is empty, just {}
sysc4ll
@sysc4ll_gitlab
for dependencies : in theme/sysc4ll : npm install
for run hugo (with sass version) in the root folder: hugo server --theme sysc4ll --disableFastRender
Jakub T. Jankiewicz
@jcubic
if you create a project for someone you should at least write README on how to run it. I don't have a crystal ball.
sysc4ll
@sysc4ll_gitlab
yes, ok, sorry and thanks
it's just for me, but i take your help
Jakub T. Jankiewicz
@jcubic
and do I need to install hugo globally? What is the name of the package? hugo?
sysc4ll
@sysc4ll_gitlab
on ubuntu and i suppose on debian : sudo apt install hugo
Jakub T. Jankiewicz
@jcubic
It is a bug, I'm not sure why it's happening will need to investiage
Jakub T. Jankiewicz
@jcubic
it may be a bug in the browser, that is caused by your display: flex !important on terminal object.
sysc4ll
@sysc4ll_gitlab
ok :) thank you very much.
in chrome it's the same
sysc4ll
@sysc4ll_gitlab
yes. display: block !important and it's good :)
thank you very much again, good luck, and good day, bye