Here's a naive bash implementation of this, just for fun:
while true; do
clear
tail -n 5 /tmp/notes
read line
echo "$line" >> /tmp/notes
done