## Virtual Device Driver Reference for OS/2

[prev][next][parent][TOC]

### Pasting Support

The virtual keyboard device driver supports two levels of pasting from the clipboard into a DOS session; fast pasting and slow pasting. In fast pasting support, characters from the clipboard are put directly into the BIOS buffer. For those DOS applications that get their key strokes from the BIOS key buffer (through INT 16h), fast pasting is adequate. For those DOS applications that hook INT 09h or INT 15h (AH=4Fh), key scan sequences are expected, which must be generated by the slow pasting mechanism.

In slow pasting, every character from the clipboard is reverse translated into scan sequence and can involve generating make-and-break scans of not only the character itself, but also the make and break of the shift keys in order to adjust the upper, lower, or control case of the character. It can even involve generating Alt+numeric keypad scan sequences for those characters, which cannot be directly typed on the keyboard (such as graphics characters or international characters).