capture text in clipboard as formatted in console