equivalent function for wherey( ) ??

what is the equivalent function for wherey( ) ?? That is to return the current column position?

current column position of what? the terminal? Check out the cuses library.

For console mode see:
http://www.termsys.demon.co.uk/vtansi.htm

Look for query cursor.