1
0
Fork 0

added support for debugger under non-windows systems!

no colors yet/ and afterwards your term is messed up :)


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@485
This commit is contained in:
Peter Veenstra 2002-11-06 14:27:29 +00:00
parent 9a3ccda025
commit ca4c7db065
4 changed files with 15 additions and 2 deletions

View file

@ -34,7 +34,7 @@
#include "mixer.h"
#include "debug_inc.h"
#include "timer.h"
#include "..\shell\shell_inc.h"
#include "../shell/shell_inc.h"
#ifdef WIN32
void WIN32_Console();
@ -1048,6 +1048,9 @@ void DEBUG_SetupConsole(void)
{
#ifdef WIN32
WIN32_Console();
#else
printf("\e[8;50;80t"); //resize terminal
fflush(NULL);
#endif
memset((void *)&dbg,0,sizeof(dbg));
debugging=false;

View file

@ -122,6 +122,10 @@ void DBGUI_StartUp(void) {
noecho(); /* don't echo input */
nodelay(dbg.win_main,true);
keypad(dbg.win_main,true);
#ifndef WIN32
resizeterm(50,80);
touchwin(dbg.win_main);
#endif
cycle_count=0;
MakePairs();
MakeSubWindows();