You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reading from stdin via dos.Read doesn't work as expected.
A read of 10 bytes should block until Return is pressed (newline). Instead it blocks until at least 10 bytes are inserted.
Also dos.Write seems to buffer to stdout. Also newline doesn't flush.
Testcode:
#include <stdio.h>
int main() {
char buf[100];
int s;
do {
s = read(0,buf,10);
buf[s] = 0;
printf("l=%ld '%s'\n",s,buf);
} while (buf[0] != 3);
}
At would also very appreciated if dos.SetMode could be implemented to switch a terminal to raw mode.
The text was updated successfully, but these errors were encountered:
I see your point. This type of handling requires to model some "handler-like" interface in vamos and an implementation for a console handler. I have this topic on my todo list and I keep the ticket around until its done.
BTW, I have the impression that this was different in older releases of vamos. Maybe it changed with the migration to Python3?
At least it is very annoying because you won't get continuesly output from any commands executed directly by vamos.
Reading from stdin via dos.Read doesn't work as expected.
A read of 10 bytes should block until Return is pressed (newline). Instead it blocks until at least 10 bytes are inserted.
Also dos.Write seems to buffer to stdout. Also newline doesn't flush.
Testcode:
At would also very appreciated if dos.SetMode could be implemented to switch a terminal to raw mode.
The text was updated successfully, but these errors were encountered: