From 4641fe97304254f3dc7346593f2414f833a17c92 Mon Sep 17 00:00:00 2001 From: Walter Negro Date: Fri, 24 May 2002 04:40:14 +0000 Subject: [PATCH] * source/rtl/console.c ! Fix print in the same line when the new position is previus to the current one. --- harbour/source/rtl/console.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/harbour/source/rtl/console.c b/harbour/source/rtl/console.c index eb18ec1aa1..38a9778d89 100644 --- a/harbour/source/rtl/console.c +++ b/harbour/source/rtl/console.c @@ -403,6 +403,12 @@ static void hb_conDevPos( SHORT iRow, SHORT iCol ) uiPcol += hb_set.HB_SET_MARGIN; + if( ( uiProw == s_uiPRow ) && ( uiPcol < s_uiPCol ) ) + { + hb_fsWrite( hb_set.hb_set_printhan, ( BYTE * ) "\x0D", 1 ); + s_uiPCol = 0; + } + for( uiCount = s_uiPCol; uiCount < uiPcol; uiCount++ ) hb_fsWrite( hb_set.hb_set_printhan, ( BYTE * ) " ", 1 );