boppu
boppu

Reputation: 145

how to print cross mark (✕) or check mark ✓ in TCL

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

Answers (2)

mr. Luvji
mr. Luvji

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:

Output

Upvotes: 1

slebetman
slebetman

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

Related Questions