Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/installer/setini.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9770 - (hide annotations) (download) (as text)
Tue Feb 22 14:11:15 2022 UTC (2 years, 1 month ago) by zmatsuo
File MIME type: text/x-perl
File size: 619 byte(s)
スナップショット用設定を日本語環境向けに調整

- 絵文字設定、文字幅設定
1 zmatsuo 9769 #!/usr/bin/perl
2     # 日本語環境用に teraterm.ini を設定する
3    
4     use strict;
5     use warnings;
6     use utf8;
7    
8     my $in_file = $ARGV[0];
9    
10     my $vtfont = 'MS ゴシック,0,-16,128';
11     #my $vtfont = 'Terminal,0,-19,128';
12    
13     binmode STDOUT, ":crlf:encoding(cp932)";
14     open(INI, '<:crlf:encoding(cp932)', $in_file);
15     while(<INI>){
16     s/^(Language\s*=).*$/$1Japanese/;
17     s/^(VTFont\s*=).*$/$1$vtfont/;
18     s/^(TEKFont\s*=).*$/$1Terminal,0,8,128/;
19     s/^(TCPPort\s*=).*$/${1}22/;
20 zmatsuo 9770 s/^(UnicodeAmbiguousWidth=).*$/${1}2/;
21     s/^(UnicodeEmojiOverride=).*$/$1on/;
22     s/^(UnicodeEmojiWidth=).*$/${1}2/;
23 zmatsuo 9769 print;
24     }
25     close INI;

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26