MicrosoftGranted patentAI & softwareInterest 4/10

Microsoft patents command line tool that suggests commands from remote servers

Patent drawing
Patent drawing from the official filing.

Microsoft has patented a system that lets a command line interface suggest the next word in a command by talking directly to the server running the program. Instead of guessing based on local files, the tool sends your partial command to a remote script that checks the most up-to-date list of available commands before sending suggestions back to your screen.

Why it mattersThis could make using complex command line tools easier for developers by ensuring they always have access to the latest command options, even when working over a remote connection.

In the filing’s own words

An autocompletion feature for a command line interface communicates directly with the shell to obtain candidates to complete a partially-formed CLI command. A terminal emulator generates autocompletion request sequences that are intercepted by a custom shell script integrated with the shell. The custom shell script uses its own autocompletion engine and a CLI command repository with the most current and historical versions of the CLI command structure to obtain autocompletion candidates. In this manner, the shell may be hosted in a remote device or in a separate execution environment without impacting the device hosting the terminal emulator for updates to the CLI command structure.

What exactly they claim (claim 1)

1. A system comprising: one or more processors; and one or more hardware storage devices that store instructions that are executable by the one or more processors to cause the system to: establish a direct secure communication link between a terminal emulator and a shell of a command line interface (CLI), wherein the terminal emulator and the shell reside in different execution environments, wherein the terminal emulator is separate from a native user interface of an application hosting the terminal emulator, wherein the shell comprises a custom shell script, and wherein the custom shell script uses an autocompletion engine dedicated to the custom shell script to access an updated CLI command repository to generate autocompletion candidates to complete a partially-formed CLI command; configure the terminal emulator to receive text input from the CLI; detect, by the terminal emulator, text input that includes a partially-formed CLI command and that is entered into the CLI; determine that the text input entered into the CLI includes a trigger character, wherein the trigger character is included in the input after the partially-formed CLI command, and wherein the trigger character, when detected by the terminal emulator, triggers the terminal emulator to generate an autocompletion request sequence; generate, by the terminal emulator, the autocompletion request sequence, which is structured to include a first escape sequence and the partially-formed CLI command, wherein generation of the first escape sequence facilitates subsequent coordination between the terminal emulator and the custom shell script, said coordination involves the custom shell script triggering generation of the autocompletion candidates using the autocompletion engine and the updated CLI command repository; transmit, by the terminal emulator, through the direct secure communication link, the autocompletion request sequence to the shell; cause the custom shell script, which is hosted by the shell, to intercept the transmission of the autocomplete request sequence to the shell; cause the custom shell script to recognize the autocompletion request sequence based on the custom shell script recognizing the first escape sequence and the partially-formed CLI command, wherein the first escape sequence is ignored by the shell despite being recognized by the custom shell script; cause the custom shell script to generate the autocompletion candidates using the autocompletion engine, wherein the autocompletion engine interacts with the updated CLI command repository to search for the autocompletion candidates given the partially-formed CLI command; cause the custom shell script to construct an autocompletion response sequence that includes a second escape sequence and at least one autocompletion candidate that completes the partially-formed CLI command from the updated CLI command repository; receive, by the terminal emulator, the autocompletion response sequence; and display, by the terminal emulator, the at least one autocompletion candidate in the CLI.

Facts

Company
Microsoft (MICROSOFT TECHNOLOGY LICENSING, LLC.)
Official title
Native UI autocompletion through direct communication with the shell
Patent number
US12801412B2
Application number
17898353
Filed
Aug 29, 2022
Granted
Nov 17, 2026
Inventors
1
Claims
20

Classified under

G06F 9/45512 Physics & computingG06F 9/45558 Physics & computingG06F 13/107 Physics & computingG06F 2009/45579 Physics & computing

More from Microsoft in AI & software

Summaries are simplified from the filing’s own abstract and first claim. A patent filing is not a product announcement.
Patent data and drawings: U.S. Patent and Trademark Office (USPTO). Nebula is not affiliated with or endorsed by the USPTO.