Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1483 closed bug (fixed)

TTY driver doesn't handle all reads correctly.

Reported by: kaoutsis Owned by: bonefish
Priority: normal Milestone: R1
Component: - General Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

The purpose was to read a whole line from the keyboard, using a test-app (attached read_from_stdin.cpp) I have test the test-app in both hrev5 and linux and the result is indeed what i expected: reading a line until enter is pressed. In haiku the behavior is that after reading a single byte, immediately returns. In other words, the test-app is reading only a character and returns. In blocking mode with canonical input processing enabled it should read full lines.

Attachments (1)

read_from_stdin.cpp (512 bytes) - added by kaoutsis 12 years ago.
the source file for the test-app

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by kaoutsis

Attachment: read_from_stdin.cpp added

the source file for the test-app

comment:1 Changed 12 years ago by bonefish

Resolution: fixed
Status: newclosed

Fixed in hrev22357.

comment:2 in reply to:  1 Changed 12 years ago by kaoutsis

Replying to bonefish:

Fixed in hrev22357.

Also the rest of my tests are successful now. Thanks!

Note: See TracTickets for help on using tickets.