kr / hk

Fast Heroku client
https://hk.heroku.com/
77 stars 6 forks source link

Adding terminal env to attached run processes #10

Closed danp closed 12 years ago

danp commented 12 years ago

Trying to add TERM/COLUMNS/LINES to the env for attached run processes but getting stuck running tput. Here's my branch.

tput seems to run ok but is always returning 80/24. Not sure what I'm missing as far as running that the same way the heroku gem does.

Halp?

kr commented 12 years ago
c.Stdin = os.Stdin

Try setting stdout instead of (or in addition to) stdin?

kr commented 12 years ago

Ah, never mind, that makes no sense.

kr commented 12 years ago

Fixed in b9d52267ba0ea205619ec53e22f03e96d8e2b25e and 07e3704ad17b38523ac4e1079d2595a9812a5147. Needed to use stderr instead of stdin.

danp commented 12 years ago

Nice, thanks!