TutorialTextual Search




Prev | Up | Next | Back | Forward | Tutorial Top

The manner of textual search depends on the windowing system. Click on the appropriate link for the one that you are using:

  • X Windows
  • NT

  • X Windows

    Command search (menu:Edit/Search  key:^S) allows you to search for substrings in the text of your program.

    The search always starts from the current position of the insertion cursor, and it may be in the forward or the reverse direction from there.

      Move the insertion cursor to the start of the *untitled* buffer. Invoke search. A dialog box will pop up under the mouse pointer. Enter i in the field marked Search For, and then strike RETURN.

    The textual and structural selections highlight the first occurrence of i and the dialog box pops down. In general, striking RETURN in a dialog box invokes an action (e.g., search) and then pops down the dialog box. Clicking on the Search button, rather than striking RETURN, also invokes the search but leaves the dialog box on the screen.

      Invoke search again. Move the dialog box away from the *untitled* window. Repeatedly click on the Search button to locate successive occurrences of the letter i.

    Clicking on the Cancel button or striking ESC pops down the dialog box without invoking any action.

      Click on the Cancel button.
     

    NT

    Command find (menu:Edit/Find  key:Ctrl+F) allows you to search for substrings in the text of your program.

    The search always starts from the current position of the insertion cursor, and it may be in the forward or the reverse direction from there.

      Move the insertion cursor to the start of the *untitled* buffer. Invoke find. A dialog box will pop up under the mouse pointer. Enter i in the field marked Search, and then strike RETURN.

    The textual and structural selections highlight the first occurrence of i and the dialog box pops down. In general, striking RETURN in a dialog box invokes an action (e.g., search) and then pops down the dialog box. Clicking on the Search button, rather than striking RETURN, also invokes the search but leaves the dialog box on the screen.

      Invoke search again. Move the dialog box away from the *untitled* window. Repeatedly click on the Search button to locate successive occurrences of the letter i.

    Clicking on the Cancel button or striking ESC pops down the dialog box without invoking any action.

      Click on the Cancel button.


    Forward