diff options
author | Petter Rodhelind <petter.rodhelind@gmail.com> | 2018-02-23 15:56:54 +0100 |
---|---|---|
committer | Petter Rodhelind <petter.rodhelind@gmail.com> | 2018-02-23 15:56:54 +0100 |
commit | 0830c7a397a5334c203cda23e4ad9171245aff2c (patch) | |
tree | 805c5fa3725dd93f6133e7bc9b1f37a94eabd6d7 /testfiles/commands.txt | |
parent | 6233e37bcfb32093c0a032e921bf6ac9d4eede7f (diff) | |
download | poe-0830c7a397a5334c203cda23e4ad9171245aff2c.tar.gz poe-0830c7a397a5334c203cda23e4ad9171245aff2c.tar.bz2 poe-0830c7a397a5334c203cda23e4ad9171245aff2c.zip |
Remove and ignore testfiles from repo.
Diffstat (limited to 'testfiles/commands.txt')
-rw-r--r-- | testfiles/commands.txt | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/testfiles/commands.txt b/testfiles/commands.txt deleted file mode 100644 index 96b49c0..0000000 --- a/testfiles/commands.txt +++ /dev/null @@ -1,48 +0,0 @@ -assadfsadfpackage main - -import ( - "fmt" - "os/exec" - "strings" -) - -func toggleCmdline() { - if !ctrlWin.focused { - ctrlWin.visible = true - ctrlWin.SetFocus(true) - CurWin().SetFocus(false) - return - } - ctrlWin.visible = false - ctrlWin.SetFocus(false) - CurWin().SetFocus(true) - - // TODO: should call some sort of ResizeAll here... - screen.Clear() - screen.Sync() -} - -func parseCmd(input []byte) { - if len(input) < 1 { - return - } - - switch input[0] { - case 'f': - var names []string - for _, win := range AllWindows() { - names = append(names, fmt.Sprintf(" %3s %s", win.Flags(), win.Name())) - } - printMsg(strings.Join(names, "\n")) - case '!': - cmd := strings.Split(string(input[1:]), " ") - out, err := exec.Command(cmd[0], cmd[1:]...).Output() - if err != nil { - printMsg("error: %s", err) - break - } - printMsg("%s", out) - default: - printMsg("?") - } -} |