# Grc hardcoded to use xterm as a terminal emulator?

**URL:** <https://www.ruby-forum.com/t/grc-hardcoded-to-use-xterm-as-a-terminal-emulator/214713>\
**Category:** GNU Radio\
**Created:** [December 9, 2011, 8:43pm UTC](https://www.ruby-forum.com/t/grc-hardcoded-to-use-xterm-as-a-terminal-emulator/214713 "2011-12-09T20:43:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [December 9, 2011, 8:43pm UTC](https://www.ruby-forum.com/t/grc-hardcoded-to-use-xterm-as-a-terminal-emulator/214713/1 "2011-12-09T20:43:31Z")

</div>

Hi,

I just noticed that grc/python/Generator.py is hardcoded to use xterm as  
a terminal emulator. This is somewhat problematic [1] for me so I’d like  
to make it configurable, how would you rather see that done? Would  
adding a new option (like “no\_gui\_terminal\_emulator”) to the flowchart  
be too messy?

[1] xterm in ubuntu lucid is still sgid=utmp which causes it to drop  
LD\_LIBRARY\_PATH which I need since I’ve installed gnuradio to a  
temporary location. xterm also does not support pretty scrollbars that  
my users expect and does not support [freedesktop.org](http://freedesktop.org) style clipboard  
behavior ([http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588785](http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588785))  
unless I tell them to start xclipboard separately and then tell them to  
add some X resources…

---

<div class="post-metadata">

**Author:** ![Timo\_Juhani\_Lindfor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@Timo\_Juhani\_Lindfor](https://www.ruby-forum.com/u/Timo_Juhani_Lindfor)\
**Post date:** [December 9, 2011, 9:01pm UTC](https://www.ruby-forum.com/t/grc-hardcoded-to-use-xterm-as-a-terminal-emulator/214713/2 "2011-12-09T21:01:26Z")

</div>

On 12/09/2011 02:42 PM, Timo Juhani Lindfors wrote:

> Hi,
> 
> I just noticed that grc/python/Generator.py is hardcoded to use xterm as  
> a terminal emulator. This is somewhat problematic [1] for me so I’d like  
> to make it configurable, how would you rather see that done? Would  
> adding a new option (like “no\_gui\_terminal\_emulator”) to the flowchart  
> be too messy?

Use an environment variable?

There’s already a GRC “prefs” support for the Gnu Radio preferences file  
that’s  
normally located in:

~/.gnuradio/config.conf

And …/grc/python/Constants.py already extracts a value for ‘doc\_dir’  
from the Gnu Radio  
preferences file. That would seem to be a good potential place to do  
that work.

> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

–  
Marcus L.  
Principal Investigator  
Shirleys Bay Radio Astronomy Consortium

> **[Live Draw HK Tercepat | Result HK | HK Pools | Live HK | HK Prize Hari Ini](https://www.sbrac.org)**
>
> Temukan live draw hk tercepat melalui halaman hk pools yang resmi dan dapatkan result hk prize melalui live hk secara langsung di situs kami.
