mirror of https://github.com/liamg/aminal.git
Merge branch 'master' into redraw_fix
This commit is contained in:
commit
a560d6eae3
14
main.go
14
main.go
|
@ -31,13 +31,13 @@ func main() {
|
||||||
logger.Fatalf("Failed to allocate pty: %s", err)
|
logger.Fatalf("Failed to allocate pty: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
shellStr, err := loginshell.Shell()
|
shellStr := conf.Shell
|
||||||
if err != nil {
|
if shellStr == "" {
|
||||||
logger.Fatalf("Failed to ascertain your shell: %s", err)
|
loginShell, err := loginshell.Shell()
|
||||||
}
|
if err != nil {
|
||||||
|
logger.Fatalf("Failed to ascertain your shell: %s", err)
|
||||||
if conf.Shell != "" {
|
}
|
||||||
shellStr = conf.Shell
|
shellStr = loginShell
|
||||||
}
|
}
|
||||||
|
|
||||||
os.Setenv("TERM", "xterm-256color") // controversial! easier than installing terminfo everywhere, but obviously going to be slightly different to xterm functionality, so we'll see...
|
os.Setenv("TERM", "xterm-256color") // controversial! easier than installing terminfo everywhere, but obviously going to be slightly different to xterm functionality, so we'll see...
|
||||||
|
|
Loading…
Reference in New Issue