Dec 192017
TC Mouse Driver Source Code in the form of definition files.
File TCRAT2.ZIP from The Programmer’s Corner in
Category C Source Code
TC Mouse Driver Source Code in the form of definition files.
File Name File Size Zip Size Zip Type
MENU.COM 2540 1998 deflated
TCMONO2.DEF 7575 2195 deflated
TCMONO2.MNU 2572 1261 deflated
TCRAT2.DEF 7509 2187 deflated
TCRAT2.DOC 13232 4371 deflated
TCRAT2.MNU 2572 1261 deflated

Download File TCRAT2.ZIP Here

Contents of the TCRAT2.DOC file


I. I N T R O D U C T I O N:

TC Rat is a Microsoft-compatible mouse driver to
provide mouse support for Borland's Turbo C 2.0 Integrated
Development Environment. The new Turbo editor is nicer than
Borland's old ones (such as in Turbo Pascal 3.0). There are
now pull-down menus, however, you are still required to know
the WordStar commands for such tasks as moving blocks of
text. If you can't rattle off the fifty or so WordStar text
editor commands off the top of your head, then this program
is for you. Now your Microsoft mouse (or compatible) can
have cursor support, context sensitive interaction, and
added pull-down menus so that practically all your choices
are a mouse click away. This version accommodates the new
commands available in Turbo C 2.0.
This program is designed to be intuitive, so you may
skip the directions and figure out how the mouse works as
you go along. If you are the more patient type, follow the
below directions to get the most out of this mouse driver.
Users of TP Rat for Turbo Pascal 4.0 and 5.0 will find this
Turbo C mouse driver practically the same as the Turbo
Pascal counterparts. In fact, TC Rat 2.0 is an adaptation
from TP Rat 5.0. As Borland's IDE interface is very
uniform, the mouse drivers for Pascal and C share many
similar features.

II. I N S T A L L A T I O N:

Before you begin, familiarize yourself with the below


tcrat2.mnu Turbo C 2.0 mouse driver (color)
tcmono2.mnu Turbo C 2.0 mouse driver (mono)
tcrat2.doc This file
tcrat2.def Source code for the color driver
tcmono2.def Source code for the mono driver Runtime file necessary to load driver

At this point the installation will depend on your system:

a) CGA, EGA or VGA systems: At the DOS prompt type the

menu tcrat2

This should load the driver. So that you don't have to type
this every time you run Turbo C, include this command in
your batch file. To unload the driver type "menu off" at
the DOS prompt.

b) Monochromatic systems: At the DOS prompt type the

menu tcmono2

This should load the monochromatic version of the driver.
So that you don't have to type this every time you run Turbo
C, include this command in your batch file. To unload the
driver type "menu off" at the DOS prompt.


The logic of the mouse is dependent upon which button
is pushed -- right, left or both.


Edit mode: Clicking this button, while in the normal
or "Edit" mode of the Turbo editor, will invoke the Turbo
command line at the top of the screen; this is the same as
if you had pushed the F10 key. Then move the mouse to
select the desired choice. Now click EITHER mouse button to
execute this choice. Usually this will pull down another
menu from Turbo's editor. When in one of these pull down
menus, again just move the mouse to select your choice and
click EITHER mouse button. Again this may even take you
into another pull-down menu. Again make your selection just
like before. You may get out of any menu by clicking BOTH
mouse buttons (at the same time).


Edit mode: Clicking this button, while in the normal
or "Edit" mode of the Turbo editor, will invoke a new
command line across the top of the screen. It should have
the following choices:

Block Find and Replace Miscellaneous

Move the mouse to position the cursor over one of these
choices. Click EITHER mouse button to invoke your choice.
If you get here by mistake, just push BOTH mouse buttons to
get out of this menu.
Each command will pull down a menu of choices that
relates to the choice you selected. Each is essentially
self-explanatory, but refer to the Turbo C 2.0 Reference
Manual (Appendix A) if you need further explanation. Some
commands require you to enter a number or symbol from the
keyboard to complete the command. Again, if you want out of
any menu just push BOTH mouse buttons to get out.


In "Edit" mode, pressing both buttons simultaneously
will generate the "Escape" code (27). This key can be used
to abort many of the Turbo editors functions.
Pressing both buttons in any menu will cause you to
exit that menu.


There are times when either right or left button
generates the same consequence.
During a "Find" or "Find and Replace" operation, when
the "Options" prompt appears on screen line #2, pressing
EITHER button will invoke a "Options" submenu to remind you
of the possible options available.
Also during a "Find and Replace" operation, when you
are prompted to respond "Yes" or "No", pressing EITHER
button will invoke a "Yes No" submenu to allow you to enter
your response from the mouse.


These changes are new relative to the TP Rat 4.0 mouse
driver for Turbo Pascal 4.0. There is no earlier version
for Turbo C, but read on as this will tell you how to
execute the start up macro.
There are now two different "autoexec" macros at start
up. Pressing the left button at start up will execute a
"Zoom" and call up *.c files from the default subdirectory.
Pressing the right button will do the same except without
the "Zoom" function. Note: For these macros to work, the
Borland copyright message must appear when you first start;
otherwise, the mouse can't recognize that it is at the start
of an editing session. In Turbo Pascal 5.0, defining a
configuration file causes the copyright message to not
appear, thus the mouse is unable to execute the start up
macro. This may be the case for the Turbo C editor as well.
After a Bock Move or Copy command, the block will be
unmarked. This reflects my own preference.
New commands are added to the Miscellaneous Menu that
were not available on previous drivers. These are
essentially those listed in the Turbo manual.

V. S U M M A R Y:

Use of this mouse is self-explanatory. In sum,
pressing the left button will call up Turbo's menu from
which you may enter your choice. Pressing the right button
will call up Turbo editor commands that previously you had
to memorize. Pressing both buttons will exit any menu.


There is a definite pattern of problems that I've
notice from my previous efforts:

Q: I have a Leading Edge and am having trouble with the
color menus.
A: For whatever reason, the Leading Edge (at least earlier
versions) had hardware compatibility problems with the
Microsoft mouse color menus. I do not know of a software
solution to this hardware problem.

Q: I have a Brand X mouse that's 100% Microsoft compatible
and I am having trouble with ________ (fill in the blank).
A: Solution: Buy a Microsoft mouse or live with your
incompatibility. I have found from personal experience that
these other "compatible" mouses just aren't 100% compatible
no matter what their ads say. If you have such a creature,
test your problem on a friend's Microsoft mouse first. If
the problem still exist then, please let me know.

Q: I used the "menu off" command but I don't regain any
A: That's an astute observation. Why Microsoft's
programmers did not design it different is beyond me. Since
this mouse driver is a TSR, try one of the public domain
"Mark and Release" programs if you need your RAM back.
Luckily, the driver is a small TSR.

Q: I have Clone X computer with a Clone Y extended memory
board and I am running from a Clone Z ramdisk with some
fancy caching stuff thrown in, I can't get the mouse to
A: I am amazed that these type of computers can run
anything. This type of troubleshooting is beyond me.

Q: I can't get the mouse driver to work. I have SideKick
(or other TSR).
A: This mouse driver is a TSR and as such, it is subject to
all the problems and limitations that goes with that species
of program. Fortunately, not too many conflicts exist.

Q: I've changed the colors of the editor, now the mouse
does not work any more.
A: The mouse must recognize when the IDE menu choice is
selected (i.e. when it changes to attribute 115). You can
change the colors as long as the 115 attribute is not
changed. If you change this, the mouse will not know when
the IDE's menu is active and will loose context sensitivity.
Certainly, there are some colors you can change and still
have the mouse work.


This program is intended solely for private,
noncommercial use. You are encouraged to copy and share it
as long as the archive file is always distributed intact.
While all reasonable effort has been made to correct any

defects in this mouse driver, you use it completely AT YOUR
OWN RISK. The author expressly refuses any guarantee as to
the fitness of this product. You are solely responsible for
ANY and ALL damages that you or others incur in the use or
misuse of this program. If you have any reservations to
this, you are expressly forbidden from using this product.

I welcome any comments, suggestions, and questions about
this mouse driver and pointing out errors that invariably
creep it. Hey I'm just taking up Turbo C, and I don't have
a mono system (and was guessing about the mono menus). So
let me know what I've overlooked.

J. A. Smart 12-22-88 CompuServe EMAIL 73307,2662
WordStar, Leading Edge, Borland, Microsoft, and so forth
retain the trademarks of their respective companies. This
driver is not associated with any trademark, registered or

 December 19, 2017  Add comments

Leave a Reply