I know this is cheesy but it would probably work for most cli's... without requiring a proprietary system call with the tradeoff that you assume the height of the term... 50 is probably pretty safe for most text-based applications. I was just trying to think of a different way to accomplish the desired result. Hope it helps. TTFN & Shalom.