home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / SBBS1B00.ZIP / TEXT.EXE / TEXT / EXAMPLE.SIF < prev    next >
Text File  |  1992-07-18  |  2KB  |  69 lines

  1. This is an example of the Synchronet Interface File (SIF) Format:
  2.  
  3. To execute this SIF, yype ;SIF at the main prompt and enter EXAMPLE as the 
  4. filename.
  5.  
  6. Only text between STX (Start of text / Ctrl-B) and ETX (End of text / Ctrl-C)
  7. will be displayed to the user. After each ETX is the input mode specifier
  8. ('c'haracter or 's'tring), then an optional mode modifier ('u'ppercase,
  9. 'n'umeric, or 'f'orced captialization), then an optional 'l' for an input line
  10. to be displayed, then an optional 'r' if the data file should contain a CRLF
  11. after this field, then the maximum length of the string (if 's'tring mode and a
  12. template isn't specified), then an optional . followed by the minimum length
  13. of the string, and last an optional string in double-quotes that either
  14. specifies what keys will be accepted ('c'haracter mode) or an input template
  15. ('s'tring mode).
  16.  
  17. Inside the text area, we should use Synchronet Ctrl-A sequences for changing
  18. the text attributes and clearing the screen. Embeded ANSI sequences can be used
  19. but are not suggested as they will be displayed to ALL users (ANSI or not), and
  20. Ctrl-A sequences are filtered for non-ANSI users, and modified for Monochrome
  21. ANSI users. See SBBS\TEXT\MENU\ATTR.ALL for more information on Ctrl-A codes.
  22.  
  23. Text is going to start here: 
  24. n
  25. Hello, this is an example hSIFn file.
  26.  
  27. Please answer the following input prompts.
  28.  
  29. mhSelect Onen
  30.  
  31. A) Selection A
  32. B) Selection B
  33. C) Selection C
  34.  
  35. yhWhich: nc"ABC" Text in this area is just for comments
  36. 
  37. yhEnter any character: rc
  38. 
  39. yhEnter any character (converted to uppercase automatically): ncu
  40. 
  41. yhEnter any number (allows CR): cnl
  42. 
  43. yhEnter any number (disallows CR): bc"0123456789"
  44. 
  45. bhEnter a string: ws30
  46. 
  47. yhEnter a string of at least 4 characters: sl8.4
  48. 
  49. yhEnter a string (converted to uppercase automatically): nsu10
  50. 
  51. yhEnter a numeric value of at least one digit: snl5.1
  52. 
  53. yhEnter your name (forced capitalization): nsf30
  54. 
  55. yhEnter your phone number (must be complete): ws.12"NNN-NNN-NNNN"
  56.                                                     ^ notice that the max 
  57.         length wasn't needed because the template was specified
  58. 
  59. yhEnter your birthdate (can be incomplete): sl"NN/NN/NN"
  60. 
  61. bhAre you sure (Y/N) ? wc"YN"
  62. 
  63. chAll done!
  64. 
  65. everything after this point doesn't matter..... (cause we're not between STX
  66. and ETX)
  67.  
  68. See SBBS\DOCS\SIF.DOC for more information.
  69.