Providing contextual actions in command line interfaces

US12360788B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12360788-B2
Application numberUS-202418663378-A
CountryUS
Kind codeB2
Filing dateMay 14, 2024
Priority dateMar 25, 2022
Publication dateJul 15, 2025
Grant dateJul 15, 2025

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Techniques for expanding capabilities of a computing shell, which exposes services provided by an OS and which is separated from a kernel of the OS, by enabling a command line interface (CLI) of the shell to have context aware capabilities. An event in which a command is entered in the CLI is detected. The CLI displays a command decoration that is selectable and that, when selected, triggers display of a menu comprising a command suggestion. The command suggestion is generated based on a context associated with the command. In response to selection of the command decoration, the menu is displayed. This menu includes the command suggestion. In response to selection of the command suggestion, the computing shell automatically executes the command suggestion.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for enabling a command line interface (CLI) of a shell to have context aware capabilities, said method comprising: detecting an event in which a command is entered in the CLI; displaying, proximately to a line in the CLI where new text is enterable in a character grid of the CLI and in a border region that is outside of the character grid, a command decoration that is selectable and that, when selected, triggers display of a menu comprising a command suggestion, wherein: the command suggestion is generated based on the command, the border region is an outer peripheral region of a window of the character grid of the CLI, and an entirety of the command decoration is displayed within the border region; detecting selection of the command decoration; displaying the menu comprising the command suggestion; and in response to selection of the command suggestion, causing the shell to execute the command suggestion. 2. The method of claim 1 , wherein the command decoration is displayed after the event is detected. 3. The method of claim 1 , wherein selection of the command decoration is performed using a cursor. 4. The method of claim 1 , wherein the CLI of the shell is a Windows operation system command prompt. 5. The method of claim 1 , wherein the CLI of the shell is an iOS terminal. 6. The method of claim 1 , wherein the CLI of the shell allows for the new text to be entered only at a tail end of the CLI. 7. The method of claim 1 , wherein the CLI of the shell is not a text editor. 8. The method of claim 1 , wherein the command suggestion includes a change directory command. 9. The method of claim 1 , wherein the command suggestion includes a termination command. 10. The method of claim 1 , wherein the command suggestion is a single command suggestion displayed in the menu. 11. A computer 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 computer system to: detect an event in which a command is entered in a command line interface (CLI) of a shell; display, proximately to a line in the CLI where new text is enterable in a character grid of the CLI and in a border region that is outside of the character grid, a command decoration that is selectable and that, when selected, triggers display of a menu comprising a command suggestion, wherein: the command suggestion is generated based on the command, the border region is an outer peripheral region of a window of the character grid of the CLI, and an entirety of the command decoration is displayed within the border region; detect selection of the command decoration; display the menu comprising the command suggestion; and in response to selection of the command suggestion, cause the shell to execute the command suggestion. 12. The computer system of claim 11 , wherein the menu displays a single command suggestion, which is the command suggestion. 13. The computer system of claim 11 , wherein the command entered in the CLI is not recognized by the shell. 14. The computer system of claim 11 , wherein the command entered in the CLI is recognized by the shell. 15. The computer system of claim 11 , wherein the command suggestion is generated based on a determined context. 16. The computer system of claim 15 , wherein the determined context is a historical context of a user who entered the command. 17. The computer system of claim 15 , wherein the determined context is a command context of the command. 18. The computer system of claim 11 , wherein the menu includes a plurality of command suggestions. 19. The computer system of claim 11 , wherein the CLI operates independently relative to an integration development environment (IDE). 20. A computer 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 computer system to: detect an event in which a command is entered in a command line interface (CLI) of a shell; display, proximately to a line in the CLI where new text is enterable in a character grid of the CLI and in a border region that is outside of the character grid, a command decoration that is selectable and that, when selected, triggers display of a menu comprising a command suggestion, wherein: the command suggestion is generated based on the command, the border region is an outer peripheral region of a window of the character grid of the CLI, and an entirety of the command decoration is displayed within the border region; detect selection of the command decoration; display the menu comprising the command suggestion; and in response to selection of the command suggestion, cause the command suggestion to be automatically entered into the CLI while refraining, at least temporarily, from executing the command suggestion.

Assignees

Inventors

Classifications

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12360788B2 cover?
Techniques for expanding capabilities of a computing shell, which exposes services provided by an OS and which is separated from a kernel of the OS, by enabling a command line interface (CLI) of the shell to have context aware capabilities. An event in which a command is entered in the CLI is detected. The CLI displays a command decoration that is selectable and that, when selected, triggers di…
Who is the assignee on this patent?
Microsoft Technology Licensing Llc
What technology area does this patent fall under?
Primary CPC classification G06F9/45512. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Jul 15 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).