File size: 1,691 Bytes
806d4b5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
TourPut(
"$RED$$TX+L+PU+UL,\"F\",A=\"MN:F\"$$FG$() is a handy function. "
"It is a wrapper around $RED$$TX+L+PU+UL,\"Find\",A=\"MN:Find\"$$FG$(). "
"It searches for a sym.\n",TRUE);
TourPut("Press $GREEN$<ENTER>$FG$.\n");
//Puts the cursor at the bottom.
Msg(MSG_KEY_DOWN,0,SC_CURSOR_DOWN|SCF_CTRL);
"\n";
"F(\"RED\");";
InGetStr("\n");
Sleep(2000);
TourPut("Notice the number of matches.\n",TRUE);
TourPut(
"Try it with the $GREEN$+l$FG$ flag. This limits to whole labels, not "
"partials.\n",TRUE);
TourPut("Press $GREEN$<ENTER>$FG$.\n");
//Puts the cursor at the bottom.
Msg(MSG_KEY_DOWN,0,SC_CURSOR_DOWN|SCF_CTRL);
"\n";
"F(\"RED\",\"+l\");";
InGetStr("\n");
Sleep(2000);
TourPut("Notice the number of matches.\n",TRUE);
TourPut(
"Try it with the $GREEN$+l-i$FG$ flag. This does not ignore case and "
"limits to whole labels, not partials.\n",TRUE);
TourPut("Press $GREEN$<ENTER>$FG$.\n");
//Puts the cursor at the bottom.
Msg(MSG_KEY_DOWN,0,SC_CURSOR_DOWN|SCF_CTRL);
"\n";
"F(\"RED\",\"+l-i\");";
InGetStr("\n");
Sleep(2000);
TourPut("Notice the number of matches.\n",TRUE);
TourPut(
"The wrapper function is in your $RED$~/HomeWrappers.HC.Z$FG$ file. "
"There is a function $RED$$TX+L+PU+UL,\"R\",A=\"MN:R\"$$FG$() for "
"find and replace. Feel free to customize.\n",TRUE);
TourPut("Press $GREEN$<ENTER>$FG$.\n");
//Puts the cursor at the bottom.
Msg(MSG_KEY_DOWN,0,SC_CURSOR_DOWN|SCF_CTRL);
"\n";
"Ed(\"~/HomeWrappers.HC.Z\");";
InGetStr("\n");
TourPut("Press $GREEN$<SHIFT-ESC>$FG$ to abort the source code.\n");
InUntilChar(CH_ESC,CH_SHIFT_ESC);
TourPut(
"$GREEN$+lb$FG$ is whole label just before.\n"
"$GREEN$+la$FG$ is whole label just after.\n",TRUE);
|