Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
5d7851e8dc |
@ -4,7 +4,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
|
||||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||||
)
|
)
|
||||||
|
|
||||||
func executor(t string) {
|
func executor(t string) {
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RequestContext struct {
|
type RequestContext struct {
|
||||||
|
@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||||
)
|
)
|
||||||
|
|
||||||
var LivePrefixState struct {
|
var LivePrefixState struct {
|
||||||
|
@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||||
)
|
)
|
||||||
|
|
||||||
func executor(in string) {
|
func executor(in string) {
|
||||||
|
@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||||
)
|
)
|
||||||
|
|
||||||
func completer(in prompt.Document) []prompt.Suggest {
|
func completer(in prompt.Document) []prompt.Suggest {
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||||
"git.tcp.direct/tcp.direct/go-prompt/completer"
|
"git.tcp.direct/Mirrors/go-prompt/completer"
|
||||||
)
|
)
|
||||||
|
|
||||||
var filePathCompleter = completer.FilePathCompleter{
|
var filePathCompleter = completer.FilePathCompleter{
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||||
"git.tcp.direct/tcp.direct/go-prompt/internal/term"
|
"git.tcp.direct/Mirrors/go-prompt/internal/term"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -3,7 +3,7 @@ package prompt
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
"git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Buffer emulates the console buffer.
|
// Buffer emulates the console buffer.
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||||
"git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
"git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -3,7 +3,7 @@ package prompt
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
"git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||||
runewidth "github.com/mattn/go-runewidth"
|
runewidth "github.com/mattn/go-runewidth"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
|
|
||||||
"git.tcp.direct/tcp.direct/go-prompt/internal/bisect"
|
"git.tcp.direct/Mirrors/go-prompt/internal/bisect"
|
||||||
istrings "git.tcp.direct/tcp.direct/go-prompt/internal/strings"
|
istrings "git.tcp.direct/Mirrors/go-prompt/internal/strings"
|
||||||
runewidth "github.com/mattn/go-runewidth"
|
runewidth "github.com/mattn/go-runewidth"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ func TestDocument_DisplayCursorPosition(t *testing.T) {
|
|||||||
// If you're facing test failure on this test case and your terminal is iTerm2,
|
// If you're facing test failure on this test case and your terminal is iTerm2,
|
||||||
// please check 'Profile -> Text' configuration. 'Use Unicode version 9 widths'
|
// please check 'Profile -> Text' configuration. 'Use Unicode version 9 widths'
|
||||||
// must be checked.
|
// must be checked.
|
||||||
// https://git.tcp.direct/tcp.direct/go-prompt/pull/99
|
// https://git.tcp.direct/Mirrors/go-prompt/pull/99
|
||||||
document: &Document{
|
document: &Document{
|
||||||
Text: "Добрый день",
|
Text: "Добрый день",
|
||||||
cursorPosition: 3,
|
cursorPosition: 3,
|
||||||
|
2
emacs.go
2
emacs.go
@ -1,6 +1,6 @@
|
|||||||
package prompt
|
package prompt
|
||||||
|
|
||||||
import "git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
import "git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ package prompt
|
|||||||
import (
|
import (
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"git.tcp.direct/tcp.direct/go-prompt/internal/term"
|
"git.tcp.direct/Mirrors/go-prompt/internal/term"
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"math/rand"
|
"math/rand"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.tcp.direct/tcp.direct/go-prompt/internal/bisect"
|
"git.tcp.direct/Mirrors/go-prompt/internal/bisect"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Example() {
|
func Example() {
|
||||||
|
@ -3,7 +3,7 @@ package strings_test
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"git.tcp.direct/tcp.direct/go-prompt/internal/strings"
|
"git.tcp.direct/Mirrors/go-prompt/internal/strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleIndexNotByte() {
|
func ExampleIndexNotByte() {
|
||||||
|
@ -214,7 +214,7 @@ func (w *VT100Writer) SetColor(fg, bg Color, bold bool) {
|
|||||||
w.SetDisplayAttributes(fg, bg, DisplayBold)
|
w.SetDisplayAttributes(fg, bg, DisplayBold)
|
||||||
} else {
|
} else {
|
||||||
// If using `DisplayDefualt`, it will be broken in some environment.
|
// If using `DisplayDefualt`, it will be broken in some environment.
|
||||||
// Details are https://git.tcp.direct/tcp.direct/go-prompt/pull/85
|
// Details are https://git.tcp.direct/Mirrors/go-prompt/pull/85
|
||||||
w.SetDisplayAttributes(fg, bg, DisplayReset)
|
w.SetDisplayAttributes(fg, bg, DisplayReset)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
"git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Executor is called when user input something text.
|
// Executor is called when user input something text.
|
||||||
|
@ -3,7 +3,7 @@ package prompt
|
|||||||
import (
|
import (
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
"git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||||
runewidth "github.com/mattn/go-runewidth"
|
runewidth "github.com/mattn/go-runewidth"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
"git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (p *Prompt) handleSignals(exitCh chan int, winSizeCh chan *WinSize, stop chan struct{}) {
|
func (p *Prompt) handleSignals(exitCh chan int, winSizeCh chan *WinSize, stop chan struct{}) {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
"git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (p *Prompt) handleSignals(exitCh chan int, winSizeCh chan *WinSize, stop chan struct{}) {
|
func (p *Prompt) handleSignals(exitCh chan int, winSizeCh chan *WinSize, stop chan struct{}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user