Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

C Programming Language

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.

Ajinkya wrote:
> 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?

gcc compiles, it doesn't run things.  We won't mention cpp further
here.  There is a separate Usenet newgroup (c++) for that.

--
 <http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
 <http://www.securityfocus.com/columnists/423>
 <http://www.aaxnet.com/editor/edit043.html>
 <http://kadaitcha.cx/vista/dogsbreakfast/index.html>
                        cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc