Combine flour, salt, peppers, sugar, egg, and buttermilk until well-combined.
Preheat deep fryer, deep skillet or heavy-bottomed large stockpot with great to 360 degrees.
Prepare onions and place into a deep casserole dish or bowl. Pour buttermilk over and allow to soak in the refrigerator from 4 hours to overnight for best results.