quote:
Originally posted by PHX
quote:
Originally posted by Slim Shady
cause he doesnt want to know when his script is terminated. he wants to risk doing something else and having the script kick back in and CBY him, hehe. i didn't see a good reason to do it, but if EP says "why would you want to" that means, dont do it, heh.
Slim
I am already in the habbit of hitting my kill script button alot anyway so chances of a script doing that to me are almost none. But really, if a script hangs your not gonna see any messages anyway are you! Its just hiding there and the only way to know is to actually check or you see that it has stopped running without a message.
My purpose is that I have scripts running to pull up small information displays, and as Traitor says some of that information gets over written when the script terminates, plus it tends to scroll aother couple lines off the screen of information that I want to see.
Yeah EP that idea is a little more envolved than I want to get. Thanks though.
PHX,
One thing you could try doing is playing around with the ANSI escape codes. Some of them allow you to repostion the text. I use it a ton in one of my scripts.
http://www.dee.ufcg.edu.br/~rrbrandt/tools/ansi.html has a nice list of codes. You will have to experiment to see which ones work best.
The format for entering these codes isn't well documented, but for example, to clear the screen, you would do the following:
echo #27 "[2J"
To move your text up a few lines, you do the following
echo "********hello world"
echo #27 "[9A" ANSI_12 "Hello from up here"
This would move it up 9 lines.
The #27 = Esc
You can do some really interesting things with this. I have a script that totally REPLACES my density scan with a new desity scan that shows things like port types if known, enemy figs, corp figs, etc...
I leave it up to you to figure out if this will help you or not.