github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/pkg/term/windows/deprecated.go (about)

     1  // +build windows
     2  
     3  // Package windowsconsole implements ANSI-aware input and output streams for use
     4  // by the Docker Windows client. When asked for the set of standard streams (e.g.,
     5  // stdin, stdout, stderr), the code will create and return pseudo-streams that
     6  // convert ANSI sequences to / from Windows Console API calls.
     7  //
     8  // Deprecated: use github.com/moby/term/windows instead
     9  package windowsconsole // import "github.com/demonoid81/moby/pkg/term/windows"
    10  
    11  import (
    12  	windowsconsole "github.com/moby/term/windows"
    13  )
    14  
    15  var (
    16  	// GetHandleInfo returns file descriptor and bool indicating whether the file is a console.
    17  	// Deprecated: use github.com/moby/term/windows.GetHandleInfo
    18  	GetHandleInfo = windowsconsole.GetHandleInfo
    19  
    20  	// IsConsole returns true if the given file descriptor is a Windows Console.
    21  	// The code assumes that GetConsoleMode will return an error for file descriptors that are not a console.
    22  	// Deprecated: use github.com/moby/term/windows.IsConsole
    23  	IsConsole = windowsconsole.IsConsole
    24  
    25  	// NewAnsiReader returns an io.ReadCloser that provides VT100 terminal emulation on top of a
    26  	// Windows console input handle.
    27  	// Deprecated: use github.com/moby/term/windows.NewAnsiReader
    28  	NewAnsiReader = windowsconsole.NewAnsiReader
    29  
    30  	// NewAnsiWriter returns an io.Writer that provides VT100 terminal emulation on top of a
    31  	// Windows console output handle.
    32  	// Deprecated: use github.com/moby/term/windows.NewAnsiWriter
    33  	NewAnsiWriter = windowsconsole.NewAnsiWriter
    34  )