Hmm, you're right about "write", "talk" may be more useful in that regard.
I started looking at your script, which is a neat little bit of code, btw, and added a little to it:
Code:
HIST="";
while : ;
do read -p "enter..: " TXT ;
if [ "$TXT" = "hist" ]; then
echo -e "History: $HIST"
else
IV=`DISPLAY=:0 kdialog --inputbox "$TXT"` ;
HIST="$HIST\r\n$TXT\r\n$IV";
if [ "$IV" = "hist" ]; then
DISPLAY=:0 kdialog --msgbox "$HIST" ;
IV=`DISPLAY=:0 kdialog --inputbox "$TXT"` ;
fi
echo "return: $IV";
fi
done
This is a super ugly 10 minute job, but it just maintains a history itself, and whenever someone types "hist" it spits it out. Formatting is messed up in the kdialog history, maybe there's a better way to do that. Plus, the only time the local user can see their history is after you've sent your text. This also doesn't write anything to a file, but that should be as easy as a redirected echo.
Anyway, maybe with all this activity someone who knows more will come along & have some clues. Good luck, and if I think of anything else I'll post it