コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <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);
 }