Display the kdb prompt correctly

svn path=/trunk/tools/reactosdbg/; revision=1045
This commit is contained in:
Ged Murphy 2009-06-04 13:38:29 +00:00
parent 5b1b9f8ac5
commit 9b97695399
2 changed files with 14 additions and 5 deletions

View File

@ -26,6 +26,7 @@ namespace RosDBG
PrintDocument printDoc;
DebugConnection mConnection;
List<string> textToAdd = new List<string>();
string kdbPrompt = "\r\nkdb:> ";
@ -54,9 +55,17 @@ namespace RosDBG
lock (textToAdd)
{
foreach (string s in textToAdd)
toAdd.Append(s);
{
if (s.EndsWith(kdbPrompt))
{
toAdd.Append(s.Remove(s.Length - kdbPrompt.Length));
}
else
{
toAdd.Append(s);
}
}
textToAdd.Clear();
//TODO: skip backspace signs
}
RawTrafficText.AppendText(toAdd.ToString());
}
@ -93,7 +102,7 @@ namespace RosDBG
{
if (RawTrafficTextBox.Text.Length > 0)
{
//AddCommandToList(RawTrafficTextBox.Text);
RawTrafficText.AppendText(kdbPrompt);
mConnection.Debugger.Write(RawTrafficTextBox.Text);
}
}

View File

@ -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.59")]
[assembly: AssemblyFileVersion("1.0.2.59")]
[assembly: AssemblyVersion("1.0.2.60")]
[assembly: AssemblyFileVersion("1.0.2.60")]