Bot releases are hidden (Show)
This is the initial v1.0 release.
See the PR list including all changes below, the latest API is available here.
Published by Tyriar over 3 years ago
IPty.pause()
, IPty.resume()
APIs to pause and resume the socket respectively (#452) via @meganrogge, this can be used to implement flow control by blocking the process outputstring | string[]
(#396) via @TyriarPublished by Tyriar almost 5 years ago
pty.onData(d => console.log(d));
pty.onExit(e => console.log(e.exitCode, e.signal));
cols
and rows
are now exposed on IPty
(#290) via @Tyriar
console.log(pty.cols, pty.rows)
experimental
from name (#365) via @Tyriar
// before
const pty = spawn(file, args, { experimentalUseConpty: true });
// after
const pty = spawn(file, args, { useConpty: true });
PSEUDOCONSOLE_INHERIT_CURSOR
conpty flag with IWindowsPtyForkOptions.conptyInheritCursor
(#309) via @Tyriarnull
as encoding
to use raw buffers (#273, #362) via @anszom, @Tyriarreadonly
(#308) via @Tyriar/usr/*/lib
under libraries (#343) via @deepak1556VWERASE
/VDISCARD
are named differently (#358) via @ThePrezon
event format is now deprecated and will be removed in v1 (#283) via @Tyriar
// deprecated
pty.on('data', d => console.log(d));
// recommended
pty.onData(d => console.log(d));
Published by Tyriar over 5 years ago
IPty.kill
when using ConPTY (#262, #263) via @TyriarPublished by Tyriar almost 6 years ago
Added support on Windows 10 to use the Windows ConPTY API (#236) via @Tyriar, @zadjii-msft. This will be enabled by default if you're on Windows 10 build number 17692+. This is expected to fix many issues on Windows, probably most notably #7 and Microsoft/vscode#57803.
It can be disabled using experimentalUseConpty:
nodePty.spawn(file, args, {
experimentalUseConpty: false
});
Published by Tyriar about 6 years ago
Published by Tyriar about 6 years ago
Published by Tyriar over 6 years ago
Published by Tyriar over 6 years ago
Published by Tyriar almost 7 years ago
Published by Tyriar almost 7 years ago
Terminal.kill
on Windows #160 via @TyriarTerminal.kill
on Windows #160 via @TyriarPublished by Tyriar almost 7 years ago
This release exposes a native
object on the module on Linux and macOS which gives direct access to the native node module backing node-pty. Note that this is not public API and should not be relied upon, it will likely be removed in the future. https://github.com/Tyriar/node-pty/issues/153 via @Tyriar
Published by Tyriar about 7 years ago
Published by Tyriar about 7 years ago
spawn
options are now optional on Windows #115 via @Tyriarpid
is now exposed on ITerminal
in the TS declaration #119 via @TyriarPublished by Tyriar over 7 years ago
Published by Tyriar over 7 years ago
ITerminal
members with jsdoc #107 via @TyriarITerminal.on('data', ...)
or ITerminal.resume()
to resume the stream #99 via @Tyriar, @hexa00on
and other event emitter function to typings #105 via @Tyriar, @rollandjbPublished by Tyriar over 7 years ago
string
) when running shells that contain a space in their path on Windows https://github.com/Tyriar/node-pty/issues/91
Published by Tyriar over 7 years ago
TypeScript type definitions are now correctly linked in the package.json
file.
Published by Tyriar over 7 years ago
Upgraded to [email protected]
Published by Tyriar over 7 years ago
Terminal
constructor to make some common problems more obvious #59cfsetispeed
and cfsetospeed
over cfsetspeed
to cover Solaris #77 via @jerch