Command Editing
Microcomputer/DOS Tutorial


Computer Studying

Navigation
{NavForms}

Virus Tutorial Map
Tutorial Map

Function keys

The function keys assume different roles for different programs. F1 through F5 have special meaning within DOS. They help in reissuing or editing the last DOS command typed.

Two keys redisplay the line currently in the buffer:

  • F1 F1 redisplays the buffer, one character at a time, each time F1 is pressed.
  • F3 F3 redisplays the entire buffer.

For example, if A>TYPE \MYPATH\MYFILE were the last DOS command typed, then pressing F3 would retype the line completely, and pressing F1 nineteen times would reshow the line, a character at a time.

  • F2<Chr> F2 redisplays the buffer UP TO the character you typed after pressing F2.
  • F4<Chr> F4 deletes all characters in the buffer UP TO the character you typed after F4. The buffer is not displayed. To see the buffer on screen tap F3.

For example: Assume the last line typed was A>TYPE \MYPATH\MYFILE

  • Pressing F2 F would display A>TYPE \MYPATH\MY
    (Helps when you want to add to a prior command.)
  • Pressing F4 \ F3 would display A>\MYPATH\MYFILE
    (F4 \ edits the buffer, F3 displays it.)

And, then there was one:

  • F5 F5 stores the current line for further editing.

This key is used with the other four keys to give you the ability to easily fix errors in long command strings.

When you press the F5 key your current line will be marked and the cursor will be moved to the next line, without showing a new prompt. Use the other function keys to finish editing.

Function Key Editing Summary

  • F5 F5 saves a line for editing. Assume saved text is: TYPE \MYPATH\MYFILE
  • F1 F1 reshows the buffer a character at a time. (One press gives T, press 2 gives Y, etc.)
  • F3 F3 reshows entire contents of the buffer. (One press gives TYPE \MYPATH\MYFILE)
  • F2<Chr> F2 edits and reshows the buffer up to the specified character. (Pressing F2 \ gives TYPE )
  • F4<Chr> F4 deletes characters to that specified WITHIN THE BUFFER ONLY. (Pressing F4 \ F3 shows \MYPATH\MYFILE)

Keep Reading Keypad and Cursor Discussion


{NavBar}
Home | Products | Definitions | Newsletter | Virus Tutorial | Contact


FILExt is proudly hosted by DewaHost.com - a fast and reliable host for everyone!
DewaHost offers premium Web hosting starting from $8.95/month and a high speed file hosting service FileBurst!

Please use the contact form for questions or comments about this web site.
Copyright © 2001 Computer Knowledge, All Rights Reserved
Pray the Rosary for peace.