Skip to content

Commit

Permalink
内蔵 echo コマンドがエスケープシーケンスに対応していなかった不具合を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed Oct 1, 2014
1 parent f1560ad commit 9cb52aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands/echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import "fmt"
import "os/exec"
import "strings"

import "github.com/shiena/ansicolor"

import "../interpreter"

func cmd_echo(cmd *exec.Cmd) (interpreter.NextT, error) {
fmt.Fprintln(cmd.Stdout, strings.Join(cmd.Args[1:], " "))
fmt.Fprintln(ansicolor.NewAnsiColorWriter(cmd.Stdout), strings.Join(cmd.Args[1:], " "))
return interpreter.CONTINUE, nil
}

0 comments on commit 9cb52aa

Please sign in to comment.