Hi Tobias, thanks for pointing this out. Dne 5. dubna 2012 4:33 Tobias Börtitz <[email protected]> napsal(a): > ... and maybe I should have thought about this a little bit longer. > Because on second sight scanning for retrieved modkeys would make much more > sense in the fread function itself. What do you think? I see one problem - this implementation skips all zeroes in *any* file. There has to be at least condition whether we read stdin.
But I think that this shall be implemented rather in the console server. This server has two interfaces - a file (where it communicates with VFS) and a special console interface. For the file interface (namely VFS_OUT_READ), special characters might be skipped while they would be returned via the special console interface (namely CONSOLE_GET_EVENT message). - Vojta > > Tobias > > p.s.: I forgot to add a subject for the last email. Sorry for that. > > > 2012/4/5 Tobias Börtitz <[email protected]> >> >> Hey everyone, >> >> while writing my last patch for the cp module i stumbled upon an >> strange behavior. >> The fgetc function even returned when simply pressing a modkey (e.g. >> Control, Shift, Alt, Escape). In my eyes this is unwanted behavior because >> fgetc is (e.g.) used in the fgets function where those keys aren't supposed >> to produce any input at all. >> So I wrote a small patch for this issue and here it is. >> If my assumption should be false, you are welcome to correct me :-) >> >> Cheers >> Tobias >> >> _______________________________________________ >> HelenOS-devel mailing list >> [email protected] >> http://lists.modry.cz/cgi-bin/listinfo/helenos-devel >> > > > _______________________________________________ > HelenOS-devel mailing list > [email protected] > http://lists.modry.cz/cgi-bin/listinfo/helenos-devel > _______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/cgi-bin/listinfo/helenos-devel
