镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

enter key not working on Termux (Android) #77

Closed

Description

@pulketo

I added this line on Readline.php and enter key worked well...

diff find vendor/ -iname Readline.php Readline.php
47a48

        "\015" => 'onKeyEnter',

Activity

  1. clue commented on Aug 30, 2018

    @clue
    Owner

    @pulketo Thanks for reporting!

    This sounds very similar to #66 which was believed to be a Mac issue only and should have been fixed with #73 recently. This has not been tagged yet, so maybe you can try checking one of the examples from the master branch? If this doesn't work, maybe you can try the instructions in #66 (comment)?

  2. added
    bugSomething isn't working
    on Aug 31, 2018
  3. clue commented on Aug 31, 2018

    @clue
    Owner

    Thanks for reporting, I've been able to reproduce this with Termux and can confirm there's indeed an issue in this library on some platforms (as previously discussed in #66). I've started working on this and will file a PR that addresses this ASAP 👍

  4. added this to the v2.2.0 milestone on Aug 31, 2018
  5. changed the title [-]enter key not working on termux (android[/-] [+]enter key not working on Termux (Android)[/+] on Aug 31, 2018
  6. pulketo commented on Sep 1, 2018

    @pulketo
    Author

    This is due that the enter key on android is mapped as "return key", so, you just have to add this special key ;)
    vendor/clue/stdio-react/src/Readline.php
    line 45
    $that = $this;
    $codes = array(
    "\n" => 'onKeyEnter',
    // added return key/android
    "\015" => 'onKeyEnter',

  7. clue commented on Sep 1, 2018

    @clue
    Owner

    @pulketo Thank you, this should now be fixed via #79 which will be released soon-ish :shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions