From aa44a876a81db0860556ffdb64989c8d8b688903 Mon Sep 17 00:00:00 2001 From: Fabien Bodard Date: Sun, 27 Mar 2016 17:32:09 +0000 Subject: [PATCH] [GB.FORM.TERMINAL] * BUG: Invert Foreground and Background on 256 mode. But i don't know why. git-svn-id: svn://localhost/gambas/trunk@7680 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- .../.src/TerminalView/TerminalFilter_VT100.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comp/src/gb.form.terminal/.src/TerminalView/TerminalFilter_VT100.class b/comp/src/gb.form.terminal/.src/TerminalView/TerminalFilter_VT100.class index bbd00e7cc..38b39816d 100644 --- a/comp/src/gb.form.terminal/.src/TerminalView/TerminalFilter_VT100.class +++ b/comp/src/gb.form.terminal/.src/TerminalView/TerminalFilter_VT100.class @@ -227,12 +227,12 @@ Private Sub Escape(hScreen As TerminalScreen, sData As String, iPos As Integer, hScreen.Attr.Background = iArg - 100 Case 38 If aArg.Count = 3 And If aArg[1] = "5" Then - Try hScreen.Attr.BackGround = CInt(aArg[2]) + Try hScreen.Attr.Foreground = CInt(aArg[2]) Break Endif Case 48 If aArg.Count = 3 And If aArg[1] = "5" Then - Try hScreen.Attr.Foreground = CInt(aArg[2]) + Try hScreen.Attr.Background = CInt(aArg[2]) Break Endif ' Case 38