Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^6: Printing the first letter of the Hebrew alphabet (U05D0) kills script?

by ikegami (Patriarch)
on Mar 08, 2011 at 22:27 UTC ( [id://892095]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Printing the first letter of the Hebrew alphabet (U05D0) kills script?
in thread Printing the first letter of the Hebrew alphabet (U05D0) kills script?

From "man xterm":

Modes for setting keyboard style:

8-Bit Controls (8-bit-control)

Enabled for VT220 emulation, this controls whether xterm will send 8-bit control sequences rather than using 7-bit (ASCII) controls, e.g., sending a byte in the range 128-159 rather than the escape character followed by a second byte. Xterm always interprets both 8-bit and 7-bit control sequences (see the document Xterm Control Sequences). This corresponds to the eightBitControl resource.

(Xterm Control Sequences is the document to which you linked earlier.)

But for some reason, the 8-bit control sequence I posted above isn't recognised by my xterm.

Ideally, it would recognise the sequences only between characters, but maybe it's detecting the sequences in the middle of characters too.

  • Comment on Re^6: Printing the first letter of the Hebrew alphabet (U05D0) kills script?

Replies are listed 'Best First'.
Re^7: Printing the first letter of the Hebrew alphabet (U05D0) kills script?
by ikegami (Patriarch) on Mar 08, 2011 at 23:02 UTC

    While a raw 0x9B doesn't work on my (non-xterm) console, the UTF-8 encoding of 0x9B works!

    # Doesn't work perl -we'print "\x9B31m", "foo", "\x9B0m", "bar", "\n";' # Works perl -CS -we'print "\x9B31m", "foo", "\x9B0m", "bar", "\n";'

    Neither work on in an xterm for me.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://892095]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2024-04-25 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found