SQR has some internal variables, using those we can find the line or column numbers of the cursor.
$current-column is to find out the current column where the cursor is.
#current-line is to find out the Current row where the cursor is.
-------------------------------------------------------------------------------------------------
we all use wrap to divide text into 2 or 3..n lines. when it happens usually the cursor won't come back to the top line where the actual string started printing. To make it happen, Use keep-top.
print $long_descr () wrap 20 5 keep-top
-------------------------------------------------------------------------------------------------
No comments:
Post a Comment