Within notty, the cfg module is only accessed directly from the terminal module.
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.
notty
, thecfg
module is only accessed directly from theterminal
module.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.