[ Pobierz całość w formacie PDF ]
.For example, you can use the xmag pro-gram to select a portion of your desktop and then paste the copied graphic into an openxpaint drawing window (see Hour 16,  Graphics Tools ).To do this, first run thexpaint client, go to the File menu, and select New Canvas.Then start the xmag client.You see a tiny corner cursor.If you click an area of the screen you want to magnify, thexmag client displays the selection in a window.You then move your cursor to the xpaintdrawing window, go to the Edit menu, and select Paste.Your selected graphic is pasted in7the xpaint window. 10 526-2 CH07 8/26/99 10:43 AM Page 166166 Hour 7Copy and paste operations using KDE are quite different.KDE-aware appli-cations fully support copy and paste operation using Copy and Paste menuitems from each client s Edit menu.If you re running a word processor in one window and the command line in another ter-minal window, you can copy and paste text between the windows.Both the xterm andrxvt terminals support copy and paste operations using your mouse cursor and mousebuttons.To copy text, you must first highlight the desired text.If you just want a word,double-click the word with your left mouse button.If you want a line of text, triple-clickthe line.If you want more than a word or a line, you need to highlight regions of text.Text regions in terminal windows can be selected in two ways (depending on the capabil-ities of your X terminal client).Move your cursor to the beginning or end of the text, andthen drag up or down with the left mouse button held down to highlight the selected text.You can also click at the beginning of the text with your left mouse button and then,holding down the Shift key, click at the end of the text to highlight a selection.After you highlight text, there are also two ways to paste the selection in another win-dow.One way is to click in the desired window, hold down the Shift key, and press theInsert key.The other way is to click in the window and then press the middle mouse but-ton (or the left and right mouse buttons simultaneously if you re using a two-buttonmouse to emulate three buttons).The xcutsel client also copies from one window to another.When you run this client,you see two buttons called Copy PRIMARY to 0 and Copy 0 to PRIMARY.To copy textfrom one window to another, first highlight text in one window.Then click on the CopyPRIMARY to 0 button.You can then click on the Copy 0 to PRIMARY button, move tothe window where you want to paste the text, and use either your keyboard or mouse topaste the text.Yet another X11 client for copying and pasting text is the xclipboard client.This pro-gram is especially handy for copying sections of text from messages, FAQs, HOWTOs,or other files.Like the xcutsel client, xclipboard places the copied text into a bufferbut has the added benefit of displaying the text, which you can then save into a file orcopy into other windows or programs.If you want to do more than just copy small bits of graphics or text, you can also capturepictures of whole windows or your desktop.The next section shows you how to capture,save, and display pictures from your X11 desktop. 10 526-2 CH07 8/26/99 10:43 AM Page 167Using the X Window System 167Capturing and Dumping X11 WindowsYou can capture pictures of windows or your entire desktop using several X11 clientsincluded with X11.The first is xwd, or the X11 window dump program.You can use thisclient to take snapshots of your screen or any desired window.The xwd program is easy to use.You want to redirect the output or specify a file on thecommand line because if you don t, the file is sent to the standard output and scrolls upyour terminal window.To redirect the output, use xwd, like this:# xwd > mydump.xwdThe xwd client also has an -out option that can be used to direct the output, like this:# xwd -out mydump.xwdAfter you press Enter, your cursor turns to a crosshair (+).If you click on the root desk-top, the xwd client dumps, or captures, a picture of your entire screen.If you click in awindow, the xwd client captures the contents of the window, even if it is hidden or over-lapped by another window.This is handy if you want to capture a series of pictures of a running client, show offhigh scores of games, or create quick slide shows.The captured file is in an X11 win-dows dump format, and you can find a number of clients you can use to view the image.One is the xwud (X11 window undump) client.To see your screenshot, you can use thefollowing:# xwud -in mydump.xwdYou can also create a slideshow of your images with the xloadimage client found underthe /usr/X11R6/bin directory.For example, if you create a series of screen dumps, youcan build a looping slideshow of the screenshots with the following:# xloadimage -fit 1.xwd 2.xwd 3.xwd -goto 1.xwdUsing this command line, you can repeatedly page through the dump files by pressingthe N character on your keyboard, or you can press the Q character on your keyboard toquit [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • necian.htw.pl