What did Medieval priests wear?

they wore long black cloaks