359 Subj : Re: DOS - Limiting Cursor Advancement To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Tue Nov 25 2003 09:25 am Use getch() to read the keyboard input, echoing the output to the screen yourself and positioning the cursor with gotoxy afterwards. In the code where you call gotoxy you can arrange to not position the cursor outside of the 10 character field. The function prototypes for both of the getch and gotoxy functions are in the header file conio.h .. Ed > George Tamero wrote in message > news:3fc2b93b$1@newsgroups.borland.com... > > I was looking for a way to stop the cursor from advancing any > further after say 10 characters were input (but still leave the > cursor able to move back and delete) and do this for DOS > apps. My compiler is Borland C++ 5.02 . 0