Open elofu17 opened 8 months ago
SHOW TA?[C?[CG VALUES
snap! Precisely this same issue. InfluxQL Shell 2.7.5 Connected to InfluxDB OSS 1.8.10
Some findings on my Mac FWIW:
Amazing project, thanks! Hunted in docs and source, could not find how to invoke with a defined database
E
Summary: Rapid key-repeat (holding down right or left arrow key) to move the cursor in the command line introduce garbage characters.
Info + how to reproduce: I run the latest version of influx CLI on a Debian 11 machine (package: influxdb2-cli 2.7.3-1).
I run the v1 shell and connect to my InfluxDB v2 (also latest version, on the same Debian 11 machine).
I now I type a long command and then move the cursor rapidly back and forth (right and left). Suddenly garbage characters (ANSI escape codes?) are introduced into my command line. Ex: I type "SHOW TAG VALUES" and hold down right arrow 4 seconds, left arrow 4 seconds, repeat. I test again. I test with just the word "fooooo".
It looks like parts of visible and invisible ANSI sequences are left in the command line, messing things up.