On Tue, 9 Dec 2008, Przemyslaw Czerpak wrote:

No. I forgot that you are using Harbour 1.0.1 where default GT for BSD is
GTSTD not GTTRM and the above is exact GTSTD behavior. In 1.1.x default GT
is GTTRM. So if you are using 1.0.1 version then please set HB_GT_LIB=gttrm

GTTRM should automatically recognize terminal mode (iso/utf8) and work
correctly with both.

Speaking of various GT settings I have a question about them. Hopefully it's okay to ask this here. I posted to the user list bug didn't get a response.

How should programs be compiled if their output is going to be piped to another program. I'm seeing odd behavior piping output to other programs. For example, a program such as:

Function Main()

local i

for i = 1 to 5000
    outstd("Line:  ", str(i), HB_OSNewLine())
next

Return

If I pipe the output from the above program to less, in a terminal session with 35 rows, it displays the first 35 lines and less exits instead of allowing one to page through the output. On Linux it the 35 lines look right. On FreeBSD, they are displayed with the "stair step" effect. I've tried hbcmp/hblnking them with -gtstd. When I do, the executable still is linked against libncurses and libslang and still misbehaves when piping it's output to another program.




Kevin
http://www.RawFedDogs.net
http://www.WacoAgilityGroup.org
Bruceville, TX

Si hoc legere scis nimium eruditionis habes.
Longum iter est per praecepta, breve et efficax per exempla!!!

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to