home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 107 / MINICOM.ZIP / README.RZS < prev    next >
Text File  |  1992-05-18  |  2KB  |  50 lines

  1. If you are using a new version if Chuch Forsenberg's zmodem, it is
  2. possible that it will not run OK in a window. This is because the
  3. new versions *don't* use stdin and stdout, but without mercy they
  4. just open /dev/tty. Ai! I changed the following in the file "rbsb.c"
  5. and now things work allright. You might want to change this also.
  6. Here is the particular function I'm talking about:
  7.  
  8. --------------------------------------------------------------------
  9. /* Line 336 */
  10. /* Initialize tty device for serial file xfer */
  11. inittty()
  12. {
  13. #ifndef HVM
  14.     Tty = open("/dev/tty", 2);
  15.     if (Tty < 0) {
  16.         perror("/dev/tty");  exit(2);
  17.     }
  18. #else
  19.     Tty = 1;
  20. #endif
  21.     Ttystream = fdopen(Tty, "w");
  22.     setbuf(Ttystream, xXbuf);        
  23. }
  24. --------------------------------------------------------------------
  25.  
  26. And to get the Logging output to the screen instead of to /tmp/szlog,
  27. change the following in sz.c :
  28.  
  29. --------------------------------------------------------------------
  30.     if (npats < 1 && !Command && !Test) 
  31.         usage();
  32.     if (Verbose) {
  33. /* Line 403 of sz.c */
  34. #ifndef HVM
  35.         if (freopen(LOGFILE, "a", stderr)==NULL) {
  36.             printf("Can't open log file %s\n",LOGFILE);
  37.             exit(2);
  38.         }
  39. #endif
  40.         setbuf(stderr, NULL);
  41.     }
  42.     vfile("%s %s for %s\n", Progname, VERSION, OS);
  43. --------------------------------------------------------------------
  44. You might want to change the same in the file "rz.c" also, around line 249.
  45. It is now possible to use the -v[vv] flag with rz/sz and see the debugging
  46. output appear in the status window!
  47.  
  48. You have to define 'HVM' to make the change effective, ofcourse!
  49.  
  50.