conpty

package module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2020 License: BSD-3-Clause Imports: 0 Imported by: 1

README

termtest/conpty

Support for the Windows pseudo console in Go.

Developed as part of the cross-platform terminal automation library expect for the ActiveState state tool.

Example

See ./cmd/example/main.go

Client configuration

On Windows, you may have to adjust the programme that you are running in the pseudo-console, by configuring the standard output handler to process virtual terminal codes. See https://docs.microsoft.com/en-us/windows/console/setconsolemode

This package comes with a convenience function InitTerminal() that you can use in your client to set this option.

Documentation

Overview

Package conpty provides functions for creating a process attached to a ConPTY pseudo-terminal. This allows the process to call console specific API functions without an actual terminal being present.

The concept is best explained in this blog post: https://devblogs.microsoft.com/commandline/windows-command-line-introducing-the-windows-pseudo-console-conpty/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTerminal

func InitTerminal(_ bool) (func(), error)

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL