I have written a small set of functions to get infos like cursor position, line informations etc.. Click here for documentation and source
--m3nt0r 17:31, 21 March 2006 (EST)