Slam-door trains

Train doors used to have a simple mechanical system. You went to the door, pushed down the window, felt outside for the handle, and opened the door. You could do this at any time on the old slam-door trains. EVEN WHEN THE TRAIN WAS MOVING.