IP Library Granted Patent US 10,488,945
Granted Patent B2
US 10,488,945 · App. 15/845,705 · Granted Nov 26, 2019

Command-line interface displaying method and apparatus

Inventors: Xianhui Fan (Chengdu, CN); Tao Wang (Shenzhen, CN); Yao Yu (Chengdu, CN); Yang Liu (Chengdu, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06F3/0233G06F8/38G06F9/451G06F9/45512G06F16/3331
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,488,945
App. No.
15/845,705
Granted
Nov 26, 2019
Kind
B2
Abstract

A command-line interface (CLI) displaying method includes receiving a typed character, determining whether a character is displayed in a prompt information displaying area, deleting the character displayed in the prompt information displaying area when the character is displayed in the prompt information displaying area, and displaying information obtained by processing a command string currently displayed in a command line displaying area in the prompt information displaying area.

Claims (55)

1. A command-line interface (CLI) displaying method implemented by a client, the CLI displaying method comprising:

receiving a typed character;

determining, in response to the receiving, whether a character is displayed in a prompt information displaying area;

deleting the character from the prompt information displaying area in response to determining that the character is displayed in the prompt information displaying area;

processing a command string displayed in a command line displaying area when the typed character is a preset command execution character; and

displaying a processing result in the prompt information displaying area.

2. The method of claim 1 , further comprising executing a string updating process when the typed character is not the preset command execution character by:

obtaining the command string displayed in the command line displaying area;

obtaining a word set matching the command string from a database;

updating the command string with a word to create an updated command string when a quantity of words comprised in the word set is one; and

displaying the updated command string in the command line displaying area,

wherein the method further comprises:

repeating the string updating process until the quantity is not one; and

displaying the word set in the prompt information displaying area.

3. The method of claim 2 , wherein updating the command string with the word comprises:

replacing the word in the command string with a word in the word set when the word in the command string is not a preset word, wherein the preset word is pre-stored in the database; and

suffixing the command string with the word in the word set when the word in the command string is the preset word.

4. A command-line interface (CLI) displaying apparatus comprising:

a memory; and

a processor coupled to the memory and configured to:

receive a typed character;

determine, in response to the receiving, whether a character is displayed in a prompt information displaying area;

delete the character from the prompt information displaying area in response to determining that the character is displayed in the prompt information displaying area;

process a command string displayed in a command line displaying area when the typed character is a preset command execution character; and

display a processing result in the prompt information displaying area.

5. The CLI displaying apparatus of claim 4 , wherein the processor is further configured to execute a string updating process when the typed character is not the preset command execution character by:

obtaining the command string displayed in the command line displaying area;

obtaining a word set matching the command string from a database;

updating the command string with a word to create an updated command string when a quantity of words in the word set is one; and

displaying the updated command string in the command line displaying area, and

wherein the processor is further configured to:

repeat the string updating process until the quantity is not one; and

display the word set in the prompt information displaying area.

6. The CLI displaying apparatus of claim 5 , wherein the processor is further configured to:

replace the word in the command string with a word in the word set when the word in the command string is not a preset word, wherein the preset word is pre-stored in the database; and

suffix the command string with the word in the word set when the word in the command string is the preset word.

7. A client comprising:

a command-line interface (CLI) comprising a prompt information displaying area and a command line displaying area; and

a processor configured to:

receive a typed character;

determine, in response to the receiving, whether a character is displayed in the prompt information displaying area;

delete the character from the prompt information displaying area in response to determining that the character is displayed in the prompt information displaying area;

process a command string displayed in the command line displaying area when the typed character is a preset command execution character; and

display a processing result in the prompt information displaying area.

8. The client of claim 7 , wherein the processor is further configured to execute a string updating process when the typed character is not the preset command execution character by:

obtaining the command string displayed in the command line displaying area;

obtaining a word set matching the command string from a database;

updating the command string with a word to create an updated command string when a quantity of words comprised in the word set is one; and

displaying the updated command string in the command line displaying area, and

wherein the processor is further configured to:

repeat the string updating process until the quantity is not one; and

display the word set in the prompt information displaying area.

9. The client of claim 8 , wherein the processor is further configured to:

replace the word in the command string with a word in the word set when the word in the command string is not a preset word, wherein the preset word is pre-stored in the database; and

suffix the command string with the word in the word set when the word in the command string is the preset word.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 18, 2017
From: FAN, XIANHUI; WANG, TAO; YU, YAO; LIU, YANG
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 044424/0989 →
Priority Claims (1)
CN 2015 1 0493382 · Aug 12, 2015 · national
Continuity (2)
Continuation PCTCN2016094667 · Aug 11, 2016
Related Publication 20180107285A1 · Apr 19, 2018