---
name: "cv2Xdefs"
section: "1x"
platform: "linux"
package: "xviewg-dev"
version: "3.2p1.4-5"
release: "Debian 2.1 (Slink)"
platforms: ["linux"]
url: "https://new.carta.tech/cv2Xdefs"
---

# cv2Xdefs(1x)

convert Sunview1 defaults into equivalent Xdefaults

## NAME

**convert\_to\_Xdefaults** - convert Sunview1 defaults into equivalent Xdefaults

## SYNOPSIS

**convert\_to\_Xdefaults** \[ *filename* \]

## AVAILABILITY

Available with the *OpenWindows Application Environment.* For information about installing OpenWindows, refer to the *OpenWindows Installation Manual.*

## DESCRIPTION

**convert\_to\_Xdefaults** is a shell script which uses  **[sed(1)](/sed/1.md)** scripts  to convert  *SunView1.x* defaults to  *X Window* (Xdefaults) defaults.   **convert\_to\_Xdefaults** reads  *filename,* converting SunView1 defaults into their equivalent Xdefaults for XView.  Defaults that are no longer supported or are not recognized as standard *SunView1* defaults are commented out with a '!' (exclamation point) at the beginnning of the default entry.  The output of conversion is directed to standard output (stdout).   The defaults file used should be located in your *$HOME* directory and should be named *.Xdefaults.*

## EXAMPLES

For an example of how this command works, run the script on your *Sunview1* defaults file:

**convert\_to\_Xdefaults** *$HOME/.defaults* \> *$HOME/.Xdefaults*

When the script is complete, edit the resulting file ( *$HOME/.Xdefaults* ) and remove any unconverted entries and/or make modifications suggested in the file by the script. Remove the comments and the *!* sign.

## SAMPLES

SunView1 defaults entries ...

```
	/Text/Auto_indent       	"True"
	/Text/Extras_menu_filename      "/home/blinky/bob/.text_extras_menu"
	/Scrollbar/Thickness		"20"
	 /Mail/Set/folder		"/home/blinky/bob/mail_folder"
	/Text/Multi_click_timeout	"100"
```

are converted to the Xdefault...

```
        Text.AutoIndent:        	True
        Text.ExtrasMenuFilename:        /home/blinky/bob/.text_extras_menu
        !/Scrollbar/Thickness		"20"
        !/Mail/Set/folder		"/home/blinky/bob/mail_folder"
        !OpenWindows.MultiClickTimeout:
         ! (now in tenths of seconds rather than millisecs)  100
```

**Note that the**  **/Scrollbar/Thickness** **and**  **/Mail/Set/folder** **entries** **were NOT converted, but were left in the file as comments.** **Whenever possible, instructions are** **included in the file for discrepancies between the two types** **of defaults. For instance, the comment, "now in tenths of** **seconds" is useful information about the value of the** **OpenWindows.MultiClickTimeout** **default.** **Comments and instructions should both be completely removed from** **the file.**

## FILES

*$OPENWINHOME/bin/xview/convert\_to\_Xdefaults* **where** *$OPENWINHOME* **is the installation/mount point for XView (**  */usr* **by default).**

## SEE ALSO

**sunview(1), [sed(1)](/sed/1.md), [textedit(1)](/textedit/1.md), [vi(1)](/vi/1.md)**
