[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] læse et enkelt tastetryk fra tasteturet i java



On Thu, 14 Jul 2005 21:30:07 +0200, Siemen Baader wrote:

> 
> En anden mulighed jeg har set på nettet er at pille ved terminalen, så
> getchar() opfører sig som getch() og så resette konfigurationen, når
> programmet afsluttes. Den er jeg lidt betænkelig ved, for hvad nu hvis
> brugeren afslutter programmet med ctrl-c eller endda kill inden da?
> Ødelægger det så ikke konsollens opsætning?
>
Kan du ikke installere en signal handler, der fanger sigint, sigquit,
sigabrt, sigkill og sigterm? man 7 signal

> Så: Er der en mere elegant måde at læse et enkelt tegn fra tastaturet
> i java?
Den korte: Nej.

-- 
Hilsen/Regards
Michael Rasmussen
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *