Reputation: 145
I would like to print either crossmark (✕) or right (check) symbol (✓) in TCL
either using echo or puts.
Is there anyway to do it?
Upvotes: 10
Views: 20275
Reputation: 40
In python, you can just do this. This should be okay with other programming languages:
print("✓")
print("✕")
print("\u274c")
print ("\u2713")
Which gives output:
Upvotes: 1
Reputation: 113896
Use their unicode escape sequences:
puts \u2713 ;# check mark
puts \u2717 ;# cross mark
There are several different cross marks you can use:
✗ = \u2717 BALLOT X
✘ = \u2718 HEAVY BALLOT X
❌ = \u274c CROSS MARK
× = \u00D7 MULTIPLICATION SIGN
╳ = \u2573 BOX DRAWINGS LIGHT DIAGONAL CROSS
☓ = \u2613 SALTIRE (St. Andrew's Cross)
✕ = \u2715 MULTIPLICATION X
✖ = \u2716 HEAVY MULTIPLICATION X
⨉ = \u2A09 N-ARY TIMES OPERATOR
There are also several alternatives for check marks:
✓ = \u2713 CHECK MARK
✔ = \u2714 HEAVY CHECK MARK
Upvotes: 26