aboutsummaryrefslogtreecommitdiff
path: root/Project Ports/Programs/Terminal.cs
blob: 55cf8edf8fd212724288b7ada2dcd04d29ef9aec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using PortEngine;

namespace Project_Ports
{
    public partial class Terminal : UserControl
    {
       
        public Terminal()
        {
            InitializeComponent();
        }    

        private void Terminal_Load(object sender, EventArgs e)
        {
            WindowManager wm = new WindowManager();
        }

        private void txtInput_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                TerminalAPI.RunCommand(txtInput, txtConsole);
                e.SuppressKeyPress = true;
                txtInput.Clear();
            }
        }
    }
}