Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes between Version 6 and Version 7 of GetchGetcharExample

Show
Ignore:
Author:
Eljay (IP: 173.17.180.78)
Timestamp:
03/01/09 21:50:18 (12 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GetchGetcharExample

    v6 v7  
    2929            k = getchar(); 
    3030        } 
     31        version(OSX) { 
     32            // Unfortunately, merely using getchar() does not disable stdin and readline buffering. 
     33            writef("Press key (follow with return): %d\t", i); 
     34            k = getchar(); 
     35        } 
    3136        writef("[%s]\t", k);    /* print the character pressed */ 
    3237 
    4348Changed 2004-06-01: Added an untested Linux version based on a suggestion ([http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=2383 digitalmars.D/2383]). 
    4449 
     50Changed 2009-03-01: Added a tested OS X version, based on dmd now available for OS X 10.5 (both D 1.0 and D 2.0 alpha).