FORREST COPLEY schrieb am 29.12.2011 um 10:48 (-0700): > Is it possible to write a perl script to print a completely custom > character on a console text terminal? > Say a D rotated 90 degrees or something. > or an A with the innards filled in.
Here's how to print alpha to omega: perl -C2 -lwe 'print join q(, ), map chr, 0x391 .. 0x3a9' Α, Β, Γ, Δ, Ε, Ζ, Η, Θ, Ι, Κ, Λ, Μ, Ν, Ξ, Ο, Π, Ρ, , Σ, Τ, Υ, Φ, Χ, Ψ, Ω If you know the Unicode codepoints you can certainly print the characters. For Perl, it's essentially numbers. Whether your particular character comes out nicely or not depends on whether the font you're using has the glyph in question. Next time you might want to spend two seconds or even ten thinking about a suitable subject line … -- Michael Ludwig