C input functions : where enter data ?

Hi to everybody
I'm just a modest beginner in C learning process, using the Xcode IDE.

Generally speaking, applicatoins which allow the operator to enter text, such as spreadsheet, word processois, etc..display a blinking vertical bar to indicate the place on the screen wherre to enter text.
But, apprently, when using a C input function such as getchar, scanf, there is no blinking vertical bar to indicate to the operator where the text entered will be placed on the screen : thus, I found this way to proceed.
I make a clic at the place on the screen where I suppose I have to enter the text, if the place is correct, a blinking bar appears, if incorrect, no blinkin bar, the text that I enter is displayed on the screen via the echo function, it may be displayed once again if I have introduced adequate printf or putchar functions. A return at the end of the input text relaunches the program.
Is therre another way to proceed ?

Is this problem IDE dependant ?

If you’re building a command-line tool you have two ways to test it:

  • A normal user will run the tool from Terminal, which supports a variety of cursor modes (see Terminal > Preferences > Profiles > Cursor).

  • During debugging you end up relying on the Console pane, which does provide text input but is nowhere near as full-featured as Terminal (in addition to the cursor issue you’ve noted, it doesn’t support advanced terminal options, as used by the

    curses
    library).

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
C input functions : where enter data ?
 
 
Q