Coder Social home page Coder Social logo

Comments (10)

vctls avatar vctls commented on June 11, 2024 1

It's working! 🎉 Thank you so much! 🙏

from expect.

hymkor avatar hymkor commented on June 11, 2024 1

That's good. I am glad that your problem is solved.

Thanks to your report, I was able to fix the bug. Thank you very much.

from expect.

hymkor avatar hymkor commented on June 11, 2024

The reason that Bitvise's stnlc ssh client could not recieve Enter-key may be expect.exe's bug.
I try to fix it.

from expect.

vctls avatar vctls commented on June 11, 2024

Oh... I was wondering if pressing Enter in cmd was actually interpreted as something more than a carriage return. Could it be possible that the program expects some other signal?
I asked Bitvise if there was anything particular with their program. I'm waiting for their answer.

from expect.

hymkor avatar hymkor commented on June 11, 2024

My library go-console which is called in expect.exe, uses the API WriteConsoleInput to send key-events, but it did not set the parameter wRepeatCount in KEY_EVENT_RECORD. It should set it 1 (but it was 0).

It is possible that CMD.EXE ignored wRepeatCount and Bitvise's stnlc ssh client read and used it in ReadConsoleInput

from expect.

hymkor avatar hymkor commented on June 11, 2024

Would you test the new version (20191220) ? To send Enter-key, call send("\r") or sendln("")

from expect.

vctls avatar vctls commented on June 11, 2024

I'm getting an error with the new amd64 exe:

λ expect test.lua
test.lua at EOF:   syntax error

from expect.

hymkor avatar hymkor commented on June 11, 2024

Did you forget to close the double quotes?

from expect.

vctls avatar vctls commented on June 11, 2024

I did not change my scripts at all. I even tried again with the example script on the Readme.

from expect.

vctls avatar vctls commented on June 11, 2024

Oh, never mind, I got it. For some reason the program now wants my script to end with a new line.

from expect.

Related Issues (20)

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.