Re: [Dev-C++] DELETE/SUPR in ANSI C + Get a char without ENTER
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Sayajin <sa...@if...> - 2001-10-04 12:56:24
|
Borland Builder C++ is the best ! And we have an utility which convert the files projets of Visual to files projets for Builder ! ! ! ----- Original Message ----- From: "Ioannis Vranos" <no...@ya...> To: "Dev-C++" <dev...@li...> Sent: Thursday, October 04, 2001 3:02 PM Subject: RE: [Dev-C++] DELETE/SUPR in ANSI C + Get a char without ENTER > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Albert Vilella Bertran > Sent: Thursday, October 04, 2001 11:49 AM > To: DevC MAILING List > Subject: [Dev-C++] DELETE/SUPR in ANSI C + Get a char without ENTER > > > Hello, > I wonder if anybody knows the "ANSI C" way to: > > (1) Allow the use of "delete" key or "supr" key while you are > writing a long word in a scanf() and you mistype a key. I > always get the "[[3~" symbols and so on. You can always use backspace... > > (2) For 1 character scanf, there is any "ANSI C" way to press > the char and not to need to press ENTER then? This feature is system dependend but on PCs the input stream is cached till the ENTER is pressed so although this behavior is not defined by ANSI, you can't. However you can use system extensions like getche() defined in conio.h. > > Thanks, and yes, I'm a beginner! That's the point we all passed from. :) Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif |