中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-24 17:59
47,812 topics / 349,910 posts / today 1 new / 48,262 members
WinPE、PowerShell及其它命令行系统专区 » Puzzlement about command prompt hotkeys
Printable Version  2,432 / 5
Floor1 xjj2007 Posted 2006-12-03 12:25
初级用户 Posts 57 Credits 149 From 湖南
I accidentally pressed the SHIFT+F2 key when the command prompt window was active, and this appeared (see the attachment).
What is this? What is it for?

Thanks!
-----NSMHXJJ

QQ:654018824

Attachments
未命名.GIF (19.83 KiB)
Floor2 electronixtar Posted 2006-12-04 01:53
铂金会员 Posts 2,672 Credits 7,493
Try pressing F1 to F12~~~ Actually, it's an extension of the pure DOS F3 key
Floor3 qzwqzw Posted 2006-12-04 07:40
银牌会员 Posts 636 Credits 2,343
Pure DOS already supports F1 to F9.

F1: Take one character from the same position in the previous command line.

F2: Take multiple characters from the same position in the previous command line until the specified character is encountered.

F3: Take all remaining characters from the same position in the previous command line.

F4: Delete characters after the current cursor until the specified character is encountered.

F5: Take the previous command line and rewrite the current command line.

F6: Enter Ctrl-Z to mark the end of the text.

Esc: Clear the current command line buffer and write a new one.

After loading doskey:

F7: Display the command line history.

F8: Sequentially display individual records of the command line history into the command line.

F9: Select the command line of the history by the number of the result from F7.

Alt+F7: Clear the command line history.

Alt+F10: Clear macro definitions.

In addition, you can use ansi.sys to redefine these keys or combinations.
Floor4 electronixtar Posted 2006-12-04 09:34
铂金会员 Posts 2,672 Credits 7,493
Oh, I see. I've learned something.
Floor5 tao0610 Posted 2006-12-04 13:43
高级用户 Posts 218 Credits 579
Redefine these keys or combinations using ansi.sys.

Tell me about it.
Floor6 xjj2007 Posted 2006-12-06 07:31
初级用户 Posts 57 Credits 149 From 湖南
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023