bug? tty speed of xterm

Victor Stepanov victors@dpi.ru
Thu Jan 9 15:00:00 GMT 2003


Hello,

Here is small program that reports terminal speed. The result for xterm
is 0, rxvt & windows shell is 15. Is this a bug?

<---- term.c ---->
#include <termios.h>
#include <stdio.h>

main()
{
struct termios raw_tty;
speed_t s;
  tcgetattr(0, &raw_tty);
  s = cfgetospeed(&raw_tty);
  printf("%d\n",s);
  return 0;
}
<---- end ---->

Thank you

V.



More information about the Cygwin-xfree mailing list