示例#1
0
 public void WriteNativeError(string message)
 {
     // Write is Dispatcher checked
     PoshConsole.Write(ConsoleBrushes.NativeErrorForeground, ConsoleBrushes.NativeErrorBackground, message, PoshConsole.Current);
     PoshConsole.Dispatcher.BeginInvoke(DispatcherPriority.Send, (Action)(() => PoshConsole.SetPrompt()));
 }
示例#2
0
 public void WriteNativeOutput(string message)
 {
     // Write is Dispatcher checked
     PoshConsole.Write(ConsoleBrushes.NativeOutputForeground, ConsoleBrushes.NativeOutputBackground, message, PoshConsole.Current);
     PoshConsole.Dispatcher.BeginInvoke(DispatcherPriority.Send, (Action)(() => PoshConsole.SetPrompt()));
     // TODO: REIMPLEMENT NATIVE prompt using Begin/End and Prompt()
 }