void InitKeys ()
		{
			if (initKeys)
				return;

			CreateKeyMap ();
			rootmap = new ByteMatcher ();

			foreach (TermInfoStrings tis in UsedKeys)
				AddStringMapping (tis);
			
			rootmap.AddMapping (TermInfoStrings.KeyBackspace, new byte [] { control_characters [ControlCharacters.Erase] });
			rootmap.Sort ();
			initKeys = true;
		}
예제 #2
0
		void InitKeys ()
		{
			if (initKeys)
				return;

			CreateKeyMap ();
			rootmap = new ByteMatcher ();

			//
			// The keys that we know about and use
			//
			var UsedKeys = new [] {
				TermInfoStrings.KeyBackspace,
				TermInfoStrings.KeyClear,
				TermInfoStrings.KeyDown,
				TermInfoStrings.KeyF1,
				TermInfoStrings.KeyF10,
				TermInfoStrings.KeyF2,
				TermInfoStrings.KeyF3,
				TermInfoStrings.KeyF4,
				TermInfoStrings.KeyF5,
				TermInfoStrings.KeyF6,
				TermInfoStrings.KeyF7,
				TermInfoStrings.KeyF8,
				TermInfoStrings.KeyF9,
				TermInfoStrings.KeyHome,
				TermInfoStrings.KeyLeft,
				TermInfoStrings.KeyLl,
				TermInfoStrings.KeyNpage,
				TermInfoStrings.KeyPpage,
				TermInfoStrings.KeyRight,
				TermInfoStrings.KeySf,
				TermInfoStrings.KeySr,
				TermInfoStrings.KeyUp,
				TermInfoStrings.KeyA1,
				TermInfoStrings.KeyA3,
				TermInfoStrings.KeyB2,
				TermInfoStrings.KeyC1,
				TermInfoStrings.KeyC3,
				TermInfoStrings.KeyBtab,
				TermInfoStrings.KeyBeg,
				TermInfoStrings.KeyCopy,
				TermInfoStrings.KeyEnd,
				TermInfoStrings.KeyEnter,
				TermInfoStrings.KeyHelp,
				TermInfoStrings.KeyPrint,
				TermInfoStrings.KeyUndo,
				TermInfoStrings.KeySbeg,
				TermInfoStrings.KeyScopy,
				TermInfoStrings.KeySdc,
				TermInfoStrings.KeyShelp,
				TermInfoStrings.KeyShome,
				TermInfoStrings.KeySleft,
				TermInfoStrings.KeySprint,
				TermInfoStrings.KeySright,
				TermInfoStrings.KeySundo,
				TermInfoStrings.KeyF11,
				TermInfoStrings.KeyF12,
				TermInfoStrings.KeyF13,
				TermInfoStrings.KeyF14,
				TermInfoStrings.KeyF15,
				TermInfoStrings.KeyF16,
				TermInfoStrings.KeyF17,
				TermInfoStrings.KeyF18,
				TermInfoStrings.KeyF19,
				TermInfoStrings.KeyF20,
				TermInfoStrings.KeyF21,
				TermInfoStrings.KeyF22,
				TermInfoStrings.KeyF23,
				TermInfoStrings.KeyF24,

				// These were missing
				TermInfoStrings.KeyDc,
				TermInfoStrings.KeyIc
			};
			
			foreach (TermInfoStrings tis in UsedKeys)
				AddStringMapping (tis);
			
			rootmap.AddMapping (TermInfoStrings.KeyBackspace, new byte [] { control_characters [ControlCharacters.Erase] });
			rootmap.Sort ();
			initKeys = true;
		}
예제 #3
0
        void InitKeys()
        {
            if (initKeys)
            {
                return;
            }

            CreateKeyMap();
            rootmap = new ByteMatcher();
            AddStringMapping(TermInfoStrings.KeyBackspace);
            AddStringMapping(TermInfoStrings.KeyClear);
            AddStringMapping(TermInfoStrings.KeyDown);
            AddStringMapping(TermInfoStrings.KeyF1);
            AddStringMapping(TermInfoStrings.KeyF10);
            AddStringMapping(TermInfoStrings.KeyF2);
            AddStringMapping(TermInfoStrings.KeyF3);
            AddStringMapping(TermInfoStrings.KeyF4);
            AddStringMapping(TermInfoStrings.KeyF5);
            AddStringMapping(TermInfoStrings.KeyF6);
            AddStringMapping(TermInfoStrings.KeyF7);
            AddStringMapping(TermInfoStrings.KeyF8);
            AddStringMapping(TermInfoStrings.KeyF9);
            AddStringMapping(TermInfoStrings.KeyHome);
            AddStringMapping(TermInfoStrings.KeyLeft);
            AddStringMapping(TermInfoStrings.KeyLl);
            AddStringMapping(TermInfoStrings.KeyNpage);
            AddStringMapping(TermInfoStrings.KeyPpage);
            AddStringMapping(TermInfoStrings.KeyRight);
            AddStringMapping(TermInfoStrings.KeySf);
            AddStringMapping(TermInfoStrings.KeySr);
            AddStringMapping(TermInfoStrings.KeyUp);
            AddStringMapping(TermInfoStrings.KeyA1);
            AddStringMapping(TermInfoStrings.KeyA3);
            AddStringMapping(TermInfoStrings.KeyB2);
            AddStringMapping(TermInfoStrings.KeyC1);
            AddStringMapping(TermInfoStrings.KeyC3);
            AddStringMapping(TermInfoStrings.KeyBtab);
            AddStringMapping(TermInfoStrings.KeyBeg);
            AddStringMapping(TermInfoStrings.KeyCopy);
            AddStringMapping(TermInfoStrings.KeyEnd);
            AddStringMapping(TermInfoStrings.KeyEnter);
            AddStringMapping(TermInfoStrings.KeyHelp);
            AddStringMapping(TermInfoStrings.KeyPrint);
            AddStringMapping(TermInfoStrings.KeyUndo);
            AddStringMapping(TermInfoStrings.KeySbeg);
            AddStringMapping(TermInfoStrings.KeyScopy);
            AddStringMapping(TermInfoStrings.KeySdc);
            AddStringMapping(TermInfoStrings.KeyShelp);
            AddStringMapping(TermInfoStrings.KeyShome);
            AddStringMapping(TermInfoStrings.KeySleft);
            AddStringMapping(TermInfoStrings.KeySprint);
            AddStringMapping(TermInfoStrings.KeySright);
            AddStringMapping(TermInfoStrings.KeySundo);
            AddStringMapping(TermInfoStrings.KeyF11);
            AddStringMapping(TermInfoStrings.KeyF12);
            AddStringMapping(TermInfoStrings.KeyF13);
            AddStringMapping(TermInfoStrings.KeyF14);
            AddStringMapping(TermInfoStrings.KeyF15);
            AddStringMapping(TermInfoStrings.KeyF16);
            AddStringMapping(TermInfoStrings.KeyF17);
            AddStringMapping(TermInfoStrings.KeyF18);
            AddStringMapping(TermInfoStrings.KeyF19);
            AddStringMapping(TermInfoStrings.KeyF20);
            AddStringMapping(TermInfoStrings.KeyF21);
            AddStringMapping(TermInfoStrings.KeyF22);
            AddStringMapping(TermInfoStrings.KeyF23);
            AddStringMapping(TermInfoStrings.KeyF24);
            rootmap.Sort();
            initKeys = true;
        }