source: trunk/synergy/birdhacks/getkey.c@ 2769

Last change on this file since 2769 was 2769, checked in by bird, 19 years ago

messing about.

File size: 628 bytes
Line 
1/* $Id: $ */
2/** @file
3 *
4 * getkey - reads from standard in and prints what we get.
5 *
6 * Copyright (c) 1997-2006 knut st. osmundsen <bird@anduin.net>
7 *
8 * GPL
9 *
10 */
11
12/*******************************************************************************
13* Header Files *
14*******************************************************************************/
15#include <stdio.h>
16
17int main()
18{
19 for (;;) {
20 char ch;
21 int cch = read(0, &ch, 1);
22 printf("ch=%02x (%03d) cch=%d\n", ch, ch, cch);
23 fflush(stdout);
24 }
25}
26
Note: See TracBrowser for help on using the repository browser.