My PHP codebase is using a Dockerfile from this project GitHub - hyperf/hyperf-skeleton: 🛠 A skeleton of Hyperf framework that provided by official team
Seems to be using Alpine linux
Deploying to fly.io works fine
But trying to log in remotely over console flyctl ssh console seems to be missing basic terminal features like up arrow, back arrow, forward-delete, Home/End keys etc. instead these keys seem to spam control characters into the command line…
Switching from sh to bash doesn’t help, still these basic terminal functionalities are missing…
Is there something to adjust in the environment / TERM or something? Is the image missing some basic system packages? Is using it from CMD/PowerShell on windows the problem? How can I fix this please
The only bit I’m not entirely certain about is my use of the init func to enable this functionality under Windows. Essentially init is what I want, but I’m guessing this enables VT support everywhere, which may or may not be desirable. If any Golang pros know of a better way then I’m open to feedback–Rust developer learning Go and still getting to grips with it.
But I did verify that without this fix, SSHing into an app and running commands under /bin/bash doesn’t handle command history and such. With it, it does.
Thanks for that tip–I’ve not done a lot of mucking around with the Windows console before.
I’ve confirmed that the PR doesn’t seem to exhibit this behavior. Starting an interactive SSH session at least handles up-arrow through command history, and go run ./main.go help > log does indeed redirect help output to the file.
Please let me know if there are any other scenarios I should check. Hoping to get this one merged next week and released soon after.’