"sucmd": "sudo",
"pluginchannels": []string{"https://raw.githubusercontent.com/micro-editor/plugin-channel/master/channel.json"},
"pluginrepos": []string{},
+ "xterm": false,
}
// a list of settings that should never be globally modified
os.Setenv("TCELL_TRUECOLOR", "disable")
}
+ var oldTerm string
+ if config.GetGlobalOption("xterm").(bool) {
+ oldTerm = os.Getenv("TERM")
+ os.Setenv("TERM", "xterm-256color")
+ }
+
// Initilize tcell
var err error
Screen, err = tcell.NewScreen()
os.Exit(1)
}
+ // restore TERM
+ if config.GetGlobalOption("xterm").(bool) {
+ os.Setenv("TERM", oldTerm)
+ }
+
if config.GetGlobalOption("mouse").(bool) {
Screen.EnableMouse()
}
default value: `true`
+* `xterm`: micro will assume that the terminal it is running in conforms to
+ `xterm-256color` regardless of what the `$TERM` variable actually contains.
+ Enabling this option may cause unwanted effects if your terminal in fact
+ does not conform to the `xterm-256color` standard.
+
+ Default value: `false`
+
---
Plugin options: all plugins come with a special option to enable or disable