[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
 

getchar()



Jeg er ved at lære mig selv C programmering og er nu kommet til følgende
problem:

Jeg vil gerne lave et program sådan at brugeren kan styre forløbet med
enkelte tastetryk. Altså programmet skal kunne hente et tastetryk. Så vidt
jeg forstår diverse man-pages og vejledninger skulle getchar() netop virke
sådan.
Det gør den bare ikke i praxis (på min Redhat 7 installation)
Programmet stopper ved getchar() og venter på, at en hel linie bliver
indtastet. Først derefter kan getchar() hente tastetrykkene enkeltvis
indtil enter, som er kode 10.
????

En anden ting: Findes der ikke en funktion, som uden at stoppe
programudførslen kan returnere oplysning om, hvorvidt brugeren har trykket
på en tast?

mvh
Hans Mårtensson



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 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] *