/// <summary> /// Shows the command from the command buffer accordingly to the index on TerminalData. /// </summary> public static void ShowCommandFromBuffer(TerminalData data, GUIReferences references) { var command = data.CurrentCommandBuffer[data.CurrentCommandBufferIndex]; ShowTextOnInput(references, command); }
/// <summary> /// Caches the command on the terminal data. /// This will enable the user to up/down typed commands. /// </summary> public static void CacheCommand(TerminalData data, string command) { SList.Insert(data.CommandCache, command, 0); }