Lets say I have a simple program :
(pseudocode)
for(i=0;i<1000;i++)
{
print(i + "\n");
sleep(1);
}
Output:
0
1
2
Is there way to view this output in an editor like emacs or Vi as it changes ?
The behaviour I want is like “tail -f” done on a file being continously written to.
In emacs at least, you can open a terminal window and have it at one side. Try M-xansi-termRET. Then you can divide the screen, using the different C-x<number>.