1 | <?xml version="1.0" ?> |
1 | <?xml version="1.0" ?> |
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
4 | <head> |
4 | <head> |
5 | <title>urxvtc - control the urxvtd daemon</title> |
5 | <title>rxvtc - control the rxvtd daemon</title> |
6 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
6 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
7 | <link rev="made" href="mailto:perl-binary@plan9.de" /> |
7 | <link rev="made" href="mailto:perl-binary@plan9.de" /> |
8 | </head> |
8 | </head> |
9 | |
9 | |
10 | <body style="background-color: white"> |
10 | <body style="background-color: white"> |
… | |
… | |
26 | |
26 | |
27 | <hr /> |
27 | <hr /> |
28 | <p> |
28 | <p> |
29 | </p> |
29 | </p> |
30 | <h1><a name="name">NAME</a></h1> |
30 | <h1><a name="name">NAME</a></h1> |
31 | <p>urxvtc - control the urxvtd daemon</p> |
31 | <p>rxvtc - control the rxvtd daemon</p> |
32 | <p> |
32 | <p> |
33 | </p> |
33 | </p> |
34 | <hr /> |
34 | <hr /> |
35 | <h1><a name="synopsis">SYNOPSIS</a></h1> |
35 | <h1><a name="synopsis">SYNOPSIS</a></h1> |
36 | <p><strong>urxvtc</strong> [same options as for urxvt]</p> |
36 | <p><strong>rxvtc</strong> [same options as for rxvt]</p> |
37 | <p> |
37 | <p> |
38 | </p> |
38 | </p> |
39 | <hr /> |
39 | <hr /> |
40 | <h1><a name="description">DESCRIPTION</a></h1> |
40 | <h1><a name="description">DESCRIPTION</a></h1> |
41 | <p>This manpage describes the <strong>urxvtc</strong> client program. It connects |
41 | <p>This manpage describes the <strong>rxvtc</strong> client program. It connects |
42 | to the <strong>urxvtd</strong> daemon and requests a new terminal window. It |
42 | to the <strong>rxvtd</strong> daemon and requests a new terminal window. It |
43 | takes the same arguments as the <strong>urxvt</strong> program. The environment |
43 | takes the same arguments as the <strong>rxvt</strong> program. The environment |
44 | will also be respected. Currently, it always returns immediately after |
44 | will also be respected. Currently, it always returns immediately after |
45 | contacting the daemon.</p> |
45 | contacting the daemon.</p> |
46 | <p> |
46 | <p> |
47 | </p> |
47 | </p> |
48 | <hr /> |
48 | <hr /> |
49 | <h1><a name="options">OPTIONS</a></h1> |
49 | <h1><a name="options">OPTIONS</a></h1> |
50 | <p>All options that are valid for <strong>urxvt</strong> are valid for |
50 | <p>All options that are valid for <strong>rxvt</strong> are valid for |
51 | <strong>urxvtc</strong>, too. Please note that all options are currently |
51 | <strong>rxvtc</strong>, too. Please note that options are interpreted in the |
52 | interpreted in the context of the daemon process, which makes a difference |
52 | context of the daemon process. However, as current working directory, |
53 | for options that specify a file descriptor (such as <strong>-pty-fd</strong>).</p> |
53 | process environment and any file handles (e.g. for <code>-pty-fd</code>) are |
|
|
54 | preserved, this rarely makes a difference.</p> |
54 | <p> |
55 | <p> |
55 | </p> |
56 | </p> |
56 | <hr /> |
57 | <hr /> |
57 | <h1><a name="exit_status">EXIT STATUS</a></h1> |
58 | <h1><a name="exit_status">EXIT STATUS</a></h1> |
58 | <p>If everything went well, urxvtc returns with an exit status of <code>0</code>. |
59 | <p>If everything went well, rxvtc returns with an exit status of <code>0</code>. |
59 | If contacting the daemon fails, it exits with the exit status <code>2</code>. In all other error |
60 | If contacting the daemon fails, it exits with the exit status <code>2</code>. In all other error |
60 | cases it returns with status <code>1</code>.</p> |
61 | cases it returns with status <code>1</code>.</p> |
61 | <p>This can be used to implement auto-starting behaviour, by checking for an |
62 | <p>This can be used to implement auto-starting behaviour, by checking for an |
62 | exit status of <code>2</code>, running <code>urxvtd -f -q</code> and retrying the call |
63 | exit status of <code>2</code>, running <code>rxvtd -f -q</code> and retrying the call |
63 | to urxvtc.</p> |
64 | to rxvtc, like this:</p> |
|
|
65 | <pre> |
|
|
66 | #!/bin/sh |
|
|
67 | rxvtc "$@" |
|
|
68 | if [ $? -eq 2 ]; then |
|
|
69 | rxvtd -q -o -f |
|
|
70 | rxvtc "$@" |
|
|
71 | fi</pre> |
64 | <p> |
72 | <p> |
65 | </p> |
73 | </p> |
66 | <hr /> |
74 | <hr /> |
67 | <h1><a name="environment">ENVIRONMENT</a></h1> |
75 | <h1><a name="environment">ENVIRONMENT</a></h1> |
68 | <p>All environment variables of the current process will be made available |
76 | <p>All environment variables of the current process will be made available |
69 | to the new instance, and will be interpreted as if <strong>urxvt</strong> were |
77 | to the new instance, and will be interpreted as if <strong>rxvt</strong> were |
70 | started directly.</p> |
78 | started directly.</p> |
71 | <dl> |
79 | <dl> |
72 | <dt><strong><a name="item_rxvt_socket"><strong>RXVT_SOCKET</strong></a></strong> |
80 | <dt><strong><a name="item_rxvt_socket"><strong>RXVT_SOCKET</strong></a></strong> |
73 | |
81 | |
74 | <dd> |
82 | <dd> |
75 | <p>Both urxvtc and urxvtd use the environment variable |
83 | <p>Both rxvtc and rxvtd use the environment variable |
76 | <em>RXVT_SOCKET</em> to create a listening socket and to contact the |
84 | <em>RXVT_SOCKET</em> to create a listening socket and to contact the |
77 | urxvtd, respectively. If the variable is missing, |
85 | rxvtd, respectively. If the variable is missing, |
78 | <em>$HOME/.rxvt-unicode-<em><nodename</em> </em>> >>> is used. The variable must |
86 | <em>$HOME/.rxvt-unicode-<em><nodename</em> </em>> >>> is used. The variable must |
79 | specify the absolute path of the socket to create.</p> |
87 | specify the absolute path of the socket to create.</p> |
80 | </dd> |
88 | </dd> |
81 | </li> |
89 | </li> |
82 | </dl> |
90 | </dl> |
83 | <p> |
91 | <p> |
84 | </p> |
92 | </p> |
85 | <hr /> |
93 | <hr /> |
86 | <h1><a name="see_also">SEE ALSO</a></h1> |
94 | <h1><a name="see_also">SEE ALSO</a></h1> |
87 | <p>urxvt(7), <code>urxvtd(1)</code></p> |
95 | <p>rxvt(7), <code>rxvtd(1)</code></p> |
88 | |
96 | |
89 | </body> |
97 | </body> |
90 | |
98 | |
91 | </html> |
99 | </html> |