[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OT: c++ eof() function in gcc
- To: parasol(at-nospam)mail.com (Ishai Parasol)
- Subject: Re: OT: c++ eof() function in gcc
- From: Shaul Karl <shaulka(at-nospam)bezeqint.net>
- Date: Tue, 31 Oct 2000 08:19:40 +0200
- Cc: linux-il(at-nospam)linux.org.il, gmendelson(at-nospam)bfr.co.il
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-reply-to: "Message from Geoffrey S. Mendelson" <gsm@bfr.co.il>"of Mon, 30 Oct 2000 19:37:25 +0200." <200010301737.TAA31769@nardis.bfr.co.il>
- References: <200010301737.TAA31769@nardis.bfr.co.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
Isn't Ctrl+D the equivalent UNIX function for DOS's Ctrl+Z?
(Unless you explicitly changed it. Is this done by stty?)
> Ishai Parasol wrote:
>
> > It's a bit off topic so answer me privatly please.
>
> Actually it's right on topic.
>
> > I know that in other c++ compilers (other than gcc) the keyboard input for
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ *
>
> > cin.eof() is Ctrl+Z. But when i compile a program with g++ and run it,
> > Ctrl+Z only stops the program. Do you know how I actually activate this
> > function ?
>
>
> Your shell is catching the control z first. Look at man stty under susp.
> (suspend character)
>
> * any c++ library would have the same effect under Linux.
>
> Geoff.
>
> --
> Geoffrey S. Mendelson
> Tel: (03) 6944-211 Fax: (03) 6944-225 Email: gmendelson@bloomberg.com
>
>
> =================================================================
> To unsubscribe, send mail to linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
>
--
Shaul Karl <shaulka@bezeqint.net>
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il