adan830 / msys-cn

Automatically exported from code.google.com/p/msys-cn
0 stars 0 forks source link

Rxvt或者MinTTY的缓冲区问题 #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. 打开Rxvt或者MinTTY登录到bash,创建C程序如下:
int main(int argc, char* argv[]){
    int n;
    printf("Please input a number\n");
    scanf("%d", &n);
    printf("The number is %d\n", n);
    return 0;
}
一个最简单的Hello World。:)
2. 编译成可执行程序:
$ gcc -Wall bar.c
3. 运行生成的程序:
$./a.exe

What is the expected output? What do you see instead?
我们期望的输出是,先输出提示信息,然后等待输入,完成��
�输出,程序结束;

而实际的现象是,程序等待输入,完成后才输出

What version of the product are you using? On what operating system?
Windows Xp sp3, Msys-cn绿色包:)

Please provide any additional information below.
相关说明:
如果从cmd中直接运行bash,或者直接在cmd中执行生成的程序,�
��实是按照预期的效果出现的,但只要用Rxvt或者MinTTY做前端��
�就会出现输出被缓存的现象,所以个人认为这应该是Rxvt跟Min
TTY的问题,只是我不知道该怎么设定或者其他,所以就发个Is
sue上来了。
不知道M总还在不在关注这些……

Original issue reported on code.google.com by suxp...@gmail.com on 31 Aug 2010 at 11:53