westfw wrote:As for the Terminal, here you go:
A "proper" line ending for most terminals (and emulators) has both a "Carriage Return" ('\r') to reset the column, and a "line feed" ('\n') to advance to the next line. The screen you show is symptomatic of having only the linefeed at the end of the line. This is "standard practice" for unix and unix-like environments ("printf("Hellow World\n");") Usually the required '\r' is added by the operating system as part of the tty driver, or by the printf() library (on systems that don't have a TTY driver.) Or, many terminal emulators will have an option buried somewhere to "fix" this (
http://the.earth.li/~sgtatham/putty/0.6 ... g-terminal Section 4.3.3)
Wow that is great! I noticed that the code has a \n as shown below, I thought all you needed was that!
pc_puts_P(PSTR("a - Power/Program LED test\n")); // TP1
pc_puts_P(PSTR("b - NE555 low frequency mode\n")); // TP2
pc_puts_P(PSTR("c - NE555 high frequency mode\n")); // TP2
I took a look at the code that printed the menu which worked which was the original WB Code, I see this putstring_nl function being called for printing menu items, and wouldn't you know it:
//call
putstring_nl(" p> Display progs");
//defined
#define putstring_nl(x) ROM_putstring(PSTR(x), 1)
//Rom_putstring contains guess what? a \r
}
if (nl) {
uart_putchar('\n'); uart_putchar('\r');
}
Thanks for the link, I have seen this putty option at least 10 thousand times and never made the connection.
You sir, are the man..
