@xterm/headless 5.4.0-beta.9 → 5.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xterm/headless",
3
3
  "description": "A headless terminal component that runs in Node.js",
4
- "version": "5.4.0-beta.9",
4
+ "version": "5.5.0-beta.1",
5
5
  "main": "lib-headless/xterm-headless.js",
6
6
  "types": "typings/xterm-headless.d.ts",
7
7
  "repository": "https://github.com/xtermjs/xterm.js",
@@ -718,6 +718,18 @@ declare module '@xterm/headless' {
718
718
  */
719
719
  onTitleChange: IEvent<string>;
720
720
 
721
+ /**
722
+ * Input data to application side. The data is treated the same way input
723
+ * typed into the terminal would (ie. the {@link onData} event will fire).
724
+ * @param data The data to forward to the application.
725
+ * @param wasUserInput Whether the input is genuine user input. This is true
726
+ * by default and triggers additionalbehavior like focus or selection
727
+ * clearing. Set this to false if the data sent should not be treated like
728
+ * user input would, for example passing an escape sequence to the
729
+ * application.
730
+ */
731
+ input(data: string, wasUserInput?: boolean): void;
732
+
721
733
  /**
722
734
  * Resizes the terminal. It's best practice to debounce calls to resize,
723
735
  * this will help ensure that the pty can respond to the resize event