@HalfTough fcntl provides access to the full ioctl powers, for better or for worse:

import sys
import fcntl
import termios

for char in 'cd ..\n':
fcntl.ioctl(sys.stdin, termios.TIOCSTI, char)

Show more
niu.moe

Welcome to your niu world ! We are a cute and loving international community O(≧▽≦)O !