mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 22:50:21 +09:00
19 lines
399 B
Go
19 lines
399 B
Go
// +build linux darwin dragonfly openbsd_amd64 freebsd
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/zyedidia/micro/cmd/micro/shellwords"
|
|
)
|
|
|
|
const TermEmuSupported = true
|
|
|
|
func RunTermEmulator(input string, wait bool, getOutput bool, callback string) error {
|
|
args, err := shellwords.Split(input)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
err = CurView().StartTerminal(args, wait, getOutput, callback)
|
|
return err
|
|
}
|