shell programming and C/C++ are not the same thing. maybe a moderator will move your post for you.
Anyway, in shell there is no way without writing code (the ncurses library provides calls to do this) without resorting to C/C++ code. Plus you have to be in graphics mode....
see for someone with the same probleem.:
http://www.unix.com/showthread.php?t=26162&highlight=cursor+position