home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / telix / telixnam.zip / TLX-NAME.TXT
Text File  |  1990-03-11  |  2KB  |  57 lines

  1. A number of Telix users have been asking (on message boards and 
  2. elsewhere) how to put on the status line the name of the system 
  3. or BBS with which a connection has been made. Here's how to do it 
  4. with a logon script. 
  5.  
  6. At the beginning of your .SLT file on a line somewhere above the 
  7. line that reads "main()", enter the following line: 
  8.  
  9.      str name[15];
  10.      
  11. This creates a 15-character string called "name"; it is limited 
  12. to 15 characters because that's how much room there is at the 
  13. left end of the status line where "Alt-Z for Help" appears. Next, 
  14. below the "main()" line and the "{" line, enter the following 
  15. lines: 
  16.  
  17.      name="               ";
  18.      pstraxy(name, 1, 24, 112);
  19.      name=_entry_name;
  20.      pstraxy(name, 1, 24, 112);
  21.      clear_screen();
  22.  
  23. These lines blank out the left end of the status line (in case 
  24. the name of the BBS or system is short) and enter the BBS/system 
  25. name (or the first 15 characters if it is longer than that). The 
  26. clear_screen() command takes the cursor out of the status line 
  27. and puts it at the upper left corner of the screen.
  28.  
  29. When you have finished modifying your .SLT logon file, compile it 
  30. with the CS.EXE program to make it readable by Telix. 
  31.  
  32.      NOTES:
  33.  
  34.      1. There are 15 spaces between the quotes in the line 
  35.         name="               ";
  36.  
  37.      2. In the two pstraxy lines, the last number (112) prints 
  38.         the BBS/system name in inverse video on a monochrome 
  39.         system. Change that number (only) to customize the color 
  40.         for your system. See the SALT manual. 
  41.  
  42.      3. Also in the two pstraxy lines, the number 24 presumes 
  43.         that the status line is at the bottom of the screen. If 
  44.         you have placed it at the top of the screen, each 24 
  45.         should be 0 (zero).
  46.  
  47.      4. All of the lines that you add to your logon script must 
  48.         end with a semicolon (;). 
  49.  
  50.      5. I have used this script addition with Telix 3.12, but I 
  51.         can't vouch for using it with any other version of the 
  52.         program. Enjoy.
  53.  
  54.                                 Mike Zimmerman
  55.                                 CIS: 70717,313
  56.                                 GEnie: MJZIMMERMAN 
  57.