While dialog based programs are preferable, it may not be economic to convert all existing or custom tailored software to dialogs. Support for character mode programs will allow easier porting of existing HP Eloquence programs to the Windows platform.
IF SYSID$("s") = "WIN32" THEN COMMAND "!dir ..." ELSE CATALOG ... END IF
However, on Windows 9x, this is not possible. Instead, the current console code page (which is set by means of the 'mode' command, e.g. in the autoexec.bat system startup file) is used to select an appropriate map file. Currently, the following map files are included:
cp850.map | PC-850 Multilingual (Windows 9x and NT) |
cp437.map | PC-8 (Windows 9x, less national characters) |
cp1252.map | ISO 8859-1 (Windows 9x, no line drawing characters) |
These files are located in the etc subdirectory of your HP Eloquence installation directory which is usually
C:\Program Files\Hewlett-Packard\HP Eloquence.They define how system-specific character codes are translated from/to HP Roman 8 which is used internally by eloqcore. Since these are plain ASCII files, it is possible to define additional mappings yourself if necessary. For example, if your console uses the 1250 code page (which can be queried with the 'mode' command) so you would need support for the 1250 code page, you could copy the cp1252.map file to cp1250.map and change the mapping wherever code page 1250 differs from code page 1252.
In order to make use of HP Eloquence QUERY and the example programs, you should further add the SYSTEM and EXAMPLE volume definitions to your eloq.config file. To do that, either use the HP Eloquence Configuration Utility or edit the eloq.config file using a text editor (it is located in the etc subdirectory of your HP Eloquence installation directory):
VOLUME SYSTEM "C:/Program Files/Hewlett-Packard/HP Eloquence/share/prog" VOLUME EXAMPLE "C:/Program Files/Hewlett-Packard/HP Eloquence/share/example"