Received: by 10.224.186.143 with SMTP id cs15mr13632895qab.3.1346839538923; Wed, 05 Sep 2012 03:05:38 -0700 (PDT) Received: by 10.236.184.70 with SMTP id r46mr2097015yhm.12.1346839538890; Wed, 05 Sep 2012 03:05:38 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!v8no2624285qap.0!news-out.google.com!da15ni65566254qab.0!nntp.google.com!b19no2708285qas.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.os.ms-windows.programmer.misc Date: Wed, 5 Sep 2012 03:05:38 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.142.40.58; posting-account=rCOFagoAAAAveERBprlB4oqHj-125WIQ NNTP-Posting-Host: 91.142.40.58 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5f9a6659-2a45-4928-a775-0f96217ccba0@googlegroups.com> Subject: Command line programming - how to switch off line feed... From: commodorecomputerclub@googlemail.com Injection-Date: Wed, 05 Sep 2012 10:05:38 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.os.ms-windows.programmer.misc:16 Hi, I'm trying to work out how to stop my programming automatically forcing a line feed when it reaches the last character of the command line console. I'm using the C programming language. So, say I set up my console like this: // 80 x 50: system("mode CON: COLS=80 LINES=50"); // Black background, cyan text: system("color 03"); // Clear screen: system("cls"); // Set title: system("title Console started at %TIME% on %DATE%"); and I have a function to switch off the blinking cursor too, and to set the X and Y co-ordinates for my text. Now, I want to write to the bottom row of the console and write 80 characters, like: gotoxy(0,49); for(int i=0; i<80; i++) { printf("."); } // Forces line feed after the last character is written :-/ Obviously, if I could avoid the automatic line feed somehow, this would be helpful. Would I have to use a pointer to write the character at the last character of the console instead of printing it? Any help or tips would be good, Many thanks, Shaun.