bash - how to use alternate vt100 character sets -


according http://www.in-ulm.de/~mascheck/various/alternate_charset/ esc+)+0 make g0 set sequence table used or something. http://www.vt100.net/docs/vt100-ug/table3-9.html seems provide description of characters should appear when "table" in use. eg.

<?php echo "\x1b)0" . chr(0147)  

...should result in ± appearing on console understand it. no ± appearing. instead what's appearing g.

so it's not entirely clear me how use in cli environment make ± appear.

any ideas?

try ( instead of ):

<?php echo "\x1b(0" . chr(0147) ?> 

( sets charset used in default "g0" slot, whereas ) effects "g1" slot. shift-in/shift-out escape sequences switch between 2 slots.

in mean time, recommend forget legacy stuff , use proper stateless utf-8 , ± sign.


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -