The handkerchief code was common among homosexual males seeking casual sex and for BDSM during the 1970s. The color of the bandana and which pocket it's displayed in indicates what type of sex they're seeking.