You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Search order: current directory → home directory (`~/log`) → `/lib/log` (or `$LOGLIB`)
144
+
3. Search order: current directory → home directory (set by `-h <dir>`, default: `~/log`) → `$LOGLIB` directory (set by wrapper script to `log/lib` by default)
144
145
145
146
**Recommended approach for custom configurations:**
146
147
To view a legacy design, it might be necessary to provide a custom .cnf file.
@@ -157,7 +158,7 @@ menu gate1 gate2 gate3 { Customize menu gates }
157
158
**Note on INCLUDE paths:**
158
159
-**Relative paths** (e.g., `genlog.cnf`) are resolved relative to the current working directory, which is `log/lib` after the wrapper script runs. This is the recommended approach.
159
160
-**Absolute paths** (starting with `/`) will work but are not portable across systems (e.g., `/home/user/chipmunk/log/lib/genlog.cnf`).
160
-
- Paths are searched in this order: current directory → launch directory → home directory (`~/log`) → LOGLIB directory (`log/lib`).
161
+
- Paths are searched in this order: current directory → launch directory → home directory (set by `-h <dir>`, default: `~/log`) → `$LOGLIB` directory (set by wrapper script to `log/lib` by default).
161
162
162
163
**Note**: The wrapper script (`bin/analog`) automatically loads `analog.cnf` by default. To use a completely different configuration, specify it with `-c` or use `-v` for vanilla mode (no config file).
163
164
@@ -171,6 +172,16 @@ These are set by the `bin/analog` wrapper script. You typically don't need to se
171
172
172
173
-**`CHIPMUNK_LAUNCH_DIR`**: Automatically set to your current working directory. Used to resolve relative file paths for `:load` and `:save` commands, ensuring files are loaded/saved relative to where you launched the program, not the internal working directory.
173
174
175
+
-**`LOGLIB`**: Automatically set to `${CHIPMUNK_DIR}/log/lib` by the wrapper script. This environment variable specifies the directory where LOG searches for configuration files (`.cnf` files) and gate library files. The wrapper script sets this automatically, but you can override it if needed:
**Note**: The `-h <dir>` command-line option sets the home directory (default: `~/log`) which is used for searching user-specific files, while `LOGLIB` specifies the library directory for system configuration and gate files. Both affect where LOG searches for files, but serve different purposes:
182
+
-**`-h <dir>`**: User home directory for personal gate files and configurations (searched after current directory)
183
+
-**`LOGLIB`**: System library directory for default configuration files and gate libraries (searched last in the path)
184
+
174
185
### Display Options
175
186
176
187
-**`CHIPMUNK_CURSOR_SCALE`**: Scale factor for Chipmunk's *bitmap* mouse cursors (1-4). Useful for high-DPI displays where the classic 16x16 cursors are too small. Default is 2 (2x normal size) when bitmap cursors are enabled.
0 commit comments