restoretextmode: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/restoretextmode - from package: svgalib

You may install the required package with command yum install {package}
Error in other languages:
restoretextmode: bevel nie gevind nie
restoretextmode: comandă negăsită
restoretextmode: comando não encontrado
restoretextmode: commande introuvable
restoretextmode: command not found
restoretextmode: käsku ei ole
restoretextmode: không tìm thấy lệnh
restoretextmode: komanda nerasta
restoretextmode: Kommando nicht gefunden.
restoretextmode: kommandot finns inte
restoretextmode: komut yok
restoretextmode: nie znaleziono polecenia
restoretextmode: níor aimsíodh an t-ordú
restoretextmode: no se encontró la orden
restoretextmode: no s'ha trobat l'ordre
restoretextmode: opdracht niet gevonden
restoretextmode: parancs nem található
restoretextmode: perintah tidak ditemukan
restoretextmode: príkaz nenájdený
restoretextmode: příkaz nenalezen
restoretextmode: команда не найдена
restoretextmode: командата не е открита
restoretextmode: 命令找不到
restoretextmode: コマンドが見つかりません