Properties of the shell for nrngui

Particularly useful chunks of hoc and/or NMODL code. May be pedestrian or stunningly brilliant, may make you gasp or bring tears to your eyes, but always makes you think "I wish I had written that; I'm sure going to steal it."
Post Reply
kstadler

Properties of the shell for nrngui

Post by kstadler » Fri Nov 13, 2009 5:58 am

Hi,

the position of the neuron shell can be changed by setting the geometry option for rxvt

-geometry HxW+L+T

at \lib\neuron.sh

H(eigth) and W(idth) are given in terms of number of characters and L(eft) and T(op) appear to be expressed in screen pixels.

By the way: by setting -fg / -bg it is possible to change foreground and background colour.

So, a shell window starting below the NeuronMainMenu at the upper left corner in white on black reads as
rxvt -fn 16 -fg white -bg black -sl 1000 -geometry 70x24+0+75 -e nrniv $*

Hope, someone finds it useful
Konstantin

ted
Site Admin
Posts: 5623
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Properties of the shell for nrngui

Post by ted » Fri Nov 13, 2009 3:01 pm

Nice tip, Konstantin. You can also change the appearance of the terminal created by the "rxvt sh" icon by editing the command associated with the icon (in english MicroSoft calls this the "target" string). For example, the default string for NEURON 7.0 is
C:\nrn70\bin\rxvt.exe -fn 16 -fg black -bg white -sl 1000 -e c:\nrn70\bin\bash --rcfile c:\nrn70\lib\bshstart.sh -i
and changing it to
C:\nrn70\bin\rxvt.exe -fn 16 -fg blue -bg white -sl 1000 -geometry 90x35+20+30 -e c:\nrn70\bin\bash --rcfile c:\nrn70\lib\bshstart.sh -i
gives a wider and taller area with blue text on white background.

Post Reply