chjj / blessed

A high-level terminal interface library for node.js.
Other
11.22k stars 528 forks source link

cwd on terminal #176

Open rosshinkley opened 8 years ago

rosshinkley commented 8 years ago

The terminal defaults to - and is seemingly not changeable from - $HOME. Is there a reason why a cwd option is not included? I feel like I'm missing something obvious.

As an example, I'm thinking of a use case close to the multiplexer example, but instead of having both terminals open to $HOME, having one or both open to an optional cwd option that defaults to $HOME.

ngotchac commented 8 years ago

I agree, but it is still achievable with : bottomleft.pty.write('cd /tmp\n', 'utf8');