home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / PASTE.ZIP / VIOPASTE.DOC < prev    next >
Text File  |  1990-03-16  |  1KB  |  32 lines

  1. Pasting from clipboard into KEDIT under OS/2 version 1.20
  2.  
  3. A useful new feature in OS/2 version 1.20 is the ability to copy text
  4. displayed in OS/2 command prompt windows to the system clipboard using
  5. the "Mark" and "Copy" entries of the system menu.  Another useful but
  6. undocumented feature is the ability to "paste" from the clipboard into
  7. applications like KEDIT running in OS/2 command prompt windows.  To
  8. enable the "Paste" entry in the system menu for these windows, run
  9. VIOPASTE.EXE once, anytime after installing OS/2.  VIOPASTE.EXE adds the
  10. keyword "Paste" to the "VioShield" application entry in OS2.INI.  The C
  11. language source code for VIOPASTE.EXE follows:
  12.  
  13.     #define INCL_WIN
  14.     #include <os2.h>
  15.     main()
  16.         {
  17.         HAB hab = WinInitialize(0);
  18.         WinWriteProfileString(hab, "VioShield", "Paste", "");
  19.         WinTerminate(hab);
  20.         }
  21.  
  22. VIOPASTE.ARC contains an executable version of this program.
  23.  
  24. When using the default KEDIT key definitions, pasted text overlays the
  25. contents of your file.  To add text in the clipboard to your file, issue
  26. the INPUT command before pasting the text (assuming you have INPUTMODE
  27. FULL or INPUTMODE LINE in effect).
  28.  
  29. Comments and questions are welcome, but note that use of the "paste"
  30. feature is not officially supported by Microsoft and Mansfield Software
  31. Group.
  32.