Some hacking.

This commit is contained in:
2025-07-23 16:59:51 -04:00
parent 619150cfe7
commit 6f321dfdcf
3 changed files with 32 additions and 8 deletions

View File

@ -21,11 +21,10 @@ send_csi_command()
shift 1
echo -n ''
echo -n '['
echo -n "[${1}"
# First one no ';' prefix....
echo -n "${1}"
#echo -n "${1}"
shift 1
while [ -n "${1}" ]
@ -45,12 +44,12 @@ send_csi_command()
save_block()
{
send_csi_command '$v' $* 0 $* 1
send_csi_command '$v' $* 1 $(( 25 + $1 )) $(( 25 + $2 )) $(( 25 + $3 )) $(( 25 + $4 )) 1
}
restore_block()
{
send_csi_command '$v' $* 1 $* 0
send_csi_command '$v' $(( 25 + $1 )) $(( 25 + $2 )) $(( 25 + $3 )) $(( 25 + $4 )) 1 $* 1
}
##### END DECCRA Block ##############
@ -58,7 +57,7 @@ restore_block()
erase_block()
{
send_csi_command '*x' 2
send_csi_command '$r' ${*} 0
fill_block_attributes ${*} 0
send_csi_command '${' ${*}
}
@ -104,6 +103,10 @@ write_string()
_str=${_str:1}
_code=`printf '%d' "'$_ch"`
write_char_raw $_code $_row $_col
if [ -n "${*}" ]
then
fill_block_attributes ${_row} ${_col} ${_row} ${_col} ${*}
fi
_col=$(( ${_col} + 1 ))
done
}