Exemple #1
0
        public void onCharacterInDisplayBuffer(AppleDisplay sender, CharacterInDisplayBufferEventArgs e)
        {
            byte key = (byte)e.Character;

            if (e.Character == 0x0d)
            {
                _syncContext.Post(o => CarriageReturn(), null);
                return;
            }

            if ((key & 0x60) == 0x60)
            {
                key = (byte)(key & ~0x60);
            }
            if ((key & 0x40) == 0x40)
            {
                key = (byte)(key & ~0x40);
            }

            _syncContext.Post(o => PutCharacter(Characters.CharacterList[key]), null);
        }
Exemple #2
0
        public void onCharacterInDisplayBuffer(AppleDisplay sender, CharacterInDisplayBufferEventArgs e)
        {
            byte key = (byte)e.Character;

            if (e.Character == 0x0d)
            {
                _syncContext.Post(o => CarriageReturn(), null);
                return;
            }

            if ((key & 0x60) == 0x60)
            {
                key = (byte)(key & ~0x60);
            }
            if((key & 0x40) == 0x40)
            {
                key = (byte)(key & ~0x40);
            }

            _syncContext.Post(o => PutCharacter(Characters.CharacterList[key]), null);
        }