Ejemplo n.º 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()));
 }
Ejemplo n.º 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()
 }