Skip to content

Liner seems not work well in docker #138

Open

Description

@jievince

In docker, all keyboard shortcuts will not work.

Activity

  1. peterh commented on Oct 16, 2020

    @peterh
    Owner

    There are no details here, so I can only make wild guesses.

    I suspect you are running docker without a TTY, so liner goes into "dumb terminal" mode. Try docker -t.

    If that doesn't resolve the issue, pretend I've never heard of docker and provide complete instructions to reproduce the issue.

  2. jievince commented on Oct 16, 2020

    @jievince
    Author

    There are no details here, so I can only make wild guesses.

    I suspect you are running docker without a TTY, so liner goes into "dumb terminal" mode. Try docker -t.

    If that doesn't resolve the issue, pretend I've never heard of docker and provide complete instructions to reproduce the issue.

    Hi peterh, Sorry for not describing my question clearly.
    I use -t to start docker,
    sudo docker run --rm -ti --network=host vesoft/nebula-console:v2-preview-nightly -u user -p password --addr=127.0.0.1 --port=36987
    image
    In this photo, I typed up/down/left/right arrow key, and then didn't work and just printed some strange characters like ^[[A^[[A^[[B^[[D^[[C^A^E^E.
    Auto completer via Tab also doesn't work, and the terminal just print's a real tab(4 spaces). All other keyboard shortcuts don't' work.

  3. tiborvass commented on Oct 19, 2020

    @tiborvass

    @jievince Are you able to reproduce this with the example demo from https://github.com/peterh/liner#getting-started in an alpine or debian container?

  4. peterh commented on Nov 12, 2020

    @peterh
    Owner

    Fail to connect server, dial tcp 127.0.0.1:36987: connect: connection refused

    No, seriously. I know precisely nothing about docker. I don't even know what went wrong with your command line.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions