Skip to content

Commit

Permalink
Merge pull request #364 from microsoft/experimental_fc
Browse files Browse the repository at this point in the history
Mark flow control APIs are experimental
  • Loading branch information
Tyriar authored Oct 22, 2019
2 parents 0db311d + 766484c commit b44c429
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions typings/node-pty.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ declare module 'node-pty' {
encoding?: string | null;

/**
* (EXPERIMENTAL)
* Whether to enable flow control handling (false by default). If enabled a message of `flowControlPause`
* will pause the socket and thus blocking the slave program execution due to buffer back pressure.
* A message of `flowControlResume` will resume the socket into flow mode.
Expand All @@ -63,11 +64,13 @@ declare module 'node-pty' {
handleFlowControl?: boolean;

/**
* (EXPERIMENTAL)
* The string that should pause the pty when `handleFlowControl` is true. Default is XOFF ('\x13').
*/
flowControlPause?: string;

/**
* (EXPERIMENTAL)
* The string that should resume the pty when `handleFlowControl` is true. Default is XON ('\x11').
*/
flowControlResume?: string;
Expand Down Expand Up @@ -124,6 +127,7 @@ declare module 'node-pty' {
readonly process: string;

/**
* (EXPERIMENTAL)
* Whether to handle flow control. Useful to disable/re-enable flow control during runtime.
* Use this for binary data that is likely to contain the `flowControlPause` string by accident.
*/
Expand Down

0 comments on commit b44c429

Please sign in to comment.