Man in court on terrorist charges