github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/engine/pkg/term/windows/deprecated.go (about)

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