Place a medium-sized heavy-bottomed pot on medium heat and add oil.
Add sliced onions to this and sauté for 15-20 minutes till the white of the onion is no longer visible and the onions have turned a dark golden-brown colour. Be careful not to let the onions turn black-if they begin to do so, just remove the pot from the burner and lower the flame.
Start boiling your water in a separate vessel at this point.
Add peppercorns, cloves, black cardamom, cinnamon stick, and cumin to onions. Drain rice and add to the pot.
Turn the heat to high and pour in boiling water. As soon as it starts to bubble, cover with a tea cloth and lid and turn the heat to low.
Allow rice to cook for 15 minutes, do not open the lid before the total time has elapsed.
Remove rice from the burner and allow it to rest for another 15 minutes without opening the lid.
Serve with a meat-based curry or with borani kachalu/kudu.