Ignore:
Timestamp:
Jun 8, 2014, 11:45:17 AM (10 years ago)
Author:
cfuguet
Message:

tty write functions:

  • Write a carriage return when writing newline character.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_common/utils.c

    r314 r315  
    532532
    533533        // write one byte
     534        if ( string[n] == '\n') {
     535            _tty_set_register( 0, TTY_WRITE, (unsigned int)'\r' );
     536        }
    534537        _tty_set_register( 0, TTY_WRITE, (unsigned int)string[n] );
    535538        n++;
Note: See TracChangeset for help on using the changeset viewer.