home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
PASTE.ZIP
/
VIOPASTE.DOC
< prev
next >
Wrap
Text File
|
1990-03-16
|
1KB
|
32 lines
Pasting from clipboard into KEDIT under OS/2 version 1.20
A useful new feature in OS/2 version 1.20 is the ability to copy text
displayed in OS/2 command prompt windows to the system clipboard using
the "Mark" and "Copy" entries of the system menu. Another useful but
undocumented feature is the ability to "paste" from the clipboard into
applications like KEDIT running in OS/2 command prompt windows. To
enable the "Paste" entry in the system menu for these windows, run
VIOPASTE.EXE once, anytime after installing OS/2. VIOPASTE.EXE adds the
keyword "Paste" to the "VioShield" application entry in OS2.INI. The C
language source code for VIOPASTE.EXE follows:
#define INCL_WIN
#include <os2.h>
main()
{
HAB hab = WinInitialize(0);
WinWriteProfileString(hab, "VioShield", "Paste", "");
WinTerminate(hab);
}
VIOPASTE.ARC contains an executable version of this program.
When using the default KEDIT key definitions, pasted text overlays the
contents of your file. To add text in the clipboard to your file, issue
the INPUT command before pasting the text (assuming you have INPUTMODE
FULL or INPUTMODE LINE in effect).
Comments and questions are welcome, but note that use of the "paste"
feature is not officially supported by Microsoft and Mansfield Software
Group.