mirror of
https://github.com/reactos/reactosdbg.git
synced 2025-02-17 01:49:16 +00:00
- Remove built in commands from the input control like other commands after execution
- Append control character to commands in KDBG, not in the input control - Re-add previously removed code to allow typing commands while the log is highlighted; modify to allow input all the time svn path=/trunk/tools/reactosdbg/; revision=1100
This commit is contained in:
parent
a35c2ddbf8
commit
11d641c1f5
@ -427,7 +427,7 @@ namespace KDBGProtocol
|
||||
/* Forward user input from RawTraffic if connected to kdbg */
|
||||
if (!mRunning)
|
||||
{
|
||||
mConnection.Write(wr);
|
||||
mConnection.Write(wr + "\r");
|
||||
}
|
||||
}
|
||||
|
||||
|
1
RosDBG/Dockable Objects/RawTraffic.Designer.cs
generated
1
RosDBG/Dockable Objects/RawTraffic.Designer.cs
generated
@ -62,6 +62,7 @@
|
||||
this.RawTrafficText.Size = new System.Drawing.Size(425, 268);
|
||||
this.RawTrafficText.TabIndex = 0;
|
||||
this.RawTrafficText.WordWrap = false;
|
||||
this.RawTrafficText.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.RawTrafficText_KeyPress);
|
||||
this.RawTrafficText.MouseUp += new System.Windows.Forms.MouseEventHandler(this.RawTrafficText_MouseUp);
|
||||
//
|
||||
// menuStrip1
|
||||
|
@ -52,17 +52,17 @@ namespace RosDBG
|
||||
|
||||
private void ParseBuiltinCommand(string command)
|
||||
{
|
||||
AddCommandToList(command);
|
||||
if (command == ".cls")
|
||||
{
|
||||
AddCommandToList(command);
|
||||
RawTrafficText.Text = string.Empty;
|
||||
}
|
||||
RawTrafficTextBox.Text = string.Empty;
|
||||
}
|
||||
|
||||
private void ParseGdbCommand(string command)
|
||||
{
|
||||
AddCommandToList(command);
|
||||
RawTrafficTextBox.Text += '\r'; //FIXME: remove this
|
||||
SendCommandToDebugger();
|
||||
RawTrafficTextBox.Text = string.Empty;
|
||||
}
|
||||
@ -141,7 +141,7 @@ namespace RosDBG
|
||||
{
|
||||
String cmd = RawTrafficTextBox.Text;
|
||||
RawTrafficText.AppendText(kdbPrompt);
|
||||
if (cmd == "cont\r")
|
||||
if (cmd == "cont")
|
||||
{
|
||||
mConnection.Running = true;
|
||||
}
|
||||
@ -248,6 +248,26 @@ namespace RosDBG
|
||||
|
||||
}
|
||||
|
||||
private void RawTrafficText_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
switch ((int)e.KeyChar)
|
||||
{
|
||||
case 8: /* Backspace */
|
||||
if (RawTrafficTextBox.Text.Length > 0)
|
||||
RawTrafficTextBox.Text = RawTrafficTextBox.Text.Substring(0, RawTrafficTextBox.Text.Length - 1);
|
||||
break;
|
||||
case 13: /* Return */
|
||||
if (RawTrafficTextBox.Text.Length > 0)
|
||||
{
|
||||
ParseCommand(RawTrafficTextBox.Text);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
RawTrafficTextBox.Text += e.KeyChar;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void RawTrafficText_MouseUp(object sender, MouseEventArgs e)
|
||||
{
|
||||
copyToolStripMenuItem.Enabled = (RawTrafficText.SelectionLength > 0);
|
||||
|
@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
|
||||
// will be increased as well. MSI installers must not be generated with the same Build Number
|
||||
// otherwise they won't upgrade the old installation!
|
||||
|
||||
[assembly: AssemblyVersion("1.0.2.80")]
|
||||
[assembly: AssemblyFileVersion("1.0.2.80")]
|
||||
[assembly: AssemblyVersion("1.0.2.81")]
|
||||
[assembly: AssemblyFileVersion("1.0.2.81")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user