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 "\x1b
sequence. I modified config.nt and it seems ansi.sys is sitting in the
memory area.However, it does work right.
Could anyone please let me know how to make this escape sequence work
on XP? Or do I have to boot XP up with DOS mode? Or is my compiler not
good? I use Borland C++ compiler 5.5.
I appreciate your help.
Kaz 8 7243
Kaz wrote: 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 "\x1b sequence. I modified config.nt and it seems ansi.sys is sitting in the memory area.However, it does work right. Could anyone please let me know how to make this escape sequence work on XP? Or do I have to boot XP up with DOS mode? Or is my compiler not good? I use Borland C++ compiler 5.5.
I appreciate your help.
This is nothing to do with C, it looks like the required escape-codes
have changed, but I don't know much about this. Ask one of the
Windows-specific newsgroups.
--
Simon Richard Clarkstone
s.************@durham.ac.uk / s***************@hotmail.com
Eye half a spelling chequer / It came with my pea sea. /
It plane lee Marx for my reef-ewe / Miss takes eye can knot sea. ka********@yahoo.co.jp (Kaz) wrote in message news:<60**************************@posting.google. com>...
comp.lang.c is devoted to the C programming language as defined by the
ISO standard. Windows-XP and ansi.sys are not part of the C programming
language consequently your post is off topic. I suggest you try a
Windows-XP news group. I had no problem using escape sequence such as printf( "\x1b[2J" ); for clearing screen before I started to use Windows XP.
I suspect you will have to use a system call of some sort.
<snip>
--
Nick Keighley
try using a true dos compiler like pacific c or turbo c++ 1.01 fo
example and it may work
-
MarcSmit
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------
MarcSmith <Ma**************@mail.codecomments.com> wrote in
news:1101281787.9vjonmyBk6HR3kHnY65PXg@tng: try using a true dos compiler like pacific c or turbo c++ 1.01 for example and it may work.
It won't help. The OP will could write a win32 console app. and then use
the cursor positioning and color setting functions available from the
Win32 API, however, I may be wrong too. This is why we stick to C here and
avoid off-topic answers.
--
- Mark ->
--
Oh, well. I am Kaz and just checked y'all's answers. OK, OK. I got a
hint. I will post the same question at a different group. However,
about ansi.sys... Don't you use ANSIC by any chance?
Thanks anyhow.
Kaz
Kaz <ka********@yahoo.co.jp> scribbled the following: Oh, well. I am Kaz and just checked y'all's answers. OK, OK. I got a hint. I will post the same question at a different group. However, about ansi.sys... Don't you use ANSIC by any chance?
The only relation between ansi.sys and ANSI C is that both are
standardised by ANSI. Neither standard requires, depends on, or contains
the other.
--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-------------------------------------------------------- rules! --------/
"Immanuel Kant but Genghis Khan."
- The Official Graffitist's Handbook
On 27 Nov 2004 06:27:56 -0800, in comp.lang.c , ka********@yahoo.co.jp
(Kaz) wrote: Oh, well. I am Kaz and just checked y'all's answers. OK, OK. I got a hint. I will post the same question at a different group. However, about ansi.sys... Don't you use ANSIC by any chance?
Lots of things were standardised by ANSI. F'rexample the thread pitch of
bolts, the design of streetlamps, and the qualifications for becoming a
firefighter in the US. We don't discuss those here either.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>
Kaz wrote: Oh, well. I am Kaz and just checked y'all's answers. OK, OK. I got a hint. I will post the same question at a different group. However, about ansi.sys... Don't you use ANSIC by any chance?
Why do you expect anyone to make any sense of the above, quoted in
full? Bear in mind that there is no guarantee that any previous
articles are available to the reader.
--
Some useful references:
<http://www.ungerhu.com/jxh/clc.welcome.txt>
<http://www.eskimo.com/~scs/C-faq/top.html>
<http://benpfaff.org/writings/clc/off-topic.html>
<http://anubis.dkuug.dk/jtc1/sc22/wg14/www/docs/n869/> (C99)
<http://www.dinkumware.com/refxc.html> C-library This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Eric Myers |
last post by:
Hello folks:
(This message is also posted on the help forum at the pexpect
sourceforge page, but all indentation in the code got stripped away
when I submitted the post.)
For some time I've...
|
by: Mark Anderson |
last post by:
Hi, I've a problem with code that should produce a Windows(ANSI) encoded
text file but doesn't. Server is IIS 5 on Win 2k, with ASP ver?
My ASP uses data from an upstream HTML form on a UTF-8...
|
by: Roose |
last post by:
Just to make a tangential point here, in case anyone new to C doesn't
understand what all these flame wars are about.
Shorthand title: "My boss would fire me if I wrote 100% ANSI C code"
We...
|
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...
|
by: Ziver MALHASOGLU |
last post by:
Hi,
I produce a text file using my windows application written with c#.
--
System.Text.Encoding encOutput=null;
encOutput=System.Text.Encoding.UTF8;
StreamWriter sw=new...
|
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...
|
by: Philip Bondi |
last post by:
Hello to all SQL Server junkies who work with non-English characters:
For people running scripts from the command line using ANSI files with
special characters, it is very important to use isql...
|
by: Daniele C. |
last post by:
As soon as my sourceforge.net project gets approved, I am going to
build a ncurses port to win32 bindable to sockets, e.g. allowing
VT100/ANSI terminals and the creation of simple terminal servers...
|
by: Nishanth |
last post by:
Hi All,
Is is possible to develop ANSI C++ development in Visual Studio .net?
Is it possible to execute the ANSI c++ application compiled as above in
other systems that do not have .net...
|
by: =?Utf-8?B?R2lubw==?= |
last post by:
I have written an application which uses a streamwriter to create which is
exported to a third party system. The third party system does not appear to
process the files in its original format. I...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
| |