Captain was lounging next to me on the sofa. Baxter, who had been wandering around the living room, decided it was time to come back to sit with Mom, and approached the sofa.
When he stood on his hind legs to look at the kitty, the sudden appearance of his head right in front of Captain's face, like a little doggy Jack-in-the-box, did not go unnoticed. Captain applied the Paw of Doom two or three times in rapid succession -- no claws, just the bopping paw. The dog withdrew, then jumped up on the sofa at the far end of the couch, well away from bopping Paws of Doom.
Now Baxter had a dilemma. The cat was stretched out on the sofa, right between him and me, and he wanted to sit with me. What to do? A tentative "Rrrff!" in Captain's direction had no measurable effect, and the dog stood there, perplexed.
Finally, I coached him a little, but he got the idea. He leaped up to the sofa back, and in that way, walked the length of the sofa to me without coming near the cat or the Paw of Doom. I hoisted him down and bingo. He's now sitting with me. And the cat is Ignoring him. :)