[arm/master] Restricting the TERM to be xterm

commit b2c2568479105e38ea632e8c9f0525019699005a Author: Damian Johnson <atagar@torproject.org> Date: Fri Jun 14 08:39:23 2013 -0700 Restricting the TERM to be xterm The curses module evidently can't handle a TERM of rxvt-unicode-256color... atagar@morrigan:~/Desktop/arm$ TERM=rxvt-unicode-256color arm Traceback (most recent call last): File "./src/starter.py", line 464, in <module> cli.controller.startTorMonitor(time.time() - initTime) File "/home/atagar/Desktop/arm/src/cli/controller.py", line 564, in startTorMonitor curses.wrapper(drawTorMonitor, startTime) File "/usr/lib/python2.7/curses/wrapper.py", line 46, in wrapper stdscr.keypad(0) UnboundLocalError: local variable 'stdscr' referenced before assignment Caught by Lunar^ on... https://trac.torproject.org/9064 --- arm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arm b/arm index 0a23aaa..040ef4b 100755 --- a/arm +++ b/arm @@ -9,6 +9,8 @@ else arm_base=$( dirname "$0" )/src/ fi +TERM=xterm # other terms, like rxvt-unicode-256color, can cause curses to fail + python "${arm_base}prereq.py" $* if [ $? = 0 ]; then
participants (1)
-
atagar@torproject.org