[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

287.0. "setting terminals within .exe's" by WHOARU::MCCARTHY (Error Message #000000) Thu Aug 14 1986 01:22

	This may or may not qualify as a "hack" but I wish to
add code to a pascal program I wrote while still in college.  Simply 
enough all I want to do is to check to see if a terminal has /NOBROADCAST 
set and if so set it to /BROADCAST and then $BRKTHRUW a message and then 
of course reset it.

	The checking for /NOBROADCAST is easy.  I have been scanning the
system services manuals and other VMS manuals durring lunch looking for some 
sort of system routine to do it.

**********	Is there one I am not seeing????	**************

	Oh ya, the program (acually two) spawns off a subprocess and waits for
a given delta time ($hiber) then $BRKTHRUW's a message.  An alarm program.
I use process logicals to communicate the delta time to the subprocess.

Thanx,
Brian (Mac)
T.RTitleUserPersonal
Name
DateLines
287.1THEBAY::MTHOMASThe Mad HackerThu Aug 14 1986 02:139
    Take a look at I/O users guide, Part I, terminal driver.
    
    All you need to do is a IO$_SENSEMODE to the terminal.  You will
    receive back the characteristics buffer which, among other things,
    will have the value of the TT$V_NOBRDCST bit (set if broadcasts
    are disabled).  
    
    that's it.
    matt
287.2finding a manual is half the battleWHOARU::MCCARTHYError Message #000000Mon Aug 18 1986 11:2814

	Thanks Matt!  I have been "playing" with it since I got your reply.
I was not expecting such a quick response!

	I like the fact that the I/O users guide does almost exactly what
I need!

	I looked at the TOOLSHED and noticed two alarm programs, one that 
does spawn.  I will continue with mine though.  It works fine now I just
want to "make absolutely sure" the alarm will be seen.  (reset nobroadcast).

Thanks again,
Brian (Mac)