Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.albasani.net!.POSTED!not-for-mail From: Jan Burse Newsgroups: comp.lang.java.programmer Subject: Making System.in interruptible, how? Date: Tue, 21 Feb 2012 15:18:15 +0100 Organization: albasani.net Lines: 11 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net stENdJ+14W1rFCKMS3WcgCFTS0OQXoswdRuWLjmYVeZVvcKtKFtdikOj97LFXReuTpmq3TMk7QuVu+FdHPvPVPxQwGogR1/fLEHgmHFrbyz7fcuL1PDtOxxQ0EH4NUYv NNTP-Posting-Date: Tue, 21 Feb 2012 14:18:15 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="phNQ0PF/LXFk9xaTmJnJs4hBOqX22esWtgaB1Hj+V0JqKNPLIu5FZPjYAkX5406oRBqr7o5npGzgFX+WN3VmkAbhnL+XurcatmbNnZlYxB5TdvNQeTNHDeLs4Ym3uFfJ"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Firefox/10.0.2 SeaMonkey/2.7.2 Cancel-Lock: sha1:43bk1YFw9H5WHpuLcp/Hd2LnYC8= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:12231 Dear All, Found the following nice article, highlighting how it would be possible to make System.in interrupible: http://www.javaspecialists.eu/archive/Issue153.html Is this the preferred way to do? i.e. to use some polling, or are there other ways around? Best Regards