1
0
Fork 0

fixes for black on white terminals

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@629
This commit is contained in:
Peter Veenstra 2003-01-15 18:35:07 +00:00
parent 66996ec882
commit a1f52fbd1d
3 changed files with 11 additions and 4 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2002 The DOSBox Team
* Copyright (C) 2002 - 2003 The DOSBox Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -42,6 +42,7 @@ void WIN32_Console();
#include <termios.h>
#include <unistd.h>
static struct termios consolesettings;
int old_cursor_state;
#endif
// Forwards
static void DrawCode(void);
@ -1147,8 +1148,11 @@ void DEBUG_SetupConsole(void)
static void DEBUG_ShutDown(Section * sec)
{
CBreakpoint::DeleteAll();
#ifndef WIN32
#ifndef WIN32
curs_set(old_cursor_state);
tcsetattr(0, TCSANOW,&consolesettings);
printf("\e[0m\e[2J");
fflush(NULL);
#endif
};

View file

@ -1112,4 +1112,5 @@ Bitu DasmI386(char* buffer, PhysPt pc, Bitu cur_ip, bool bit32)
}
#endif
#endif

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2002 The DOSBox Team
* Copyright (C) 2002 - 2003 The DOSBox Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -31,6 +31,7 @@
#include "debug.h"
#include "debug_inc.h"
extern int old_cursor_state;
void DEBUG_ShowMsg(char * msg) {
char buf[1024];
strcpy(buf,msg);
@ -125,6 +126,7 @@ void DBGUI_StartUp(void) {
#ifndef WIN32
resizeterm(50,80);
touchwin(dbg.win_main);
old_cursor_state = curs_set(0);
#endif
start_color();
cycle_count=0;