In the previous tutorial, we looked at getting used to the various prompts in the Pocket CLI App. In this tutorial, we will explore some keyboard shortcuts, and how to auto-complete commands.
There are several IOS keyboard shortcuts but we shall explore just a few, relevant to navigating around the Pocket CLI App.
At launch of the App, the only keyboard visible is your own smartphone’s keyboard. There is a ‘hidden’ keyboard (also known at the custom keyboard) that has the Tab, Ctrl, Alt, Break, and the Navigation/Arrow keys. To view this keyboard, tap on the dotted box at the top right corner of the screen as shown in the screenshot below. Tap on that same box to hide the keyboard again.
Below are some keyboard shortcuts supported by the App and what they do:
Note: Tapping at the beginning or end of a word moves the cursor to that location. Taping and holding within any word moves the cursor to that character in the word. These do pretty much the same thing as the first four listed commands in the table above.
Auto-Completing IOS Commands:
The App has two ways of auto-completing commands: Using the Tab key, and the Swipe option. I am going to demonstrate how to auto-complete the Configure Terminal command with the Tab key:
- While already in privileged mode, type conf and show the custom keyboard at the top right corner.
- Tap on tab to auto-complete it to configure.
- Type t and tap on tab to auto-complete it to terminal, to get the full configure terminal command.
The second and much simpler method to auto-complete this command is by swiping the text area towards the right. After typing conf, swipe right to get configure. Type t and swipe right to get terminal, and now you have the complete configure terminal command.
The auto-complete feature comes in handy in assisting you to enter commands quickly without having to enter the whole commands manually.