move window blink/beep to a function
remove redundant cmd func args, use global prompt instead
alert chat window on file send/failure