PtTty terminal application

Hi everybody,
i want to create PtTty widget terminal and i want to take input from the keyboard as a normal terminal. Can anybody help me or any suggestion.It will be very helpful if anybody give any suggestions or any related site or any sample code related to the creation ot terminal inside the photon application.

jerin