-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,851 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ tmp/ | |
mew/ | ||
node_modules | ||
test/mini-ci | ||
crash-server | ||
crash-server | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
文件`package.nw/js/libs/vseditor/bundled/editor.bundled.js` | ||
|
||
使用`console.warn`进行调试输出 | ||
|
||
`this._processManager.createProcess(this._shellLaunchConfig,this._cols,this._rows,this._accessibilityService.isScreenReaderOptimized())` | ||
|
||
在`const s=await this._process.start();`处崩溃 | ||
|
||
`setupPtyProcess`崩溃 | ||
|
||
const test = (await Promise.resolve().then(()=>i(1645))) | ||
i ---- Array | ||
[ | ||
"spawn" | ||
"fork" | ||
"createTerminal" | ||
"open" | ||
"native" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
// 使用 IntelliSense 了解相关属性。 | ||
// 悬停以查看现有属性的描述。 | ||
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "nwjs", | ||
"request": "launch", | ||
"name": "Launch NWjs", | ||
"nwjsVersion": "0.60.0", | ||
"webRoot": "${workspaceFolder}", | ||
"reloadAfterAttached": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Hello World!</title> | ||
</head> | ||
<body> | ||
<h1>Hello World!</h1> | ||
We are using node.js 9999 | ||
<script> | ||
document.write(process.version) | ||
console.log(123) | ||
|
||
var os = require('os'); | ||
var pty = require('node-pty'); | ||
|
||
var shell = os.platform() === 'win32' ? 'powershell.exe' : 'bash'; | ||
console.log(456) | ||
var ptyProcess = pty.spawn(shell, [], { | ||
name: 'xterm-color', | ||
cols: 80, | ||
rows: 30, | ||
cwd: process.env.HOME, | ||
env: process.env | ||
}); | ||
|
||
ptyProcess.onData(function(data) { | ||
process.stdout.write(data); | ||
}); | ||
|
||
ptyProcess.write('ls\r'); | ||
ptyProcess.resize(100, 40); | ||
ptyProcess.write('ls\r'); | ||
</script>. | ||
<script scr=index.js></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
console.log("index.js") | ||
var os = require('os'); | ||
var pty = require('node-pty'); | ||
|
||
console.info(process.versions) | ||
var shell = os.platform() === 'win32' ? 'powershell.exe' : 'bash'; | ||
|
||
var ptyProcess = pty.spawn(shell, [], { | ||
name: 'xterm-color', | ||
cols: 80, | ||
rows: 30, | ||
cwd: process.env.HOME, | ||
env: process.env | ||
}); | ||
|
||
ptyProcess.onData(function(data) { | ||
process.stdout.write(data); | ||
}); | ||
|
||
ptyProcess.write('ls\r'); | ||
ptyProcess.resize(100, 40); | ||
ptyProcess.write('ls\r'); |
Oops, something went wrong.
4b427c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#4