Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wstelnet.html requires the user to press enter to get login prompt #25

Open
beeelze opened this issue Nov 2, 2015 · 0 comments
Open

Comments

@beeelze
Copy link

beeelze commented Nov 2, 2015

When I connect to my device behind my console server through the websockify proxy I first have to press the enter key in order to get a prompt to enter my username. I opened this issue on stackoverflow as well ( http://stackoverflow.com/questions/33436139/websockify-send-enter-key-through-web-socket-to-automatically-get-login-prompt/33456478#33456478 ). Some users might understand that they have to press the enter key first, but I feel like it's good to have this functionality in my application.

As one of the stackoverflow answers suggest, a simple modification can be made to the wstelnet.html page in order to send an enter key event ( new line ). I tested this function and it does send a new line ( the cursor moves 1 line down ), but the login prompt only appears after pressing enter myself.

function connected() {
    $D('connectButton').disabled = false;
    $D('connectButton').value = "Disconnect";
    $D('connectButton').onclick = disconnect;

    VT100.the_vt_.key_buf_.push("\n");
    VT100.go_getch_();
}

How do I go further with this?

@CendioOssman CendioOssman transferred this issue from novnc/websockify May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant