Display a menu on bottom right of screen

Hi,
I have a menu of around 10 lines with options.
I want to display it in bottom right corner of screen for better display.

I can do it with clear screen. But I don't want to use it, because it will clear the existing text. After one choice from menu is executed, the menu should just place itself on bottom right corner of screen without clearing the text above.

I have no idea how to do it in korn shell.
Does korn allow to print text on particular pixels/locations on screen as it is possible with C?
Can anyone give me any idea?

i dont know about exact pixel location and stuff as you can do in C "graphics"
but in here you can unix. with echo command something like this:-

echo "                                                                                                   MENU
                                                                                                            1) no. 1"

this will not solve your purpose exactly. but its a way you can try if you need it right now.

#!/usr/local/bin/ksh93

# option 1: ls
# option 2: ls -l
# option 10: exit
# options 3-10: undefined

function menu {

  for ((i=1;i<=10;i++)); do printf "%80s\n" "$i. option $i "; done

  printf "%77s" " ->  "

  read opt

   case $opt in
	"1") ls; menu;;
	"2") ls -l; menu;;
	"10") exit;;
	*) echo "Invalid or undefined option!"; menu;;
   esac

}


#printf "\n\n\n\n\n\n\n\n\n\n\n\n\n"
menu

Have look at tput:
Colours and Cursor Movement With tput