Hi,
what is the best way to detect whether only DIALOG1 is available or DIALOG2?
Up to now I would do this by checking whether the shell variable DIALOG_1 is set. If yes I can use DIALOG2 features, if not I have to use DIALOG1 syntax.
But I do not know whether there will be a change in the near future?
Thanks, --Hans
On 29 Apr 2008, at 10:46, Hans-Joerg Bibiko wrote:
what is the best way to detect whether only DIALOG1 is available or DIALOG2?
Up to now I would do this by checking whether the shell variable DIALOG_1 is set. If yes I can use DIALOG2 features, if not I have to use DIALOG1 syntax.
Just for the archive, we talked briefly about this on IRC, and there is no real good way, but testing for the presence of the DIALOG_1 variable at least works for now.
On 29/04/2008, Hans-Joerg Bibiko bibiko@eva.mpg.de wrote:
Hi,
what is the best way to detect whether only DIALOG1 is available or DIALOG2?
I've been using ENV['DIALOG'] =~ /_2$/
But I do not know whether there will be a change in the near future?
Perhaps we could add a method to TextMate::UI, so we can just update the implementation if anything changes.
Thanks,
--Hans
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate