|
|
 |
 |
 |
 |
ANSI CODES
i am using borland version 3. i am facing problem in executing this instruction for cursor control. printf("\x1B[B"); instead of bringing the cursor down by one row it is showing <-[B on the screen. why?
In article <1180250507.203535.232@g4g2000hsf.googlegroups.com>, <mohdalib @gmail.com> wrote: >i am using borland version 3. i am facing problem in executing this >instruction for cursor control. >printf("\x1B[B"); >instead of bringing the cursor down by one row it is showing <-[B on >the screen. why? \x1B[B is only useful for cursor control if you are using an output device that understands ANSI cursor controls. Whatever you happen to be using doesn't happen to understand those controls. ANSI cursor controls are not part of the C language, so to find out what you need to do to enable them, you will need to ask in a newsgroup specific to your operating system. -- Prototypes are supertypes of their clones. -- maplesoft
mohdalib@gmail.com skrev: > i am using borland version 3. i am facing problem in executing this > instruction for cursor control. > printf("\x1B[B"); > instead of bringing the cursor down by one row it is showing <-[B on > the screen. why?
you can use whatever ide you like, but in order to get support for ANSI codes you have to run you program under shell that's supports it, for example bash
On May 27, 4:36 am, Carramba <u@example.net> wrote: > mohdalib @gmail.com skrev: > > i am using borland version 3. i am facing problem in executing this > > instruction for cursor control. > > printf("\x1B[B"); > > instead of bringing the cursor down by one row it is showing <-[B on > > the screen. why? > you can use whatever ide you like, but in order to get support for ANSI > codes you have to run you program under shell that's supports it, for > example bash
Will it run on UNIX gcc or dev cpp?
Ajinkya wrote: > On May 27, 4:36 am, Carramba <u @example.net> wrote: >> mohdalib @gmail.com skrev: >>> i am using borland version 3. i am facing problem in executing this >>> instruction for cursor control. >>> printf("\x1B[B"); >>> instead of bringing the cursor down by one row it is showing <-[B on >>> the screen. why? >> you can use whatever ide you like, but in order to get support for ANSI >> codes you have to run you program under shell that's supports it, for >> example bash > Will it run on UNIX gcc or dev cpp?
The compiler is irrelevant, it's the display device that matters. -- Ian Collins. |
 |
 |
 |
 |
|