Command Prompt for Windows

Command Line Edit Keys

The following list contains keys strokes that perform various cursor motions or actions, that can be used at the command prompt to edit or modify a command line :-

left arrowMove one character left.
right arrowMove one character right.
up arrowDisplay the previous command line.
down arrowDisplay the next command line.
ctrl up arrowDisplay the oldest command line.
ctrl down arrowDisplay the most recent command line.
ctrl left arrowMove one word left.
ctrl right arrowMove one word right.
delDelete one character forward.
backspaceDelete one character backward.
homeMove to the beginning of the command line.
endMove to the end of the command line.
page upScroll up a page.
page downScroll down a page.
ctrl page upScroll up a line.
ctrl page downScroll down a line.
escapeClear the command line.
shift escapeSwitch to and from the pop-up history list.
InsertToggle insert or overwrite mode.
ctrl insertCopy to clipboard.
shift insertPaste from clipboard.
tabExpand an incomplete path, file, command or macro name that is currently being typed at the command prompt.
ctrl tabDisplay a list of names that can complete the current incomplete path, file, command or macro that is being typed at the command prompt.


Insert mode always defaults to on, when the WinOne® Command Prompt is started.

A flashing vertical bar is displayed, when insert mode is on and a flashing block is displayed when overwrite mode is on.

When the up or down arrow keys are used to scroll through the history list, and a partial command line has been entered at the command prompt, then only the command lines in the history list that start with the same sequence of characters will be displayed.

When scrolling through the history list and there are no more commands to scroll through, then a beep will sound to signal that the end of the history list has been reached. See Event Sounds to associate a particular type of sound to this event.

See File Name Completion for more information on setting Tab key options.