e o Esc ???? como faco??? Usando o tput

if [ "$key" = $(tput cr) ]
                then key="Enter"
        elif [ "$key" = $(tput kcuu1) ]
                then key="Up"
        elif [ "$key" = $(tput kcud1) ]
                then key="Down"
        elif [ "$key" = $(tput kcub1) ]
                then key="Left"
        elif [ "$key" = $(tput kcuf1) ]
                then key="Right"
        fi


[As partes desta mensagem que não continham texto foram removidas]

Responder a