Updating cursor.sh with additional functions.

This commit is contained in:
Daniel Baumann 2008-09-11 13:55:37 +02:00
parent 518fbfb68f
commit 254138f98d
1 changed files with 25 additions and 1 deletions

View File

@ -9,7 +9,7 @@
set -e
Cursor_position ()
Cursor_goto_position ()
{
__LINE="${1}"
__COLUMN="${2}"
@ -18,6 +18,18 @@ Cursor_position ()
printf "[${__LINE};${__COLUMN};H"
}
Cursor_save_position ()
{
#echo -e "\c"
printf ""
}
Cursor_restore_position ()
{
#echo -e "\c"
printf ""
}
Cursor_line_up ()
{
__LINES="${1}"
@ -49,3 +61,15 @@ Cursor_columns_backward ()
#echo -e "[${__COLUMNS}D\c"
printf "[${__COLUMNS}D"
}
Cursor_clear_screen ()
{
#echo -e "\c"
printf ""
}
Cursor_erase_EOL ()
{
#echo -e "\c"
printf ""
}