Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-01

Win32 screen writes

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

I know that write/writeln work significantly slower on Win32 targets (console mode) then they do for go32 targets. With that in mind I have been using the WriteConsoleOutput API call. This does indeed work much better, but it suffers from one major drawback; it doesn't respect the borders established by Pascal's window() procedure. I'm assuming the reason is that it's an M$ API, and therefore works strictly within the confines of it's console 'window' itself and not something drawn using the window() procedure.

My question is this; does anyone know of a way to output text to the screen under (text-mode) Win32 that's fast AND works with the window() procedure?

TIA...

Jim

Jeff Wormsley
to Unknown author
My question is this; does anyone know of a way to output text to the screen under (text-mode) Win32 that's fast AND works with the window() procedure?

I think you'll have to do that yourself, unless nCRT uses the console write routines. I haven't used it, but I have heard good things about it.

Jeff.

Peter Vreman
to Jeff Wormsley
you wrote 5 lines
>My question is this; does anyone know of a way to output text to the screen >under (text-mode) Win32 that's fast AND works with the window() procedure? I think you'll have to do that yourself, unless nCRT uses the console write routines. I haven't used it, but I have heard good things about it.

nCrt is for linux 'only'. Unless the ncurses implementation for win32 is used and is fast.

Peter

Unknown author
I think you'll have to do that yourself, unless nCRT uses the console write routines. I haven't used it, but I have heard good things about it.

IIRC, nCRT is for Linux. If that's the case then I'm afraid it's not going to help me much for Win32.

Jim