influxdata / influxdata/influxdata-docker

Arrow keys don't work in the influx command line client (arm32v7)

Open
#223 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
364
Forks
255
Avg merge
3h 18m
Merged PRs (30d)
7

Description

Tested on a Raspberry Pi () using the official image `arm32v7/influxdb:1.5.2`.
```
pi@moode-ssd:~ $ uname -a
Linux moode-ssd 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux
```

Running the influx client directly and pressing the up arrow key:
```
pi@moode-ssd:~ $ docker exec -it influxdb influx
Connected to http://localhost:8086 version 1.5.2
InfluxDB shell version: 1.5.2
> ^[[A^[[A^[[A
```

I think I had it working once by first running bash, changing the $TERM environment variable from "xterm" to "vt100" and running influx from there, but I couldn't reproduce the fix.

Update: after using `influx -database -execute 'select XXXX'` for a while (as a workaround, using the history/edit capabilities of bash), I switched to `influx` again to insert some data and now it works again. Though opening a second terminal and also using exec -> bash -> influx, it still doesn't work.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the problem with `docker exec -it influxdb influx` using `arm32v7/influxdb:1.5.2` on the reported Raspberry Pi environment. Compare arrow-key behavior under the direct command and the reported bash/TERM workarounds; done means the influx client accepts arrow-key history and editing reliably in the affected terminal setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, linux
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.