why restscreen not work fine with ESMWIN

149 views
Skip to first unread message

Faby

unread,
Sep 29, 2022, 10:58:18 PM9/29/22
to Harbour Users
Hello, why when I make restscreen the box have all "???????"

Thank you in advance
Gracias de antemano

this is an example

  REQUEST   HB_CODEPAGE_ESMWIN
  set( _SET_CODEPAGE,  "ESMWIN" )
  set( _SET_DBCODEPAGE,"ESMWIN" ) // work fine the DBF

  // TEST
  setcolor("w/b") 
  Clear Screen
  @  0, 0 to 24,79   double

  @ 2,2 say "Make clear screen, Borraré pantalla, áéíóú"
  Inkey(0)
  sScrn1:=SaveScreen(0,0,24,79)
  Clear Screen
  @ 4,2 say "Make Restscreen, Recuperaré pantalla 1"
  Inkey(0)
  restscreen(0,0,24,79,sScrn1)

  @ 6,2 say "Ready, Listo"
  Inkey(0)
1savescreen.png2restscreen.png

Faby

unread,
Oct 4, 2022, 10:01:14 AM10/4/22
to Harbour Users
Yes, I solved it by adding
hb_gtInfo(HB_GTI_COMPATBUFFER,.F.) // No more garbled box characters

bernardm...@gmail.com

unread,
Jan 26, 2024, 8:05:54 AMJan 26
to Harbour Users
Thanks Faby, it resolve with    hb_cdpSelect( 'UTF8' ) for me.
Regards,
Bernard.
Reply all
Reply to author
Forward
0 new messages