'How do you make xterm work on Cygwin to use IRAF?

I need to use IRAF for astronomy labs, I’m attending remotely so I need to do it with my laptop. I installed Cygwin with the needed packages and IRAF but I don’t understand why when I try to open a terminal with xterm I just get a black window that crashes after a few seconds.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source