* for a beginner... @ 2001-07-06 0:51 Beau 2001-07-06 1:35 ` B. Douglas Hilton 0 siblings, 1 reply; 7+ messages in thread From: Beau @ 2001-07-06 0:51 UTC (permalink / raw) Is there an easy way to do a clear screen for the dos prompt? like I have a bunch of data that I have put pauses in. It would be very helpful if I could clear the screen after every pause. thanks, -- ~Beau~ beau@hiwaay.net ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: for a beginner... 2001-07-06 0:51 for a beginner Beau @ 2001-07-06 1:35 ` B. Douglas Hilton 2001-07-06 2:48 ` Beau ` (2 more replies) 0 siblings, 3 replies; 7+ messages in thread From: B. Douglas Hilton @ 2001-07-06 1:35 UTC (permalink / raw) Ah, hey dude, whats happenin! If you have gnat, then use, argh.. I forget... Gnat.OS? use Gnat.OS ... Gnat.OS.System("cls"); Help me out here vets, I forget the exact Annex... If you have ANSI.SYS loaded, the code is ESC[2J There is a small annex called "screen" that acts like an ANSI terminal emulator and even works with Win2k, which Win2k has more or less disables ANSI.SYS if you use CMD.EXE, old COMMAND.COM still has it but there are problems using it. I hate M$! When they screwed up ANSI.SYS that was the final straw. Now I can't even have a colorized DOS-Box prompt thanks to those idiots. With the kind of work I do, I need super automatic batch-mode, not click "OK" ten thousand times in a row every ten seconds. ( And I'm sure as sh!t not going to buy "Visual Studio" when I already have gnat / gtkAda working! ) Cheers! - Doug Beau wrote: > Is there an easy way to do a clear screen for the dos prompt? > like I have a bunch of data that I have put pauses in. It would be very > helpful if I could clear the screen after every pause. thanks, > -- > ~Beau~ > beau@hiwaay.net ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: for a beginner... 2001-07-06 1:35 ` B. Douglas Hilton @ 2001-07-06 2:48 ` Beau [not found] ` <000901c105c6$288d58e0$03000004@p4g4r3> 2001-07-06 14:28 ` Ted Dennison 2 siblings, 0 replies; 7+ messages in thread From: Beau @ 2001-07-06 2:48 UTC (permalink / raw) that ansi.sys thing can you explain that to me? because my prof said that to see and use some of the screen pakcages that came with the book. do you know what I am talking about? if you do, can you tell me how to use it? -- ~Beau~ beau@hiwaay.net "B. Douglas Hilton" <doug.hilton@engineer.com> wrote in message news:3B4515F8.3076B3A6@engineer.com... > Ah, hey dude, whats happenin! > > If you have gnat, then use, argh.. I forget... Gnat.OS? > > use Gnat.OS > > ... > Gnat.OS.System("cls"); > > Help me out here vets, I forget the exact Annex... > > If you have ANSI.SYS loaded, the code is ESC[2J > > There is a small annex called "screen" that acts like > an ANSI terminal emulator and even works with Win2k, > which Win2k has more or less disables ANSI.SYS if > you use CMD.EXE, old COMMAND.COM still has > it but there are problems using it. > > I hate M$! When they screwed up ANSI.SYS that > was the final straw. Now I can't even have a colorized > DOS-Box prompt thanks to those idiots. With the kind > of work I do, I need super automatic batch-mode, not > click "OK" ten thousand times in a row every ten seconds. > > ( And I'm sure as sh!t not going to buy "Visual Studio" when > I already have gnat / gtkAda working! ) > > Cheers! > - Doug > > > Beau wrote: > > > Is there an easy way to do a clear screen for the dos prompt? > > like I have a bunch of data that I have put pauses in. It would be very > > helpful if I could clear the screen after every pause. thanks, > > -- > > ~Beau~ > > beau@hiwaay.net > ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <000901c105c6$288d58e0$03000004@p4g4r3>]
* Re: for a beginner... [not found] ` <000901c105c6$288d58e0$03000004@p4g4r3> @ 2001-07-06 3:21 ` B. Douglas Hilton 2001-07-06 3:55 ` B. Douglas Hilton 0 siblings, 1 reply; 7+ messages in thread From: B. Douglas Hilton @ 2001-07-06 3:21 UTC (permalink / raw) ANSI was a terminal driver code that was used by a lot of old BBS and terminal software. If you had ANSI.SYS loaded or used and ANSI terminal then you could use escape codes to control the screen. I will use ^[ to represent ESC, which is octal code \033, for example ^[[ is \033[[ Clear screen: ^[[2J Clear to end of line: ^[[K Save cursor position: ^[[s Go to saved location: ^[[u Jump to screen 3:30: ^[[3:30H Turn subsequent text bright blue: ^[[1;34m Set text to gray: ^[[0m Take a look at this link: http://enterprise.aacc.cc.md.us/~rhs/ansi.html It explains the codes. From c, if you did: printf( "\033[1;34mThis is blue text\033[0m!\n") You would indeed have blue text assuming that you had an ansi driver working. Cheers! - Doug Beau Elliott wrote: > that ansi.sys thing can you explain that to me? because my prof said that to > see and use some of the screen pakcages that came with the book. do you know > what I am talking about? if you do, can you tell me how to use it? > ~Beau~ > beau@hiwaay.net > > ----- Original Message ----- > From: "B. Douglas Hilton" <doug.hilton@engineer.com> > Newsgroups: comp.lang.ada > Sent: Thursday, July 05, 2001 8:35 PM > Subject: Re: for a beginner... > > > Ah, hey dude, whats happenin! > > > > If you have gnat, then use, argh.. I forget... Gnat.OS? > > > > use Gnat.OS > > > > ... > > Gnat.OS.System("cls"); > > > > Help me out here vets, I forget the exact Annex... > > > > If you have ANSI.SYS loaded, the code is ESC[2J > > > > There is a small annex called "screen" that acts like > > an ANSI terminal emulator and even works with Win2k, > > which Win2k has more or less disables ANSI.SYS if > > you use CMD.EXE, old COMMAND.COM still has > > it but there are problems using it. > > > > I hate M$! When they screwed up ANSI.SYS that > > was the final straw. Now I can't even have a colorized > > DOS-Box prompt thanks to those idiots. With the kind > > of work I do, I need super automatic batch-mode, not > > click "OK" ten thousand times in a row every ten seconds. > > > > ( And I'm sure as sh!t not going to buy "Visual Studio" when > > I already have gnat / gtkAda working! ) > > > > Cheers! > > - Doug > > > > > > Beau wrote: > > > > > Is there an easy way to do a clear screen for the dos prompt? > > > like I have a bunch of data that I have put pauses in. It would be very > > > helpful if I could clear the screen after every pause. thanks, > > > -- > > > ~Beau~ > > > beau@hiwaay.net > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: for a beginner... 2001-07-06 3:21 ` B. Douglas Hilton @ 2001-07-06 3:55 ` B. Douglas Hilton 0 siblings, 0 replies; 7+ messages in thread From: B. Douglas Hilton @ 2001-07-06 3:55 UTC (permalink / raw) As an adendum, here is a relevant portion of my Linux profile which gives me a nice colorized prompt. Add it to your .bash_profile or .bashrc Keep in mind that wherever you see ESC, with the vi editor you should press CTRL-V ESC to embed an actual escape character into the sequence PS1='\[ESC[1;30m\]<\[ESC[35m\]\#\[ESC[30m\]>(\[ESC[36m\]\h\[ESC[30m\])[\[ESC[34m\]`pwd`\[ESC[30m\]]\[ESC[32m\] $\[ESC[0m\] ' A b/w version of your prompt will be: <13>(thunder)[/home/doug] $ the 13 will be purple, the thunder will be bright cyan, the /home/doug will be blue, the $ will be green, and everything else will be bright black. Any text you type will be grey. Regards, - Doug ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: for a beginner... 2001-07-06 1:35 ` B. Douglas Hilton 2001-07-06 2:48 ` Beau [not found] ` <000901c105c6$288d58e0$03000004@p4g4r3> @ 2001-07-06 14:28 ` Ted Dennison 2001-07-06 18:15 ` Darren New 2 siblings, 1 reply; 7+ messages in thread From: Ted Dennison @ 2001-07-06 14:28 UTC (permalink / raw) In article <3B4515F8.3076B3A6@engineer.com>, B. Douglas Hilton says... > >( And I'm sure as sh!t not going to buy "Visual Studio" when >I already have gnat / gtkAda working! ) Well, that is one way to get the legal right to use the Win32 bindings. They were translated from Microsoft's .h files, so you have to have those .h files legitimately in order to legally use Gnat's Win32 bindings. The following is exerpted from the footer of Win32.ads: -- and the use of this file. This file may be used only by licensees of -- Microsoft Corporation's WIN32 Software Development Kit in accordance with -- the terms of the licensee's End-User License Agreement for Microsoft -- Software for the WIN32 Development Kit. -- -- Copyright (c) Intermetrics, Inc. 1995 -- Portions (c) 1985-1994 Microsoft Corporation with permission. I solved the problem by purchasing a student version of VC++6 that came with NT (back when I was still a student). Its fairly cheap that way, and that gave me a legal OS for the new machine I'd just built too. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: for a beginner... 2001-07-06 14:28 ` Ted Dennison @ 2001-07-06 18:15 ` Darren New 0 siblings, 0 replies; 7+ messages in thread From: Darren New @ 2001-07-06 18:15 UTC (permalink / raw) Ted Dennison wrote: > -- and the use of this file. This file may be used only by licensees of > -- Microsoft Corporation's WIN32 Software Development Kit in accordance with > -- the terms of the licensee's End-User License Agreement for Microsoft > -- Software for the WIN32 Development Kit. Funky. I wonder if they got permission to distribute derivative works of Microsoft's copyrighted files. -- Darren New / Senior MTS & Free Radical / Invisible Worlds Inc. San Diego, CA, USA (PST). Cryptokeys on demand. Here, de-vein these shrimp, then de-vine these peas. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-07-06 18:15 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2001-07-06 0:51 for a beginner Beau 2001-07-06 1:35 ` B. Douglas Hilton 2001-07-06 2:48 ` Beau [not found] ` <000901c105c6$288d58e0$03000004@p4g4r3> 2001-07-06 3:21 ` B. Douglas Hilton 2001-07-06 3:55 ` B. Douglas Hilton 2001-07-06 14:28 ` Ted Dennison 2001-07-06 18:15 ` Darren New
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox