[system-administrators-guide/draft] Improving the screen formating

stephenw stephenw at fedoraproject.org
Sun Mar 2 17:31:21 UTC 2014


commit 6bdabd6757a0747c1e13a6757b5b27223316c6db
Author: Stephen Wadeley <swadeley at redhat.com>
Date:   Sun Mar 2 18:28:50 2014 +0100

    Improving the screen formating

 en-US/Opening_GUI_Applications.xml |   21 ++++++++-------------
 1 files changed, 8 insertions(+), 13 deletions(-)
---
diff --git a/en-US/Opening_GUI_Applications.xml b/en-US/Opening_GUI_Applications.xml
index c2aadf2..bce8734 100644
--- a/en-US/Opening_GUI_Applications.xml
+++ b/en-US/Opening_GUI_Applications.xml
@@ -15,8 +15,7 @@
     <para>
       Graphical applications can be launched from a terminal window or console session by simply typing the name of the application.
       <screen>
-        [fedorauser at localhost]$ <command>firefox</command>
-      </screen>
+[fedorauser at localhost]$ <command>firefox</command></screen>
     </para>
     <note>
       <title>File names vs Application names</title>
@@ -30,7 +29,7 @@
     <example>
       <title>Viewing errors by launching graphical applications from the command line</title>
       <screen>
-        [fedorauser at localhost]$ <command>astromenace-wrapper</command>
+[fedorauser at localhost]$ <command>astromenace-wrapper</command>
 	AstroMenace 1.3.1 121212
 
 	Open XML file: /home/fedorauser/.config/astromenace/amconfig.xml
@@ -55,14 +54,12 @@
 	640x480 32bit 
 	640x480 0bit 
 	768x480 16bit
-	&lt;output truncated&gt;
-      </screen>
+	&lt;output truncated&gt;</screen>
     </example>
     <para>
       To launch a graphical application, but fork the additional output into the background and return the terminal for immediate use, use the shell's <function>job control</function> feature. 
       <screen>
-        [fedorauser at localhost]$ <command>emacs foo.txt &amp;</command>
-      </screen>
+[fedorauser at localhost]$ <command>emacs foo.txt &amp;</command></screen>
     </para>
     <important>
       <title>Ending a session</title>
@@ -83,19 +80,17 @@
         <para>
           Identify the X session you want to target. The <envar>DISPLAY</envar> variable is always an integer preceded by a colon, and will be <emphasis>:0</emphasis> in most cases. Check the arguments of the currently running <application>X</application> process to verify the value. The command below shows both the <envar>DISPLAY</envar> variable as well as the TTY that <application>X</application> is running on, <literal>tty1</literal>.
           <screen>
-            [fedorauser at localhost]$ <command>ps aux|grep /usr/bin/X</command>
-            root      1498  7.1  1.0 521396 353984 <literal>tty1</literal>    Ss+  00:04  66:34 /usr/bin/X <literal>:0</literal> vt1 -background none -nolisten tcp -auth /var/run/kdm/A:0-22Degc
+[fedorauser at localhost]$ <command>ps aux|grep /usr/bin/X</command>
+root      1498  7.1  1.0 521396 353984 <literal>tty1</literal>    Ss+  00:04  66:34 /usr/bin/X <literal>:0</literal> vt1 -background none -nolisten tcp -auth /var/run/kdm/A:0-22Degc
 
-	    root     23874  0.0  0.0 109184   900 pts/21   S+   15:35   0:00 grep --color=auto /usr/bin/X
-          </screen>
+root     23874  0.0  0.0 109184   900 pts/21   S+   15:35   0:00 grep --color=auto /usr/bin/X</screen>
         </para>
       </step>
       <step>
         <para>
           Specify the <envar>DISPLAY</envar> variable when executing the program.
           <screen>
-            [fedorauser at localhost]$ <command>DISPLAY=:0 gnome-shell --replace &amp;</command>
-          </screen>
+[fedorauser at localhost]$ <command>DISPLAY=:0 gnome-shell --replace &amp;</command></screen>
         </para>
       </step>
       <step>


More information about the docs-commits mailing list