- Cleaned up old tests
- Changed `node:buffer` and `node:streams` imports to native `WebWorkers` imports; - Fixed tests that used old `toPtr` and `fromPtr` functions to use the new NodePointer class methods - Exposed pointer resolution helper functions to the consumer
This commit is contained in:
@@ -34,12 +34,6 @@ shell.on("result", payload => {
|
||||
process.stdout.write("\n" + resolvePointerToHome(payload.state, getCurrentSession(payload.state).cwd) + "\n> ");
|
||||
});
|
||||
|
||||
/*
|
||||
Cant do it like this because commands also use the stdout event right before returning a result so e.g. echo will print twice
|
||||
|
||||
Need to use this only if a continuous process is running
|
||||
*/
|
||||
|
||||
shell.on("stdout", payload => {
|
||||
const decoded = new TextDecoder().decode(payload.data);
|
||||
process.stdout.write(decoded);
|
||||
|
||||
Reference in New Issue
Block a user