[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] stty fails in babel sh blocks, workaround?
From: |
George Jones |
Subject: |
[O] stty fails in babel sh blocks, workaround? |
Date: |
Wed, 08 Apr 2015 10:45:59 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
I'm running some programs that expect to be able to get terminal
settings via (python fragment):
ioctl(1, termios.TIOCGWINSZ, ' '*8))ioctl(1, termios.TIOCGWINSZ, ' '*8))
however, sh code run under babel appears not to have the terminal device
that's expected:
----------------------------nostty.org----------------------------
* No stty in babel
#+BEGIN_SRC sh :results output :exports both
exec 2>&1; date; set -e; # set -x;
stty || true
#+END_SRC
#+RESULTS:
: Wed Apr 8 10:33:33 EDT 2015
: stty: standard input: Inappropriate ioctl for device
------------------------------------------------------------------
I realize this is probably inherent to the design/the way babel works,
but are there any workaround (creating fake terminals, etc)?
Thanks,
---George Jones
- [O] stty fails in babel sh blocks, workaround?,
George Jones <=