Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Deleting 2 lines

Name: Anonymous 2010-02-17 11:05

How do I delete 2 lines in a windows terminal using C?

I know that I can move to the beginning of a line using "\r".
But neither printf("\r\r"); nor printf("\r\b\r"; work.
A windows TErminal is not VT100 compliant, or I haven't figured out how to use VT100 in a windows terminal.

Name: Anonymous 2010-02-17 11:07

\r\n is a DOS newline.

Name: Anonymous 2010-02-17 11:12

You can't.

ncurses.

Name: Anonymous 2010-02-17 11:14

You mean you want to go from:
One line
Two line
Three line
Four line

... to:
One line
Two line

... in the Command Prompt, real time?

Name: Anonymous 2010-02-17 11:25

>>4
yes
>>3
ncurses on windows? I thought it was a linux thing.

Name: Anonymous 2010-02-17 11:51

>>3
U MENA PASCAL?

Ah, the days of GotoXY...

Name: Anonymous 2010-02-17 12:22

>>5
Then how about you use linux.

Name: Anonymous 2010-02-17 12:27

>>6
DYNAMIC ENTRYYYYYYY

Name: Anonymous 2010-02-17 12:27

Use a GUI text box that almost emulates a command prompt but you can do that sort of thing in it

Name: Anonymous 2010-02-17 12:39

Just look at how QBASIC does it. It's in the MS-DOS source code that was leaked a while back.

Name: Anonymous 2010-02-17 14:03

Hm ok thx I'll note it down as "not possible".

Name: Anonymous 2010-02-17 15:48

Do like Dwarf Fortress and use OpenGL to draw the console window. Do 10 API calls per character, one of which is glFinish(), to make it feel authentic.

Also it's obviously possible. I'd start reading here: http://msdn.microsoft.com/en-us/library/ms682088(VS.85).aspx

Name: Anonymous 2010-02-17 15:56

>>12
Oh no! If this keeps up, people might think we're actually helpful!!

Name: Anonymous 2010-02-17 16:34

HELPFUL MY ANUS

Name: Anonymous 2010-02-17 19:04

>>1
HINT cmd.exe is not a VT100 emulator.

Name: Anonymous 2010-02-17 20:40

>>15
one word: putty.exe

Name: Anonymous 2010-02-17 20:53

>>16
one word delete 2 lines in a windows terminal

Name: Anonymous 2010-02-17 21:42

>>12 has the long, proper way
Better idea: download xterm for windows, use ANSI escapes.

Name: Anonymous 2010-02-17 22:14

Windows is shit.

Name: Anonymous 2010-02-18 0:59

one word: /cygdrive/c/usr/bin/ssh

Name: Anonymous 2010-02-18 4:11

>>20
i for one find the /cygdrive and immense faggot name.

personally i symlink all the /cygdrive drives to top level ie /c -> /cygdrive/c etc. this is much more hetero

Name: Anonymous 2010-02-18 6:06

>>21
[q]and[/q]

Name: Anonymous 2010-02-18 6:26

>>22
[quote][q]and[/q][/quote]

Name: Anonymous 2010-02-18 6:35

Thank you guys :D it is not that important so I will not go though all the hassle I just wondered...

Name: Anonymous 2010-02-18 10:19

>>23
[cite][quote][q]and[/q][/quote][/cite]

Name: Anonymous 2011-02-03 6:02

Name: Anonymous 2011-02-03 8:12

Don't change these.
Name: Email:
Entire Thread Thread List