1827367 Members
5793 Online
109963 Solutions
New Discussion

Re: Custom Sam hpterm

 
Robert True
Frequent Advisor

Custom Sam hpterm

I have some scustom areas in sam that I wish to display out put from some scripts that have more more formated output that will fit in the 'sam hpterm' that pops open when the icon is clicked. How do you get sam to open a scrollable hpterm that exits in the normal manner, ie: 'Press to continue sam...' without getting ugly.

Is there a way to set the apps-defaults for sam somewhere, or maybe have the custom icon call an hpterm with a -exec option?

Thanks
5 REPLIES 5
Bill Hassell
Honored Contributor

Re: Custom Sam hpterm

I'm not sure where SAM has hpterm as any kind of choice. hpterm is an executable with a lengthy man page for all the options. A scrollable hpterm is enabled with the option:

hpterm -sl 10s

which gives hpterm 10 screens of data to scroll. Other useful options:

-C (show console messages on this window too)

-bg navy -fg white (change colors)

-sb (show the scroll bar on the right

-T "Some title for the title bar and icon label"

-ls (make the hpterm actually login so the shell environment is 'normal')

SO creating an icon with the following run string:

hpterm -C -bg navy -fg white -sl 10s -T "My terminal" -ls

will give you a nice standard window with a dark blue background, 10 additional screens of scrollable memory and a shell that reads profiles at the start.


Bill Hassell, sysadmin
Michael Tully
Honored Contributor

Re: Custom Sam hpterm

This also works quite well for 'dtterm' utilising CDE.
Put this in a simple executable script to run once you have a CDE terminal session open.

vi newhost
dtterm -sl 10s -title newhost -e telnet newhost &
save the file
Run the script
$ ./newhost
Anyone for a Mutiny ?
Robert True
Frequent Advisor

Re: Custom Sam hpterm

Thanks, but I am quite familiar with the options to hpterm and dtterm. My question relates to adding customized apps to sam and getting sam to open a scrollable window. One of the scripts will provide more than a screen of formatted output at times and the support desk needs to see it all. I do not want to make the status report script that sam is running interactive if I can avoid it.

Pete Randall
Outstanding Contributor

Re: Custom Sam hpterm

Hi Robert,

So, you're using SAM's add custom application function, correct? How about using "hpterm -sb -sl 10s -e (fill in your application here) -display $DISPLAY" for the command?

Would that work for you?

Pete

Pete
Dietmar Konermann
Honored Contributor

Re: Custom Sam hpterm

What about checking the box "User Interface supports Graphical Environments". Then you could launch the hpterm with the desired options yourself.

Another possibility would be configuring an X11 resource for hpterm. OK, all hpterms would be affected, nice side effect. Set it with e.g. xrdd, .Xdefaults or use hpterm's app-defaults file.

Hpterm*scrollBar: true

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)