mirror of
https://github.com/reactos/reactosdbg.git
synced 2024-11-26 21:20:22 +00:00
Display the kdb prompt correctly
svn path=/trunk/tools/reactosdbg/; revision=1045
This commit is contained in:
parent
5b1b9f8ac5
commit
9b97695399
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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")]
|
||||
|
Loading…
Reference in New Issue
Block a user