Hi,
Yes it is and it's expected behavior. We cannot restore sth what we
do not know. Anyhow it's possible to make a trick and simulate such
behavior on some terminals which supports alternative screen display.

This code shows it. It works with terminals which supports the following
escape sequences:
   ESC [ ? 47 h   // switch to alternate screen
   ESC [ ? 47 l   // restore original screen


#!/usr/bin/hbrun //GTTRM
proc main()

   fwrite( 1, chr( 27 ) + "[?47h" )    // switch to alternate screen

   dispbox( 0, 0, maxrow(), maxcol(), "+-+|+-+| " )
   wait

   fwrite( 1, chr( 27 ) + "[?47l" )    // restore startup screen

return
Excellent !
-> ok with xterm and gnome-terminal
->  not ok on text console (ctrl-alt-fx)

Thank you very much Przemek. Very usefull trick !

Best regards,

Guy

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to