I’m not sure if this was reported earlier, but I’ve been having a few issues when using the CLI console to make changes. I’m using macOS (currently 10.14.6 Beta) to log in to a FreeBSD server (11.2-RELEASE-p4) where Cells is installed.
Backspace does not seem to work (I’ve tried everything, from ^H to Ctrl-Backspace and so forth) except when pressing it for the first time in an unedited line — which will promptly clear the whole line. Afterwards, backspace is ‘dead’ until Enter is pressed (to avoid mistakes, I have been writing whatever is needed on another console and doing copy & paste…).
And lines are duplicated a lot of times, something which happens with very long lines — which will be the case for long pathnames (say, for the certificates). With each additional character, the line gets duplicated, etc. It’s annoying!
Looking at the code, it seems that Cells is using a forked version of promptui to deal with the CLI input and subsequent parsing. Sadly it’s not a very recent version, but searching for the symptoms I’ve got, I managed to find an answer — more specifically, a proposed hack to make the terminal behave a bit better.
These patches require a bit more work to implement since Pydio’s own forked
promptui lags behind the ‘original’. There is no easy way to do everything manually, it’s really a question of compiling, see what functions are missing, get them from the original, patch Pydio’s code, build & install again, rinse & repeat until no more errors are found.
Eventually, I got rid of the duplicate lines issue (or at least it seems like that to me), but not the backspace issue, so I suspect it’s a terminal thing (i.e. something with my terminal configuration), either locally or remotely (I’ve also used an
xterm window from XQuartz, but it’s even worse, IMHO).
In either case, I would recommend updating
promptui to a more recent version, and at least apply the above-mentioned hack/patch to remove the duplicated lines…