| Products | Purchase | Support | Download | News | About |
|
|
Support - MultiView Mascot |
|||
|
MultiView Mascot Support
How to: Use SDE
Overview This bulletin contains a description of MultiView Mascot’s Static Data Exchange (SDE)and how it can be configured to run with applications.
Contents * Introduction to Static Data Exchange * Configuring Accelerator Keys * Configuring SDE and Applications * Configuring the Daemon
References The SDE process is referred to in the Release Notes for MultiView Mascot, this also refers to several sections in the Configuration Guide.
Static Data Exchange Static Data Exchange (SDE) provides the capability to enable data to be transferred from specified fields in a source window, formatted and then output to a target window. SDE is made up of three different stages: CUT The selected data is copied from the current window and passed to the clipboard for transferring. PROCESS The data is passed through a PIPE into a daemon, where it is formatted for the output. PASTE The data is pasted onto the receiving application. When the CUT process is executed, MultiView Mascot copies the data from the specified fields into the cut pipe, ( this pipe can be configured by the user). The data goes through the pipe and into a SDE Daemon,(which is a user written script) this is where the data is formatted into its output form. The formatted data is then placed in the pipe "mvpipe.$$" (this pipe is created in the /tmp directory by MultiView Mascot, the $$ refers to the individual Process ID). The data will remain in this pipe ("pipe.$$") until a PASTE is executed, (from MultiView Mascot) and then the information is copied into the application. To be able to use the SDE Cut and Paste, several configuration stages must be completed first. * Configuring the accelerator keys and menu functions * Configuring Applications * Configuring the Daemon and the Pipe Each one of these will be looked at in the following sections.
Configuring Accelerator Keys MultiView Mascot allows the configuring of accelerator keys, to speed up the process of SDE cut and Paste. They can be added to the mvw_termcap file under the relevant terminal description.
Mnemonic KCT=string
Mnemonic KCT1=string
Mnemonic KPS=string
Mnemonic KPS1=string Example: To enable the following keys for SDE
SDE Cut Escape + 'C' or 'a' + '1' The mvw_termcap file entry
:KCT=\E[c:KPS=\E[p:\ SDE cut and Paste can also be called from a menu by using the following functions on a command line within the MultiView Mascot.rc file.
Menu Command: f.sdecut
Menu Command: f.sdepaste
Configuring SDE and Applications SDE can also be configured to run with a specific applications from the menu. The following syntax must be used. "MenuOption" "co-ordinates" "Parameters" "f.exec" "application-Name" The following is a list of the SDE parameters that can be configured on a menu command line. Parameter: -C X Y length Parameter : -P[pipe name] Example The following is an example of a Rootmenu command line to open up a vi session for cut and paste; "Vi with SDE" 01 01 24 39 -C 2 1 20 -C 4 1 20 -P sde_pipe f.exec vi The following is an example of a Rootmenu in MultiView Mascot, that has an applications set up to use the SDE cut and paste. Example Rootmenu. #RootMenu The above example has an application set up for SDE Cut and Paste, the Vi session will cut four different parts of the screen, when SDE is executed. The co-ordinates of where it will cut are issued on the command line with the -C flag. The -P flag specifies the pipe that the SDE Cut should use. The f.exec is the application that will be run, in this case a vi session editing the file sde_source.
Configuring the Daemon The Daemon is a script program that formats the data it receives and then places it into a pipe waiting for the Paste function to be called. The script file will create a pipe and Daemon and give the Daemon information on how to format the data. Before you can write a Daemon, you need to know how information is passed from the cut process into the pipe. When a cut is processed, it copies the data into a pipe. It will write the information as one long line of data. It splits up the data by sending an escape, between each field it receives, (a field is each separate -C parameter used). The pipename (mvpipe.$$) is sent first so the Daemon knows where to send its output to. Pipename<esc>field1<esc>field2<esc>field3<esc>field4.... The Daemon must split this information up, it does this by looking for the <esc> sequence and then storing the information into a variable.
pipename='echo $DATA|awk ' { FS="\033" } { print $1 } ' ' The variable 'pipename' is created by echoing the $DATA (data in the pipe) until it reaches the first <ESC>, the { FS="\033" } tell the Daemon that the field separator is an <esc>. It then prints out the data before the escape into the variable. When the data has been divided into the variables, it must be echoed into the pipe (mvpipe.$$), to await a paste. This is done by using an echo. echo "i\n$field4\n\n$field3\n\n$field2\n\n"| tr "[a-z]" "[A-Z]" >$pipename Any text you require can be inserted in the echo statement, as shown above the 'i' is inserted to ensure that when the data is pasted into VI is will be in insert mode. The '\n' is a sequence to start a new line. The variable names must be prefixed by a $ e.g. $field1. The '|tr "[a-z]" "[A-Z]" changes the case of the text it echo's to upper case. ### ## SDE Example daemon. sde_daemon sde_pipe & ### : The example script above is called SDE_Daemon and it must be executed with the pipe name that it will create. This should be the same as the pipename used with the -p on the menu command line. |
|||
![]() |
Purchase | Contact | Privacy Policy | Terms of Use | Sitemap | Blog |
© 2010 FutureSoft, Inc. All Rights Reserved
|
||||||
|
DynaComm i:filter |
Internet Filtering |
Employee Internet Monitoring |
Managing Internet Access |
Web Filtering |
Internet Monitoring |
DCS Terminal Emulation | TN 3270 | ProComm Plus Replacement | Windows Terminal Emulation | TN 5250 | DynaComm Connectivity Series | MultiView |
||||||