I just implemented a Linux command shell in python using only the os library’s low level system calls, like fork() and so on. I was wondering how I can implement a key listener that will listen for key (UP|DOWN) to scroll through the history of my shell. I want do do this without using any fancy libraries, but I am