VkForkIO(3x) VkForkIO(3x)
VkForkIO - Command-line interface to shell command component
VkTextIO : VkComponent : VkCallbackObject
#include <Vk/VkForkIO.h>
PUBLIC PROTOCOL SUMMARY
Constructor/Destructor
VkForkIO(const char* name,
Widget parent,
const char* prompt = NULL);
virtual void ~VkForkIO(void);
Control Functions [Toc] [Back]
void execCommand(char* cmd);
void inputString(char* str);
Access functions [Toc] [Back]
Boolean running(void);
The VkForkIO class provides an easy mechanism to run a shell command
in a text widget, and allow the user to interact with that command
as if they were in a shell. The VkForkWindow class further
simplifies this by allowing a command to be run in a new window.
FUNCTION DESCRIPTIONS [Toc] [Back] VkForkIO()
VkForkIO(const char* name,
Widget parent,
const char* prompt = NULL);
virtual void ~VkForkIO(void);
Creates a Motif scrolled text widget for command interaction. The
first argument is the name used for the text widget, the second is
used for the parent of the text widget, and the last is the
command-line prompt displayed.
execCommand()
void execCommand(char* cmd);
Page 1
VkForkIO(3x) VkForkIO(3x)
Specifies the shell command to run in the component.
running()
Boolean running(void);
Indicates whether the shell command is still running.
inputString()
void inputString(char* str);
Simulates user input into the component.
INHERITED MEMBER FUNCTIONS [Toc] [Back] Inherited from VkTextIO
show(), VkTextIO(), ~VkTextIO(), setCallback(), clearHistory(),
outputString(), outputChar(), disableRedisplay(), enableRedisplay(),
textWidget(), activated(), activate(), deactivate(),
scrollWidget(), prepTextWidget(), processInput(), inputChar(),
addInput(), addInputN(), doKillLine(), doKillWord(), doDelete(),
newInput(), scrollToBottom(), callCallback(), flushInput(),
translatePos(), inputError(), modify_verify(), ctrl_u(),
ctrl_c(), ctrl_w(), text, prompt, promptBuf, buffer, bufferSize,
callback, callbackData, ignoreVerify, displayUpdated, normalBg,
readOnlyBg,
Inherited from VkComponent [Toc] [Back]
className(), installDestroyHandler(), removeDestroyHandler(),
widgetDestroyed(), afterRealizeHook(), setDefaultResources(),
getResources(), VkComponent(), VkComponent(), ~VkComponent(),
hide(), realize(), manage(), unmanage(), name(), baseWidget(),
okToQuit(), isComponent(), _name, _baseWidget, _w,
deleteCallback,
Inherited from VkCallbackObject [Toc] [Back]
callCallbacks(), VkCallbackObject(), ~VkCallbackObject(),
addCallback(), addCallback(), removeCallback(), removeCallback(),
removeAllCallbacks(), removeAllCallbacks(), hasCallbacks(),
cloneCallbacks(), cloneCallback(), cloneCallback(),
CLASSES USED BY THIS CLASS
VkCallbackObject, VkInput, VkProgram, VkSubProcessRep
KNOWN CLASSES THAT USE THIS CLASS [Toc] [Back] VkForkIO
Page 2
VkForkIO(3x) VkForkIO(3x)
VkTextIO, VkComponent, VkCallbackObject, VkCallbackObject, VkForkIO,
VkInput, VkProgram, VkSubProcessRep,
ViewKit Programmer's Guide
The X Window System, DEC Press, Bob Sheifler and Jim Gettys
The X Window System Toolkit, DEC Press, Paul Asente and Ralph Swick
The OSF/Motif Programmers Reference, Prentice Hall, OSF
PPPPaaaaggggeeee 3333 [ Back ]
|