•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 423,948 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,184 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums
Views: 1088 | Replies: 6
![]() |
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,126
Reputation:
Rep Power: 38
Solved Threads: 929
No, there is no such function. If you want the cursor at the end, use an operating system specific function to move it there after the text is printed.
Last edited by Ancient Dragon : Jan 21st, 2007 at 1:56 pm.
I think it's about time we voted for senators with breasts. After all, we've been voting for boobs long enough. ~Clarie Sargent, Arizona senatorial candidate
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
#include <stdio.h>
int main()
{
printf("Cursor one space back!!!\b");
getchar();
return 0;
}ssharish2005
•
•
Join Date: Oct 2006
Posts: 58
Reputation:
Rep Power: 3
Solved Threads: 0
•
•
•
•
#include <stdio.h> int main() { printf("Cursor one space back!!!\b"); getchar(); return 0; }
ssharish2005
EXACTLY what I was looking for.
Thanks!
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,126
Reputation:
Rep Power: 38
Solved Threads: 929
The backspace erases the character underneath the cursor just like it does when you type it on your keyboard. Is that what you want?
Last edited by Ancient Dragon : Jan 21st, 2007 at 4:07 pm.
I think it's about time we voted for senators with breasts. After all, we've been voting for boobs long enough. ~Clarie Sargent, Arizona senatorial candidate
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
Well, sorry forgot to mention that. It does display the cursor one position back. But the actual internal char is erased. But the char would be displayed. As Ancient Dragon said.
It would be useful if you just wanted to display the out put message but not use that same out message for further manipulation because the string is altered.
ssharish2005
It would be useful if you just wanted to display the out put message but not use that same out message for further manipulation because the string is altered.
ssharish2005
![]() |
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- trim function (ASP)
- Need help writing a function (Visual Basic 4 / 5 / 6)
- how do i keep a blinking cursor on the site? (JavaScript / DHTML / AJAX)
Other Threads in the C Forum
- Previous Thread: Doubly linked circular list
- Next Thread: Actually.. I'm not sure what this is.



Linear Mode