Prepare rice, eggs, and onion.
Finely chop the onion.
Add oil to a pan and sauté the onion.
When the onion turns translucent, add the rice and stir-fry together.
Add ketchup to the rice and mix well while stir-frying.
In another pan, add oil and scramble the eggs.
Place the scrambled eggs on top of the rice.