Prepare rice and onion
Finely chop the onion
Heat a pan, add cooking oil, and sauté the onion
Add the rice and stir-fry with the onion
Add ketchup and mix evenly while stir-frying
Beat eggs and scramble them in the pan
Place the scrambled eggs on top of the rice to finish