Skip to content

Commit

Permalink
Added simple line wrap at 80 characters. Removed status line for V1 -…
Browse files Browse the repository at this point in the history
… V3 games.
  • Loading branch information
louismdavis committed Apr 8, 2012
1 parent b827aa0 commit c6f9def
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions input.cpp
Expand Up @@ -139,8 +139,8 @@ void z_sread_aread( int argc, zword_t * argv )

/* Refresh status line */

if ( h_type < V4 )
z_show_status( );
//if ( h_type < V4 )
// z_show_status( );

/* Read the line then script and record it */

Expand Down
16 changes: 15 additions & 1 deletion text.cpp
Expand Up @@ -536,9 +536,23 @@ void write_zchar( int c )
*/
void write_char( int c )
{
static unsigned char line_count = 0;

if ( screen_window == TEXT_WINDOW )
{
Serial.write(c);
if(c == '\n')
line_count = 0;
else
{
line_count++;
if(line_count >= 80)
{
line_count = 1;
Serial.write('\n');
}
}

Serial.write(c);
}
} /* write_char */

Expand Down

0 comments on commit c6f9def

Please sign in to comment.