I am writing a command-line application using NCurses and I have a Raspberry Pi with a Kano "Make Your Own Tablet" kit which is essentially a touchscreen with some accessories attached. I would really love to be able to start up this Raspi in headless (or "command-line only") mode and have it boot up and instantly spin up this NCurses-based application on that one screen that is attached.
I think this is effectively "Kiosk Mode", and there are a lot of "Kiosk Mode" questions on here. However, when I looked for how to do this, I found that all of them are for GUI applications, I am specifically trying to do this with a CLI application and I am wondering if anyone knows how to do that. For all intents and purposes, this problem can be boiled down to "How to run htop on an attached screen on boot". I would still want to be able to log in with SSH without running the CLI application.
Thank you in advance!