Our OS is Unixware 7 and we work in a high-level application generating development environment. There is a problem with it that I am trying to work around. I am considering calling a program with a system call that will simply return the line number that the cursor is on. I have found the curses.h way to determine the line, but it apparently won't work as necessary because it creates a new window with initscr(); so it will always return 0.
Basically what I need to know if there is any way to retrieve the current line number of the cursor as it exists before running the program (and without modifying the screen contents).
If you can assist in any way I'd appreciate it. Thanks.