25.4 ttread (8535)

8541:

Check that the terminal is logically active;

8543:

If there are characters in the “cooked” input queue or a call on “canon” (8274) is successful ...

8544:

transfer characters from the “cooked” input queue until either it is empty or enough characters have been transferred to suit the user’s requirements.