lib/poset: split `show_dot` in two methods

And escape the strings!