我想在emacs中使用powershell,但似乎emacs中的powershell是块缓冲的。例如,当我编写这样一个简单的C程序时:如何在Windows emacs中为powershell进行行缓冲
int main()
{
printf("input the number of a value: \n");
scanf("%d", &num);
}
我编译它并使它在emacs下的Powershell中运行。直到我输入一个数字并输入Enter
,它才会打印出行input the number of a value:
。 c程序在emacs之外的powershell中运行良好。我的问题是如何运行emacs中缓冲的PowerShell产品线?
编辑我使用Powershell.el
当我在'fscanf'之前'fflush'时,它会刷新两次,并且有两个完全相同的输出。 – toolchainX