More descriptive error for 'terminal entry not found'

This commit is contained in:
Zachary Yedidia
2017-06-04 19:17:02 -04:00
parent 641d188997
commit f84c9f3b5d
2 changed files with 5 additions and 787 deletions

View File

@@ -183,6 +183,10 @@ func InitScreen() {
screen, err = tcell.NewScreen()
if err != nil {
fmt.Println(err)
if err == tcell.ErrTermNotFound {
fmt.Println("Micro does not recognize your terminal:", oldTerm)
fmt.Println("Please go to https://github.com/zyedidia/mkinfo to read about how to fix this problem (it should be easy to fix).")
}
os.Exit(1)
}
if err = screen.Init(); err != nil {

File diff suppressed because one or more lines are too long