In article <20030210140917.Z7389@snowdrop.l8s.co.uk>, David Laight <david@l8s.co.uk> writes: > + if (ioctl(1, TIOCGWINSZ, &win) != -1) { Please use "STDOUT_FILENO" instead of "1". Kind regards -- Matthias Scheler http://scheler.de/~matthias/