Changes between Version 6 and Version 7 of GetchGetcharExample
- Timestamp:
- 03/01/09 21:50:18 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GetchGetcharExample
v6 v7 29 29 k = getchar(); 30 30 } 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 } 31 36 writef("[%s]\t", k); /* print the character pressed */ 32 37 43 48 Changed 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]). 44 49 50 Changed 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).