fzf/src/tui/dummy.go

47 lines
1.1 KiB
Go
Raw Permalink Normal View History

2017-01-22 05:13:37 +00:00
// +build !ncurses
// +build !tcell
// +build !windows
package tui
type Attr int32
2017-01-22 05:13:37 +00:00
func HasFullscreenRenderer() bool {
return false
}
2017-01-22 05:13:37 +00:00
func (a Attr) Merge(b Attr) Attr {
return a | b
}
const (
AttrUndefined = Attr(0)
AttrRegular = Attr(1 << 7)
AttrClear = Attr(1 << 8)
Bold = Attr(1)
Dim = Attr(1 << 1)
Italic = Attr(1 << 2)
Underline = Attr(1 << 3)
Blink = Attr(1 << 4)
Blink2 = Attr(1 << 5)
Reverse = Attr(1 << 6)
2017-01-22 05:13:37 +00:00
)
func (r *FullscreenRenderer) Init() {}
func (r *FullscreenRenderer) Pause(bool) {}
func (r *FullscreenRenderer) Resume(bool, bool) {}
func (r *FullscreenRenderer) Clear() {}
func (r *FullscreenRenderer) Refresh() {}
func (r *FullscreenRenderer) Close() {}
2017-01-22 05:13:37 +00:00
func (r *FullscreenRenderer) GetChar() Event { return Event{} }
func (r *FullscreenRenderer) MaxX() int { return 0 }
func (r *FullscreenRenderer) MaxY() int { return 0 }
2017-01-22 05:13:37 +00:00
func (r *FullscreenRenderer) RefreshWindows(windows []Window) {}
func (r *FullscreenRenderer) NewWindow(top int, left int, width int, height int, preview bool, borderStyle BorderStyle) Window {
2017-01-22 05:13:37 +00:00
return nil
}