[Kst] JS in Kst

Andrew Walker arwalker at sumusltd.com
Thu Dec 1 23:36:49 CET 2005

Is there a way to issue a command from the JS console?
Say I have a plot called P2 and am too lazy to find it
amongst all the other windows and plots. Can I do something
like P2:close() from the JS console, or do I have to write
and open a script to do this?


-----Original Message-----
From: George Staikos [mailto:staikos at kde.org]
Sent: Wednesday, November 30, 2005 2:12 PM
To: kst at kde.org
Subject: Re: [Kst] JS in Kst

On Wednesday 30 November 2005 16:41, Andrew Walker wrote:
> Does any document exist that describes how to the JS Console
> in Kst. What are the valid commands, syntax, etc. Thanks,

  There are exactly three commands:

printf(_T("session\t\tDisplay the name of the session in use\n"));
printf(_T("help\t\tDisplay help\n"));
printf(_T("exit\t\tExit the command-line interpreter\n"));

   Anything else it accepts is considered KstScript, and is documented on

George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/
Kst mailing list
Kst at kde.org

More information about the Kst mailing list