예제 #1
0
        /// <summary>
        /// <ja>標準的な値で初期化します。</ja>
        /// <en>Initializes with default values.</en>
        /// </summary>
        public LocalShellTerminalParam()
        {
            _terminalType = TerminalType.VT100;
            _transmitnl   = NewLine.CR;
            IPoderosaCulture culture = MacroPlugin.Instance.PoderosaWorld.Culture;

            _encoding = culture.IsJapaneseOS ? EncodingType.SHIFT_JIS :
                        culture.IsSimplifiedChineseOS ? EncodingType.GB2312 :
                        culture.IsTraditionalChineseOS ? EncodingType.BIG5 :
                        culture.IsKoreanOS ? EncodingType.EUC_KR : EncodingType.ISO8859_1;
        }
예제 #2
0
        private Language GetNativeLanguage()
        {
            IPoderosaCulture c = WindowManagerPlugin.Instance.PoderosaWorld.Culture;

            if (c.InitialCulture.Name.StartsWith("ja"))
            {
                return(Language.Japanese);
            }
            else if (c.InitialCulture.Name.StartsWith("zh"))
            {
                return(Language.Chinese);
            }
            else
            {
                return(Language.English);
            }
        }
예제 #3
0
        public TerminalSettings()
        {
            IPoderosaCulture culture = TerminalEmulatorPlugin.Instance.PoderosaWorld.Culture;

            if (culture.IsJapaneseOS || culture.IsSimplifiedChineseOS || culture.IsTraditionalChineseOS || culture.IsKoreanOS)
            {
                _encoding = EncodingType.UTF8;
            }
            else
            {
                _encoding = EncodingType.ISO8859_1;
            }

            _terminalType    = TerminalType.XTerm;
            _localecho       = false;
            _lineFeedRule    = LineFeedRule.Normal;
            _transmitnl      = NewLine.CR;
            _renderProfile   = null;
            _shellSchemeName = ShellSchemeCollection.DEFAULT_SCHEME_NAME;
            _enabledCharTriggerIntelliSense = false;
            _multiLogSettings = new MultiLogSettings();

            _listeners = new ListenerList <ITerminalSettingsChangeListener>();
        }
        private Language GetNativeLanguage()
        {
            IPoderosaCulture c = WindowManagerPlugin.Instance.PoderosaWorld.Culture;

            return(c.InitialCulture.Name.StartsWith("ja")? Language.Japanese : Language.English);
        }
예제 #5
0
 public PoderosaWorldForTest()
 {
     this.Culture = new PoderosaCultureForTest();
 }