Newsgroups: comp.unix.shell > Does anyone know how to freeze the top part of a > vt100 type login session?
If your terminal supports scrolling regions and your terminfo database is functional, this should do:
{
read -r line; tput clear; echo "$line"
lines=$(tput lines)
tput sc; tput csr 1 $[lines-1]; tput rc
cat
tput sc; tput csr 0 $[lines-1]; tput rc
}See: man terminfo
Martin
documented on: 2000.06.14 Wed 13:59:19