Chameleon

Chameleon Commit Details

Date:2011-08-16 07:13:14 (8 years 3 months ago)
Author:Evan Lojewski
Commit:1402
Parents: 1401
Message:Cause Wait=y to use the showTextBuf function. Allow space for next page when in gui mode. Resolves issue #141
Changes:
M/trunk/i386/boot2/boot.c
M/trunk/i386/boot2/gui.c
M/trunk/i386/boot2/options.c

File differences

trunk/i386/boot2/boot.c
8686
8787
8888
89
90
91
8992
93
9094
9195
9296
......
174178
175179
176180
177
178
181
179182
180183
181184
static unsigned longAdler32(unsigned char *buffer, long length);
//static voidselectBiosDevice(void);
/** options.c **/
extern char* msgbuf;
void showTextBuffer(char *buf, int size);
//==========================================================================
// Zero the BSS.
bool dummyVal;
if (getBoolForKey(kWaitForKeypressKey, &dummyVal, &bootInfo->chameleonConfig) && dummyVal) {
printf("(Wait) ");
pause();
showTextBuffer(msgbuf, strlen(msgbuf));
}
usb_loop();
trunk/i386/boot2/gui.c
15831583
15841584
15851585
1586
1587
1588
1589
1590
1591
1592
1593
1594
15861595
15871596
15881597
updateVRAM();
break;
}
if(key == ' ') // spacebar = next page
{
if( lines > ( currentline + visiblelines ) )
currentline += visiblelines;
if(lines < (currentline + visiblelines))
currentline = lines - visiblelines;
}
}
}
trunk/i386/boot2/options.c
13371337
13381338
13391339
1340
1340
13411341
13421342
13431343
......
13451345
13461346
13471347
1348
1348
13491349
13501350
13511351
//==========================================================================
// Load the help file and display the file contents on the screen.
static void showTextBuffer(char *buf, int size)
void showTextBuffer(char *buf, int size)
{
char*bp;
intline;
intc;
if (bootArgs->Video.v_display != VGA_TEXT_MODE) {
showInfoBox( "Press q to quit\n",buf );
showInfoBox( "Press q to continue, space for next page.\n",buf );
return;
}

Archive Download the corresponding diff file

Revision: 1402