Carpet for Cat Lovers?

My adorable kitty, and the not so cute claws that came attached to him, have done a number on our carpet. I thinking of recarpeting the living room, but this time around I’d like to choose something a bit more durable. Any carpet experts here who know the type of carpet that would be most resistant scratching?
Thanks.

Ceramic tile. Resists staining from hairballs, too.

Berber maybe? That stuff is like sandpaper on your knees, and it melts really neat too. I don’t think it could get damaged by much, but the cat might get stuck in it. Not pleasant.