, he ran out on the porch in his tighty whities threw his arms up in the air and started stomping his feet and shrieking "get outta here, bear!" over and over...
The bear, still standing on its back feet, took one look at this display, turned, farted rather loudly and ran off into the woods.
@DobieLover, you do have a way with words - that created a hysterical visual/audio for me. also bringing to mind the 'unclothed' encounter mentioned below.
To the OP - many years ago there was a frequent bear sighting in the area. One night my dogs were alarm barking so I hurried outside, flashlight unlit but in hand. Right off the back porch I collided with something big and dark that snorted. I swear my heart stopped. Somehow I got back on the porch and turned on the light to see the neighbor's pony standing there.