Re: [lazarus] Linux WriteLn - Staionary Output - how is done?

2007-05-22 Thread A.J. Venter
On 5/22/07, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: On 5/22/07, A.J. Venter [EMAIL PROTECTED] wrote: CRT is one way but rather relies on using the whole console. Anyway ncrt is safer. Sounds like you need something like this: uses ncrt; I got interrested on this, so I wrote a

Re: [lazarus] Linux WriteLn - Staionary Output - how is done?

2007-05-22 Thread Felipe Monteiro de Carvalho
On 5/22/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: (Tested on windows). cool!! Works on linux too =) At least with Konsole -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with

Re: [lazarus] Linux WriteLn - Staionary Output - how is done?

2007-05-22 Thread Felipe Monteiro de Carvalho
Something wierd is that I just noticed that after using ncrt my Konsole window will loose the hability to scroll (scrollbar stops working), after the program finished executing, so I can't see the full output of ls -l for example. Doesn't happen with crt or vincent's app -- Felipe Monteiro de

Re: [lazarus] Linux WriteLn - Staionary Output - how is done?

2007-05-22 Thread Albert Zeyer
Am Dienstag, den 22.05.2007, 10:09 +0200 schrieb A.J. Venter: So it's a case of which is your needs - for general console apps though - you should use ncrt because it's terminal independent and a LOT faster (ansi escapes take a long time to execute and make your whole program feel slow)

Re: [lazarus] Linux WriteLn - Staionary Output - how is done?

2007-05-22 Thread A.J. Venter
Nope, Ncurses does not use escapes except in a very few esoteric cases. In fact ncurses was orriginally created to replace the old curses library. Curses had been an escape sequence based lib that was itself created orriginally to implement the game rogue. The move from curses to ncurses was

Re: [lazarus] Linux WriteLn - Staionary Output - how is done?

2007-05-21 Thread Tiziano_mk
Michael Van Canneyt wrote: On Sun, 20 May 2007, Lee Jenkins wrote: another line or appending to existing text already written such as this: Getting File: somefile.txt [=] 50% I hope that I explained my question well enough. Try to use the crt unit. It

Re: [lazarus] Linux WriteLn - Staionary Output - how is done?

2007-05-21 Thread Michael Van Canneyt
On Mon, 21 May 2007, Tiziano_mk wrote: Michael Van Canneyt wrote: On Sun, 20 May 2007, Lee Jenkins wrote: another line or appending to existing text already written such as this: Getting File: somefile.txt [=] 50% I hope that I

Re: [lazarus] Linux WriteLn - Staionary Output - how is done?

2007-05-21 Thread Lee Jenkins
Lee Jenkins wrote: Hi all, I'm wondering how to emulate the static console output seen with some linux applications such as yum. More specifically, static output without going to another line or appending to existing text already written such as this: Getting File: somefile.txt

Re: [lazarus] Linux WriteLn - Staionary Output - how is done?

2007-05-21 Thread A.J. Venter
CRT is one way but rather relies on using the whole console. Anyway ncrt is safer. Sounds like you need something like this: uses ncrt; ... write('i wrote this code'); window(1,wherey,80,wherey); clrscr; write('on my phone from memory'); Hope that helps. On 5/21/07, Lee Jenkins [EMAIL

[lazarus] Linux WriteLn - Staionary Output - how is done?

2007-05-20 Thread Lee Jenkins
Hi all, I'm wondering how to emulate the static console output seen with some linux applications such as yum. More specifically, static output without going to another line or appending to existing text already written such as this: Getting File: somefile.txt [=

Re: [lazarus] Linux WriteLn - Staionary Output - how is done?

2007-05-20 Thread Steven Graham
Lee Jenkins wrote: Hi all, I'm wondering how to emulate the static console output seen with some linux applications such as yum. More specifically, static output without going to another line or appending to existing text already written such as this: Getting File: somefile.txt

Re: [lazarus] Linux WriteLn - Staionary Output - how is done?

2007-05-20 Thread Michael Van Canneyt
On Sun, 20 May 2007, Lee Jenkins wrote: Hi all, I'm wondering how to emulate the static console output seen with some linux applications such as yum. More specifically, static output without going to another line or appending to existing text already written such as this: Getting

RE: [lazarus] Linux WriteLn - Staionary Output - how is done?

2007-05-20 Thread Sam Liddicott
As said before, use write, not writeln. Character 8 is back-space, useful for spinners by alternating between / - \ |. Character 13 will move the cursor to the beginning of the line and you can overwrite what is already there. Or, as said, use crt an don't worry about it. Sam