Finely chop the onion.
Beat the eggs in a bowl and add a pinch of salt.
Heat cooking oil in a pan and sauté the chopped onion.
Add the rice and stir-fry together with the onion.
Add ketchup and mix thoroughly while stir-frying.
Place the rice in a serving bowl.
Pour the beaten eggs into the pan and cook them scrambled.
Place the scrambled eggs on top of the rice.