Home Download Buy Blog Forum Support

Input in Build System

Input in Build System

Postby akshayaurora on Fri Jan 27, 2012 1:04 pm

I've been using Sublime Text for a month now. I want to do everything on Sublime now :).
I have Builds for all the languages I use. The only problem I'm facing is taking input from the user. Is it possible to take input from the console itself?

If not is there any other work around?

If its not within the scope of Sublime Text 2, what parameter should I supply in Sublime Build file, so that it opens the output in cmd.
akshayaurora
 
Posts: 4
Joined: Fri Jan 27, 2012 12:56 pm

Re: Input in Build System

Postby fjl on Fri Jan 27, 2012 2:41 pm

You can implement your build system as a Sublime Text window command and hook it up though the target option.
In the command implementation, any part of the Sublime API can used, including sublime.Window.show_input_panel().
fjl
 
Posts: 36
Joined: Wed Dec 28, 2011 12:41 am


Return to General Discussion

Who is online

Users browsing this forum: Soulsbane, Yahoo [Bot] and 21 guests