2018년 2월 25일 일요일

command prompt

command prompt

| In this item, we explain the symbols. For Windows NT, please refer to "" about named "Command Prompt". — | —

|This article is not shown at all or insufficient. Please cooperate in improving the reliability of the article. (July 2017) — | —

Command prompt(Command prompt) is a "symbol indicating that it is in an input waiting state" displayed on the screen, and prompts the user to input a command. SimplyPrompt Sometimes it is called, but in addition to the command interpreter "INPUT A "when waiting for input of the sentence" A? "Are all" prompts ", which is a cause of misunderstanding.

In addition, in the compatibility environment (so-called "DOS window"), a caption called "" is attached to the icon that starts up as "," and in place of it, because it is the command line of Windows, I added "command prompt" to the caption of the icon , Often confused with cmd.exe.

table of contents

Concrete example

For example, in the shell, the standard command prompt in the system (and its successor) is PROMPT set to "$ P $ G"

  • ":" + Path string + ">"

In particular

C: >

The display is different depending on the environment at 5/12 (0x5C) of ¥, once "$ N $ G", which was displayed like A>).

There are also differences in the tendency of each shell in the shell, but as one example which is generally common, "%", "$", ">" etc. or "#" etc. after the host name etc., There are conventions such as attaching the symbol of "" (Note that there is a convention that "#" indicates that you are entering commands as, which is fairly common).

Example: host1 $

In many command interpreters, characters displayed as command prompts can be freely changed, and the current directory, the current time, the number of times being executed etc. are sometimes displayed as a command prompt for the convenience of using the command interpreter .

In the COMMAND.COM system, display contents can be rewritten by rewriting the environment variable PROMPT.

C: \ Windows> SET PROMPT PROMPT = $ P $ G In case C: \ Windows> SET PROMPT = $ T $ G In case 18: 08: 52.95>

In Bash, display contents can be changed by rewriting the shell variables PS 1 to PS 4.

pacman @ onyx 2 $ echo $ PS 1 \ u @ \ h $ In case pacman @ onyx 2 $ PS 1 = '\ l @ \ h $' In case ttyp 0 @ onyx 2 $

Command and Command Prompt

"" In the command prompt means "prompt for input", and a prompt is displayed when the command can be input. In a single task environment like the one shown in the figure, while the command input by the command interpreter is being executed, the command prompt is not displayed and the character string output by that program is displayed on the screen, and at the same time as the program ends A prompt is displayed.

The above is a story about a single-task environment like MS-DOS, and most of the "job management function" etc. of the other can make the process (MS- In a DOS environment it is like something like). In that case, the process runs in the background while the command prompt is displayed. That is, the fact that the command prompt is displayed means that commands can be input to the shell.

Command prompt of NEC PC-9801

The text display is superimposed graphically on the hardware (superimposed), and the font of the external character area which was prepared 188 characters was user definable (programmable). By taking advantage of this characteristic, we could embed external characters at the command prompt, rewrite the font in real time and turn animation such as turning the globe.

Annotation

1. ****VM or later

Acquired from ""

Post Date : 2018-02-25 06:30

This article is taken from the Japanese Wikipedia command prompt

This article is distributed by cc-by-sa or GFDL license in accordance with the provisions of Wikipedia.

Wikipedia and Tranpedia does not guarantee the accuracy of this document. See our disclaimer for more information.

In addition, This site is simply not responsible for any show is only by translating the writings of foreign licenses that are compatible with CC-BY-SA license information.

0 개의 댓글:

댓글 쓰기