home *** CD-ROM | disk | FTP | other *** search
/ RBBS in a Box Volume 1 #2 / RBBS_vol1_no2.iso / 007d / ctty.doc < prev    next >
Text File  |  1984-10-21  |  3KB  |  62 lines

  1.  
  2.  
  3.                    CTTY.DOC
  4.  
  5.      I asked around about the DOS 2.0/2.1 function CTTY and could
  6.      not find anyone familiar with it. So I put on my hacker's cap
  7.      and "went to it." (After midnight, in true hacking style.)
  8.      The DOS manual explains that the command is simply CTTY
  9.      device-name. This will transfer control from the keyboard and
  10.      screen to that device.  It suggests that LPT1: is not a ood
  11.      idea since the printer communicates (mostly) one way. What
  12.      this really leaves is COM1:, COM2: and AUX: (Whatever AUX:
  13.      is! [I'd love to hear from someone about AUX:])
  14.  
  15.      I very cleverly tried typing CTTY COM1: It does do something,
  16.      it kills the keyboard and a cold BOOT is necessary to
  17.      restart. Well, that wasn't it. Something must occur prior to
  18.      the CTTY command. Being strickly a seat-of-the-pants type, I
  19.      set the HAYES to ANSWER and called in. Nice, I had a
  20.      connection (CARRIER/carrier). I rushed over to the PC
  21.      keyboard and typed CTTY COM1: and the screen went dead. So,
  22.      what else is new....But, on my other SYSTEM, (other end of
  23.      the office), the prompt A> appeared. I sat and typed on the
  24.      terminal just as though I was sitting in front of the IBM.
  25.      Well, what do you know?
  26.  
  27.      1) Commands are limited to what the terminal keyboard can
  28.      reproduce i.e. ^C for CTRL-BREAK but not CTRL-ALT-DEL (as if
  29.      you would want that one anyway).
  30.  
  31.      2) Going to BASIC cuts you off. SYSTEM control returns to the
  32.      keyboard.
  33.  
  34.      3) Most commands work except COPY as it relates to CON: or
  35.      COM1: COPY from disk to disk worked O.K.
  36.  
  37.      4) This means is total control fr}M"outside while in DOS
  38.      only on a line-by-line basis. Anything which relies on screen
  39.      mapping will not work. (I ran Norton's DISKMAP from the
  40.      terminal and the map appeared on the PC screen.)
  41.  
  42.                     Now...
  43.  
  44.      You may be wondering why all this verbage. Well.... the
  45.      result of my efforts is a BASIC program called RING.BAS which
  46.      will set up the HAYES to patiently look for an incoming ring,
  47.      and very politely turn SYSTEM control over to the caller. Oh,
  48.      I forgot to mention the BASIC program must be called from a
  49.      BATCH file called OUTSIDER.BAT. When RING goes back to the
  50.      SYSTEM, the next command is CTTY COM1: Slick, huh? RING will
  51.      even write the BATCH file for you. Just take a look at the
  52.      internal documentation for additional information. The
  53.      program is not fancy and I can think of lots to add to it,
  54.      but I am sure you can too.....
  55.  
  56.      Dan Derrick 2/21/84  70215,1136
  57. END OF TRANSFER - PRESS ENTER TO RETURN TO MENU
  58. it,
  59.      but I am sure you can too.....
  60.  
  61.      Dan Derrick 2/21/84  70215,1136
  62. END OF TRANSFER - PRESS ENTER TO RETU