Heat oil in a frying pan at medium temperature, and add chopped onions, red chili, and curry leaves.
While waiting for the onions and curry leaves to sauté, slightly rinse and fine dice the tofu.
Add the diced tofu to the pan and let it cook for about 10 – 15 minutes until most of the water from the tofu has evaporated.
Next, add salt and pepper as well as turmeric powder and mix until well combined (by this time the rest of the water from the tofu should have evaporated).
Lastly, add the shredded coconut and mix well before removing it from heat and serving.