I`m stuck in a progranming with c in linux！
when we open a shell,a character picture will be presented!
But before the picture show we can also input some characters,and after the picture shows,the characters you have input will be presented again to tell you that you have input sth already.
how can I do this with c?
just like in other linux and I open a shell,I input some characters(here is "ls") before the PS1 environment viriable shows,and finally I get this:
ls nemax@nemax-laptop:~$ ls
the red ls is my input before the "nemax@nemax-laptop:~$" show,and the blue ls is handle by system right?the system move my input(the red ls) to the end.
How can i write a function like this to handle the red ls?