Skip to content

Commit

Permalink
Merge pull request #14 from glennliao/main
Browse files Browse the repository at this point in the history
addon support custom writeToTerminal/sendToServer
  • Loading branch information
lonnywong authored Jan 6, 2024
2 parents 04cc8a7 + c6f7b74 commit 93a0dfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/addon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export class TrzszAddon implements ITerminalAddon {
this.socket.send(data);
};
this.trzsz = new TrzszFilter({
writeToTerminal: writeToTerminal,
sendToServer: sendToServer,
writeToTerminal: this.options.writeToTerminal || writeToTerminal,
sendToServer: this.options.sendToServer || sendToServer,
chooseSendFiles: this.options.chooseSendFiles,
chooseSaveDirectory: this.options.chooseSaveDirectory,
terminalColumns: terminal.cols,
Expand Down

0 comments on commit 93a0dfe

Please sign in to comment.