Avatar of obrienslalom
obrienslalom
Flag for United States of America asked on

Automating a ncurses/curses application

I'm looking at automating an installer that uses a curses/ncurses interface.  Any suggestions?  I'd be ok with just sending input to the screen, the only thing I worry about is where defaults are loaded, there is a toggle box.  How will I know whether to toggle or not?  Any advise would be appreciated.
Shell ScriptingInstallationScripting Languages

Avatar of undefined
Last Comment
obrienslalom

8/22/2022 - Mon
Julian Parker

you can use dialog for displaying messages and prompting for input.

obrienslalom

ASKER
I understand what ncurses is, I am looking for a way of automating it with a script.
Julian Parker

what exactly do you want to do?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
obrienslalom

ASKER
Say i have an installer that I know I want installed a certain way every time.  I just want to kick off a script that will control the installer.  I'd imagine I can just send keystrokes via tty or something.  I'm concerned that a scenerio might appear where there will be a toggle checkbox or preloaded fields in the console.  When that happens, I would need a way to branch my automation based on these values.  I believe expect will do this in some fashion.  I just wanted to check if anyone happened to stumble across something better, or just something different.
ASKER CERTIFIED SOLUTION
Julian Parker

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
obrienslalom

ASKER
Pretty much what I expected, but I do appreciate your attention and input.  Short of involved APIs or toolkits there may not be much else out there.