firebird sources fgets input line. it is necessary that when calling a function in the console a string has already been entered that the user can edit. I myself have not yet caught up. Prompt the method, well, or another way of reading that will allow to perform this functionality. The ability to respond to the console by pressing the tab key is welcomed, for example, the user has moved the cursor to the right place and pressed TAB immediately ends input, and we get a string from the console and the cursor position. thank
\nwithout\r- then the cursor "runs" at the beginning, then we write so much that the cursor would remain in the place where it was (cross platform). - nick_n_a