home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
WIN_UTL1
/
DBMONO.ZIP
/
DBMONO.TXT
< prev
Wrap
Text File
|
1994-01-29
|
2KB
|
59 lines
Monochrome Debugger
===================
If you have two monitors connected to your system DBMONO.EXE will pipe all
OutputDebugString commands in Windows 3.1 to the monochrome monitor. This
includes the TRACE command in Microsoft Visual C++. DBMONO.EXE has a 256K
buffer that stores the information that scrolls off the top of the screen.
This is the equivalent of 1636 lines. If the buffer overruns the first
409 lines are purged to make room for more lines, thus DBMONO will save the
last 1636 lines of information sent to monochrome monitor.
Using DBMONO
============
Simply run DBMONO to pipe info to the monochrome monitor.
Scrolling
=========
To scroll up or down, first activate the DBMONO program by using Alt-Tab.
When DBMONO has the input focus (indicated by the top line of the monochrome
screen changing from receive to view mode) you can use the up/down,
pgup/pgdn, and home/end keys to move the position in the buffer.
Markers
=======
By press Shift plus F1-F10 you can set up to 10 cursor markers. Pressing
F1-F10 moves the cursor to that position. The bottom status line of the
monochrome monitor shows the cursor positions of the markers.
Exiting DBMONO
==============
Simply click on the icon and select close from the system menu. DBMONO
clears the screen of the monochrome monitor so other programs such as
DBWIN will be able to use the monitor afterwards.
Using OutputDebugString
=======================
You can send any text you wish with OutputDebugString. The TRACE command
in Visual C++ lets you format the string (similar to printf). Also the
follow escape sequences can be sent to DBMONO to change the display-
'\x1b' + 'C' this clears the screen and the buffer
'\x1b' + '0' this sets marker number F1 to the current buffer position
'\x1b' + '1' this sets marker number F2 to the current buffer position
... cont. up to ...
'\x1b' + '9' this sets marker number F10 to the current buffer position
'\x1b' + 'H' this turns on the highlight attribute for highlighting text
'\x1b' + 'N' this turns off the highlight attribute for normal text
Hope you find this little program useful and feel free to distribute to
others so they can enjoy it also. If you have any comments or questions
contact me at 73531.1132@compuserve.com
Best Regards,
Hagen Kornberger