import sys
import collections

from pingo.parts import serial

DEFAULT_PORT = '/dev/ttyAMA0'  # the mini-UART port on the Raspberry Pi

def main(port=DEFAULT_PORT):
    lcd = serial.LCD16x2(port)
    lcd.clear()
    lines = collections.deque(['',''], 2)
    while True:
        lines.append(raw_input('> '))
        for i, line in enumerate(lines):
            lcd.set_cursor(i, 0)
            lcd.write(line)

if __name__ == '__main__':
    main(*sys.argv[1:])

@@ -401,16 +401,31 @@
 ite(line
+.ljust(16, b' '
 )%0A%0Aif __

Update displaymsg.py