I am writing an app which needs to run on Linux, Solaris and AIX. I am
using the tparm function call to create format termcap string and then
output it through tputs or putp.
The problem is that tparm support a termcap string + 9 fixed long int
args on Solaris (XSI standard) but on Linux it is termcap string +
variable number of args. My code looks like this:
tputs( tparm(cup, x, y) .... );
This tparm call fails to compile on Solaris. I need a way to address
this problem. I need to know how to make the correct call on Solaris. I
could use ifdefs if needed.
Please give your valuable suggestions.