Re: stdout from lisp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



saulgoode@xxxxxxxxxxxxxx wrote:
Output from Script-fu can be sent to "stdout" by first performing a:

  (gimp-message-set-handler 1)

The Procedure Browser shows that the arguments '1' has an equivalent (C style) name of GIMP_CONSOLE. In Script-Fu you remove the leading GIMP_ from named constants shown in the Procedure Browser and change any remaining _ to -. That would mean you could use

(gimp-message-set-handler CONSOLE)

which has the extra benefit of being more readable. You don't have to go back to the procedure browser to find out what the 1 means.

Just a suggestion to use the named constants where available to make the scripts a little more readable, save some trips back to the procedure browser which should make any needed debugging a little less tedious.

--
Cheers!

Kevin.

http://www.interlog.com/~kcozens/ |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172        |"Same thing we always do, Pinkutus:
                                  |  Try to assimilate the world!"
#include <disclaimer/favourite>   |              -Pinkutus & the Borg
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux