withoutboats / notty

A new kind of terminal
GNU Affero General Public License v3.0
2.3k stars 41 forks source link

Prepare to allow configuration without recompilation #20

Closed withoutboats closed 8 years ago

withoutboats commented 8 years ago
  1. Within notty, the cfg module is only accessed directly from the terminal module.
  2. All config information is stored on a Config struct and not made public directly.

These both have the same motivation - they will make it easier to store non-static config information directly on the Terminal struct. This will allow config info to be loaded at runtime, so it can be changed by the user without them having to recompile notty from the source.