Almenon / Almenon/AREPL-vscode

add arepl terminal

オープン
#282 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement help wanted misc
主要言語
TypeScript
スター
301
フォーク
46
PR マージ指標
30日以内にマージされた PR はありません

説明

# 1.39 release notes:

**Extension terminal API**
The extension terminal API has been finalized, allowing an extension to react to terminal input and fully control its output. The following creates an extension terminal and prints 'Hello world' in red on startup:

```typescript
const writeEmitter = new vscode.EventEmitter();
const pty: vscode.Pseudoterminal = {
onDidWrite: writeEmitter.event,
open: () => writeEmitter.fire('\x1b[31mHello world\x1b[0m'),
close: () => {}
};
```
vscode.window.createTerminal({ name: 'My terminal', pty });
See the [API reference](https://code.visualstudio.com/api/references/vscode-api) and the [extension-terminal-sample](https://github.com/microsoft/vscode-extension-samples/tree/master/extension-terminal-sample) for more details.

---

It would be cool to have a python terminal for users to try out code after a arepl run. This feature is pretty similar to #$end functionality so it's low priority unless I get a lot of +1's on this issue.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。