PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] ctrl-d
Date: Saturday, 17 Oct 2020, 08:11:00


    > Message Posted By: Unknown
    >
    > What is the expected output on a ctrl-d while inputting a line?

A CTRL-D when the cursor is in the leftmost column
signals an EOF.

Two CTRL-D's when the cursor is not in the leftmost
column signal an EOF.
=====

    > If I am inputting into line (1): "sdf", and then hit ctrl-d after typing
    > sdf, the output on the staff solution is "(1)$ sdf>> sdf(2)$" in one
    > single line. ...

Two CTRL-D's are requird to exhibit this behavior.
=====

    >         ...  Does our output have to do the same, or does it just need to
    > end gracefully?

Yes, that is the expected output.

--Stan-
PREV INDEX NEXT