diff options
author | Daniel Baumann <daniel@debian.org> | 2008-09-11 13:55:37 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:42 +0100 |
commit | 254138f98d72f627bc0aa4eab80b1cfd5a40d6b6 (patch) | |
tree | 796564ca829f2b9c26beb2415d3c36c826e7a931 /functions/cursor.sh | |
parent | 518fbfb68f9033d17f1dd06abf989f8bcc252990 (diff) | |
download | vyos-live-build-254138f98d72f627bc0aa4eab80b1cfd5a40d6b6.tar.gz vyos-live-build-254138f98d72f627bc0aa4eab80b1cfd5a40d6b6.zip |
Updating cursor.sh with additional functions.
Diffstat (limited to 'functions/cursor.sh')
-rwxr-xr-x | functions/cursor.sh | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/functions/cursor.sh b/functions/cursor.sh index d2ea8eb07..44c2a6713 100755 --- a/functions/cursor.sh +++ b/functions/cursor.sh @@ -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 "[s\c" + printf "[s" +} + +Cursor_restore_position () +{ + #echo -e "[u\c" + printf "[u" +} + 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 "[2J\c" + printf "[2J" +} + +Cursor_erase_EOL () +{ + #echo -e "[K\c" + printf "[K" +} |