To copy code from the terminal use Cntrl + Insert Rightclick + copy text To paste code into the terminal use Shift + Insert Rightclick + p