Permalink
Browse files

Added simple line wrap at 80 characters. Removed status line for V1 -…

… V3 games.
  • Loading branch information...
1 parent b827aa0 commit c6f9def45e8d848acbe9385f36dd21094200fcfa @louismdavis committed Apr 8, 2012
Showing with 17 additions and 3 deletions.
  1. +2 −2 input.cpp
  2. +15 −1 text.cpp
View
@@ -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 */
View
@@ -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 */

0 comments on commit c6f9def

Please sign in to comment.