JetBrains / jediterm

Pure Java Terminal Emulator. Works with SSH and PTY.
GNU Lesser General Public License v3.0
678 stars 168 forks source link

Any way to set current working directory? #256

Closed pskowronek closed 1 year ago

pskowronek commented 1 year ago

Any way to set current working directory where the shell is about to be launched? I would like to avoid artificially calling "cd /to/sth/else".

G3G4X5X6 commented 1 year ago

image

pskowronek commented 1 year ago

Thanks, but this is only for setting CWD for initial instantiation. I was rather asking how to set/change current working directory for an existing instance of Terminal - sorry if I haven't described it more precisely.

segrey commented 1 year ago

Seems the only way is to write cd /path/to/dir string to shell process input stream.