forked from nbsp/welcome
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
7227bdb531 | ||
|
a1843ba12b |
@ -64,7 +64,7 @@ func (view *Editor) Event(state *ui.State, event vaxis.Event) (processed bool) {
|
|||||||
vt.TERM = os.Getenv("TERM")
|
vt.TERM = os.Getenv("TERM")
|
||||||
vt.Attach(state.PostEvent())
|
vt.Attach(state.PostEvent())
|
||||||
vt.Focus()
|
vt.Focus()
|
||||||
err := vt.Start(exec.Command("bash", "-l"))
|
err := vt.Start(exec.Command("bash"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,9 @@ func (view *Shell) Draw(state *ui.State) (row int) {
|
|||||||
vaxis.Segment{Text: "TERMINAL", Style: vaxis.Style{Foreground: vaxis.IndexColor(3)}},
|
vaxis.Segment{Text: "TERMINAL", Style: vaxis.Style{Foreground: vaxis.IndexColor(3)}},
|
||||||
vaxis.Segment{Text: `. Good news...you've been using the TERMINAL this whole time!
|
vaxis.Segment{Text: `. Good news...you've been using the TERMINAL this whole time!
|
||||||
|
|
||||||
The tool we use to navigate between programs *within* the terminal, however, is called a `},
|
The tool we use to navigate between programs `},
|
||||||
|
vaxis.Segment{Text: "within", Style: vaxis.Style{Attribute: vaxis.AttrItalic}},
|
||||||
|
vaxis.Segment{Text: " the terminal, however, is called a "},
|
||||||
vaxis.Segment{Text: "shell", Style: vaxis.Style{Foreground: vaxis.IndexColor(3)}},
|
vaxis.Segment{Text: "shell", Style: vaxis.Style{Foreground: vaxis.IndexColor(3)}},
|
||||||
vaxis.Segment{Text: `. It's an interface that accepts commands, like "open a text editor" or "show me my flower", in a special language. the most popular shell is called `},
|
vaxis.Segment{Text: `. It's an interface that accepts commands, like "open a text editor" or "show me my flower", in a special language. the most popular shell is called `},
|
||||||
vaxis.Segment{Text: "bash", Style: vaxis.Style{Foreground: vaxis.IndexColor(3)}},
|
vaxis.Segment{Text: "bash", Style: vaxis.Style{Foreground: vaxis.IndexColor(3)}},
|
||||||
@ -63,7 +65,7 @@ func (view *Shell) Event(state *ui.State, event vaxis.Event) (processed bool) {
|
|||||||
vt.TERM = os.Getenv("TERM")
|
vt.TERM = os.Getenv("TERM")
|
||||||
vt.Attach(state.PostEvent())
|
vt.Attach(state.PostEvent())
|
||||||
vt.Focus()
|
vt.Focus()
|
||||||
err := vt.Start(exec.Command("bash", "-l"))
|
err := vt.Start(exec.Command("bash"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user