code: func Init(preferences *prefs.Preferences) {
  	enableColours := preferences.Core.EnableColors
  
  	if !Attached() {
  		enableColours = false
  	}
  
  	defUI = &UI{
  		Indent: 0,
  		Cols:   screenWidth(),
  
  		EnableProgress: preferences.Core.EnableProgress,
  		EnableHints:    preferences.Core.EnableHints,
  		EnableColors:   enableColours,
  	}
  }
docs: // Init initializes a default global UI, accessible via the package functions.