Link to home
Create AccountLog in
Avatar of obrienslalom
obrienslalomFlag 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.
Avatar of Julian Parker
Julian Parker
Flag of United Kingdom of Great Britain and Northern Ireland image

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

Avatar of obrienslalom

ASKER

I understand what ncurses is, I am looking for a way of automating it with a script.
what exactly do you want to do?
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
Avatar of Julian Parker
Julian Parker
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
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.