我想在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