Code:
on *:input:@moo:{
  echo -s Pre: $target
  window -c @moo
  echo -s Post: $target
}


Spelling mistakes, grammatical errors, and stupid comments are intentional.