PLDWWW: glen
glen
glen at pld-linux.org
Sat Mar 3 22:36:14 CET 2007
Author: glen Date: Sat Mar 3 21:36:14 2007 GMT
Module: PLDWWW URL: http://www.pld-linux.org/glen?action=diff&rev2=26&rev1=25
---- Log message:
set screen encoding section
---- Page affected: glen
---- Diffs:
================================================================
The comment on the change is:
set screen encoding section
:encoding utf-8
}}}
+ == controlling screen window encoding from scripts ==
+
+ first you need to enable interpreting of commands, add to {{{~/.screenrc}}}:
+ {{{
+ # disable all screen commands but encoding
+ addacl :window: -rwx #?
+ # allow 'encoding' command
+ addacl :window: +x encoding
+ }}}
+
+ and to set encoding from script:
+ {{{
+ $ echo -ne '\033]83;encoding utf8\007'
+ }}}
+
+ for example my {{{~/.bash_profile}}} on [wiki:Machines/carme carme] contains:
+ {{{
+ # force screen utf8 encoding
+ if [[ "$TERM" = screen* ]]; then
+ echo -ne '\033]83;encoding utf8\007'
+ echo -ne "\033k$HOSTNAME\033\\"
+ fi
+ }}}
+
+
== PHP via FastCGI in Apache ==
{{{
More information about the pld-cvs-commit
mailing list