To support the copy-paste functionality, I've added the following functionalities:
- Entry in copy-paste mode.
- Text Selection and copying.
- Text paste.
To start the program, follow the steps below:
- Open the terminal in project's directory
- Call command 'make clean'
- Then call command 'make qemu'
The xv6 operating system should start at this point and the QEMU window should be displayed
- press SHIFT + ALT + C to copy-paste mode
- use W, A, S or D keys to navigate the cursor
- press Q to start with selection mode, then use the navigation keys from 5. to select the text to be copied
- when text is selected press E to exit selection mode
- press SHIFT + ALT + C to exit copy mode
When exiting copy mode, the cursor returns to the position on the screen from which copy mode was started.
- press SHIFT + ALT + P to paste the copied text
When copy mode is enabled, the text over which the cursor passes is colored black on white (as opposed to the original text) during cursor navigation and text selection.