Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
custom:text.dat [2018/03/01 12:10] – Links to util:binkit changed to module:binkit digital man | custom:text.dat [2019/08/12 12:53] – [Customization] -> [Customize] digital man |
---|
| |
| |
===== Customization ===== | ===== Customize ===== |
| |
Knowledge of the C programming language may be very helpful in producing the desired results. If all you want to | Knowledge of the C programming language may be very helpful in producing the desired results. If all you want to |
There are multiple ways to customize the contents of the ''text.dat'' file: | There are multiple ways to customize the contents of the ''text.dat'' file: |
- Edit the ''text.dat'' file directly (e.g. using a text editor, but do this with care, see above) | - Edit the ''text.dat'' file directly (e.g. using a text editor, but do this with care, see above) |
- Use the [[module:binkit]] ''REPLACE_TEXT'' or [[custom:JavaScript]] ''bbs.replace_text'' function to replace a single line, programmatically (e.g. in a login/logon script or command-shell) | - Use the [[util:Baja]] ''REPLACE_TEXT'' or [[custom:JavaScript]] ''bbs.replace_text'' function to replace a single line, programmatically (e.g. in a login/logon script or command-shell) |
- Use the [[module:binkit]] ''LOAD_TEXT'' or [[custom:JavaScript]] ''bbs.load_text'' function to load an alternative ''text.dat'' file (e.g. in a login/logon script or command-shell) | - Use the [[util:Baja]] ''LOAD_TEXT'' or [[custom:JavaScript]] ''bbs.load_text'' function to load an alternative ''text.dat'' file (e.g. in a login/logon script or command-shell) |
- The [[module:binkit]] ''REVERT_TEXT'' or [[custom:JavaScript]] ''bbs.revert_text'' function may be used to revert to the original set of text strings loaded from the ''text.dat'' file upon initialization | - The [[util:Baja]] ''REVERT_TEXT'' or [[custom:JavaScript]] ''bbs.revert_text'' function may be used to revert to the original set of text strings loaded from the ''text.dat'' file upon initialization |
| |
The current ''text.dat'' strings may be obtained (e.g. for display purposes) using the [[custom:JavaScript]] ''bbs.text'' function. The caller must pass the number of the text string they wish to obtain. | The current ''text.dat'' strings may be obtained (e.g. for display purposes) using the [[custom:JavaScript]] ''bbs.text'' function. The caller must pass the number of the text string they wish to obtain. |
In many cases, ''Q'' or Ctrl-C (abort) may also be an acceptable answer to the question, but this will never be the default answer. | In many cases, ''Q'' or Ctrl-C (abort) may also be an acceptable answer to the question, but this will never be the default answer. |
| |
| ===== Using Defaults ===== |
| |
| The default values of all the ''text.dat'' strings are stored in the Synchronet Terminal Server library (''sbbs.dll'', ''libsbbs.so''). |
| |
| To use all default text strings you can either: |
| |
| * Download the ''[[http://cvs.synchro.net/cgi-bin/viewcvs.cgi/ctrl/text.dat|text.dat]]'' revision from CVS which correlates with the executables you're using and overwrite your local file, or |
| * Replace (overwrite) your ''text.dat'' file with a 0-length file (each 'missing' string is replaced with the default string). |
| |
===== See Also ===== | ===== See Also ===== |
* [[:config:|Customization]] | * [[:config:|Customization]] |
| |
{{tag>}} | {{tag>text.dat customization ansi}} |
| |