473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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?

May 27 '07 #1
5 1880
In article <11**********************@g4g2000hsf.googlegroups. com>,
<mo*********@gmail.comwrote:
>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
May 27 '07 #2
mo*********@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
May 27 '07 #3
On May 27, 4:36 am, Carramba <u...@example.netwrote:
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?

May 27 '07 #4
Ajinkya wrote:
On May 27, 4:36 am, Carramba <u...@example.netwrote:
>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.
May 27 '07 #5
Ajinkya wrote:
Carramba <u...@example.netwrote:
>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

May 28 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: RoSsIaCrIiLoIA | last post by:
I a poor beginner defy this NG to write an ANSI-C portable int readint(FILE* fp); better of my in the treatment of a stream ______________ #include <stdio.h> #include <assert.h> #include ...
8
by: Kaz | last post by:
Hi, there. I had no problem using escape sequence such as printf( "\x1b[2J" ); for clearing screen before I started to use Windows XP. Ever since I started to used XP, I have trouble using this...
2
by: Martín Marconcini | last post by:
Hello there, I'm writting (or trying to) a Console Application in C#. I has to be console. I remember back in the old days of Cobol (Unisys), Clipper and even Basic, I used to use a program...
11
by: LucaJonny | last post by:
Hi, I've got a problem using StreamReader in VB.NET. I try to read a txt file that contains extended characters and theese are removed from the line that is being read. I've read a lot of...
2
by: gizmo | last post by:
Hi, Here's a little hack I put together to try to get to the bottom of a problem I'm having with trying to base64 encode a hash value. The hash value contains character codes 135 and 130...
10
by: Michael B. Trausch | last post by:
Alright... I am attempting to find a way to parse ANSI text from a telnet application. However, I am experiencing a bit of trouble. What I want to do is have all ANSI sequences _removed_ from...
65
by: Leslie Kis-Adam | last post by:
Hi everyone! Does anyone know, if it is possible to clear the screen in ANSI C? If it is,then how? Any help would be appreciated. Laszlo Kis-Adam <dfighter_AT-NOSPAM_freemail.hu
127
by: bz800k | last post by:
Hi Does this code satisfy ANSI C syntax ? void function(void) { int a = 2; a = ({int c; c = a + 2;}); /* <<-- here !! */ printf("a=%d\n", a);
7
by: bkisa | last post by:
i m having problems with sorting arrays related to each others. i m reading the inputs from a file named input.txt and it is structured like 30 67 12 799 1 555 ... and its length i not defined...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.