1 // 2 // Copyright (c) 2010-2018 Antmicro 3 // Copyright (c) 2011-2015 Realtime Embedded 4 // 5 // This file is licensed under the MIT License. 6 // Full license text is available in 'licenses/MIT.txt'. 7 // 8 using Antmicro.Renode.Core; 9 using AntShell.Commands; 10 11 namespace Antmicro.Renode.UserInterface.Commands 12 { 13 public class PauseCommand : AutoLoadCommand 14 { 15 [Runnable] Halt(ICommandInteraction writer)16 public void Halt(ICommandInteraction writer) 17 { 18 writer.WriteLine("Pausing emulation..."); 19 EmulationManager.Instance.CurrentEmulation.PauseAll(); 20 } 21 PauseCommand(Monitor monitor)22 public PauseCommand(Monitor monitor) : base(monitor, "pause", "pauses the emulation.", "p") 23 { 24 } 25 } 26 } 27 28