Nano text-editor for shell

You should be able to install with

sudo apt update
sudo apt install nano  # for example

However, whatever you install will not be saved for the next session. Saving for the next session is something we have in our feature requests, but I can’t say when it will see the light of day.