Prof. Eric Berkowitz's Instructions for
Using Command Line Arguments With the Crimson Editor
From the cygwin4tscope Package
I have investigated the crimson editor and the cygwin4tscope
environment and came up with this method for running programs with
command line arguments directly from the editor. I am assuming
that you are using F10 to run the programs from the Crimson editor.
You need to make the following two changes.
Step 2: (See attached image for the following step)
- Save this file file on you hard drive as c:\cygwin\usr\local\bin\execute by right-clicking on it and choosing the Save As ... option.
You will be replacing the current version on your hard drive;
this file is part of the cygwin4tscope package and replacing it will
not affect anything else on your computer. Do make sure you save
the file in the correct directory (folder) and that the name of the
file you save is execute without any extension.
- In the Crimson Editor Menus select Tools->Preferences...
- In the tree on the left, under Tools select User Tools
- In the list that now appears at the top right, scroll down to the row that reads: " Run F10" and highlight it.
- Below this will be a set of input rows labeled Menu Text, Command, Argument etc.
- Append a single space and $(UserInput)to the end of the text in the row labeled Argument as shown in tha image below. ( You may also do this by putting the cursor at the end of the
current text, adding a space, and then clicking on the small triangle to
the right of the box and choosing user input from the pull-down menu.)
- Click OK
now on when you run a program with F10 an input box will pop up into
which you can type arguments that will be passed to your program or
just press enter to pass no arguments.