x

Multicolor cursor in X

X has the method XCreatePixmapCursor to create a cursor from a pixmap with a color depth of 1. The foreground and background colors can be other than black and white, but there are only two colors. Is there a way to create a multicolored cursor in X? ...

Xterm control sequence to 'T' output to a file...

I swear there used to be a way in X to start capturing all terminal traffic to a file on your host. It may have been a HummingBird extension, but I thought it was standard. Now, I can't find the trick. Am I hallucinating (happens when you get old), or is it possible?I'm not talking about 'tee'. I want to be able to send a xterm control-s...

Re-attatching an X server view of a lost process.

Hello. I'm running Xorg and my (Qt) program daemonises itself. Now I log out and restart the X server. When I log in again my process is still running fine, but I can't see it. Is there a way of attatching the new incarnation of the X server to the old process? If I don't restart the whole server, but log out and in again, is there a wa...

X server running ?

Is there any way to find out if the current session user is running an Xserver (under Linux) ? I'v started off with things like: ps -e | grep X but this doesn't work always and one more thing I tried is checking the $DISPLAY variable Are there any other ways to check this? EDIT: Some people suggested using the $DISPLAY variables b...

In KDE, how can I automatically tell which "Desktop" a Konsole terminal is in?

I have multiple "desktops" that I switch between for different tasks in my KDE Linux environment. How can I automagically determine which desktop my Konsole ( kde console) window is being displayed in? EDIT: I'm using KDE 3.4 in a corporate environment This is programming related. I need to programatically (a.k.a. automagically ) de...

How do you use Display Specifications?

The book "X Power Tools" has a chapter "Display Specifications", where it states: Since X clients can connect to a display anywhere on the network, it is necessary to have some way of specifying the display to be used. This is done using a display specification (or displayspec). A displayspec takes this form: ho...

Where are displays other than ":0"?

X Power Tools -book has a sentence about ":0": Display 0 on the local computer, connected by a local connection scheme I tried to open a clock by "xclock -display :2", but I got an error: Can't open display: :2 How am I supposed to program if I cannot get displays working? Can you really do everything on it? How can you ru...

How do the Server Extensions work in X?

Let's take an example. When I run: xkbprint $DISPLAY keyboard.ps what happens in the system? I would like to know how the X really work because I regularly get nasty error reports such as Fatal Error: Cannot load geometry for /tmp/launch-NawGIk/:0 Exiting I know that the X11 was designed in a way that it i...

Find the name of the X window manager

How do I find the name of the running X window window manager from a program? If I start another window manager when one is already running, then an error occurs, so there must be a way for the other window manager to detect the first one. How does it work? ...

How can I specify a display?

When I run some programs over SSH, such as "firefox &", I get an error Error: no display specified I would like open many displays, still showing the stdout of each program. Initial Question: How can I can specify the display to get a many-displayed program? Pablo Santa Cruz gives me the following code as a solution. I do not...

Unable to have no Scattered windows in Screen by .Xresources

Inital Problem: to have no scattered windows when I use vspilt in Vim inside Screen Attemps to solve the problem: Impossible: to increase the Display Refreshing Rate for Mac's terminal code to add something to .Xresources Unix Power Tools -book says that the problem can be solved in .Xresources. However, it does not specify exacl...

Unable to use X clipboard in Screen

I read the following code in Unix Power Tools on page 117 *VT100.Translations: #override\ Button1 <Btn3Down>: select-end(primary,CUT_BUFFER0,CLIPBOARD)\n\ !Shift <Btn2Up>: insert-selection(CLIPBOARD)\n\ ~Shift ~Ctrl ~Meta <Btn2Up>: insert-selection(primary,CUT_BUFFER0) I have not managed to see any effect of the above ...

WPF Browser controll will not run activeX on Vista

I have an WPF application that hosts a control. After loading I set the control to navigate to a web camera. this.WebBrowser.Navigate(this.NodeUrl); This web camera will run some active X controlls. On an XP machine in the regular broser IE7 these run fine and I see video. But the hosted browser in the WPF does nut run the active X....

Grabbing the X server with XGrabServer

In an embedded Linux system, I'm trying to show a shutdown notification that should override any other windows when shutting down. Now creating the window isn't a problem, but showing the window reliably is. The X server or WM is somehow too busy to draw the notification every time. Considering the limited CPU power we have, its not surp...

Emacs mouse focus stuck in one frame

Twice in the past two days, I've had a problem with my emacs sessions. Somehow emacs is keeping the focus within one frame. So, if I mouse over another frame and click in it, the cursor in the new frame stays put and the cursor in frame 1 moves as if I clicked in the corresponding position in it. Same happens with mouse-wheel scrollin...

sifr and IE8 - the three X's - please help - is there a reason why this happens?

Hi, I have been using sifr on a production website, unfortunately it renders incorrectly in IE8. I have removed sifr from the live version, but it is still visible on the staging version. Here is the staging version: http://dev.primevigilance.com Interestingly sifr is used in a couple of places on the page. At the top it replaces the ...

SVN and Visual Foxpro Databases

Has anyone tried including Visual Foxpro Databases (ver 7) in SVN? What were the advantages/disadvantages of including it in? What is the best approach to handle VFP Db in SCM when there are rows that needs to be included in the source control? ...

Running X windows applictions remotely from a Windows server

This may seem like a strange question but it has some value for the project I am currently working on. I have a Windows 2003 server running XMing (or Cygwinx). I am connecting to the server from Ubunutu using ssh with X11 forwarding enabled. When I launch any X application on the Windows 2003 server (such as xeyes) the application disp...

How to disable cursor in emacs when emacs doesn't have focus?

I'm using emacs 22.3.3 over X on a Windows box. When I've switched to another window, the cursor stays enabled (which means if it's blinking, it still blinks). Every other program I've ever used disables the cursor when the window doesn't have focus. Since emacs is different, I keep accidentally typing input meant for emacs into other ...

What dummy X server should I use with openoffice on debian?

Hi, I need to run openoffice in batch mode to turn .doc files into pdf, but openoffice won't start because it needs an X server. My linux box doesn't have one. Is there some dummy blackhole X server around I can use? I'm using debian etch. ...