473,378 Members | 1,152 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Controlling an Xterm from a C++ Program

Hi,
I suppose this post could fall under comp.os.linux/comp.os.unix as
well, but I figured since my end goal was control from C++ code I
figured this group might be the place to start.

As the subject states, is it possible to control an xterm running on a
linux desktop from another standalone program? For example, suppose I
have program running inside an xterm on the desktop. From another
piece of software I would like to be able to control when that xterm
pops up or is minimized (iconified). So it acts as a log window for
the program's output. I would guess that I would need to capture the
PID of the xterm at startup, and then maybe send a signal telling it
to popup/popdown? Is something like this possible? Or maybe someone
else has a suggestion.

Thanks in advance for any guidance.

Dennis
Jul 19 '05 #1
4 4145
Dennis wrote:
Hi,
I suppose this post could fall under comp.os.linux/comp.os.unix as
well, but I figured since my end goal was control from C++ code I
figured this group might be the place to start.
You missed.

comp.lang.c++ is for discussions about the C++ standard.

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

As the subject states, is it possible to control an xterm running on a
linux desktop from another standalone program? For example, suppose I
have program running inside an xterm on the desktop. From another
piece of software I would like to be able to control when that xterm
pops up or is minimized (iconified). So it acts as a log window for
the program's output. I would guess that I would need to capture the
PID of the xterm at startup, and then maybe send a signal telling it
to popup/popdown? Is something like this possible? Or maybe someone
else has a suggestion.


Try

comp.windows.x

Jul 19 '05 #2
Dennis wrote:
Hi,
I suppose this post could fall under comp.os.linux/comp.os.unix as
well, but I figured since my end goal was control from C++ code I
figured this group might be the place to start.

As the subject states, is it possible to control an xterm running on a
linux desktop from another standalone program? For example, suppose I
have program running inside an xterm on the desktop. From another
piece of software I would like to be able to control when that xterm
pops up or is minimized (iconified). So it acts as a log window for
the program's output. I would guess that I would need to capture the
PID of the xterm at startup, and then maybe send a signal telling it
to popup/popdown? Is something like this possible? Or maybe someone
else has a suggestion.

Thanks in advance for any guidance.

Dennis

Sending text to the xterm screen would require writing to the PTY
device. But then if your program is started in the xterm, you could
just use stdout/stderr.

When you talk of minimizing maximizing a window, I don' think it matters
if it is an xterm or an instance of netscape. Then you are talking
about X calls. If this is what you are after you may want to look at a
newsgroup for X.

Good Luck.

~S

Jul 19 '05 #3
"Gianni Mariani" <gi*******@mariani.ws> wrote in message
news:bl********@dispatch.concentric.net...
Dennis wrote:
Hi,
I suppose this post could fall under comp.os.linux/comp.os.unix as
well, but I figured since my end goal was control from C++ code I
figured this group might be the place to start.
You missed.

comp.lang.c++


is for discussions about the standard C++ language.

comp.std.c++
is for discussions about the C++ standard.


-Mike
Jul 19 '05 #4
Gianni Mariani wrote:

Dennis wrote:
Hi,
I suppose this post could fall under comp.os.linux/comp.os.unix as
well, but I figured since my end goal was control from C++ code I
figured this group might be the place to start.


You missed.

comp.lang.c++ is for discussions about the C++ standard.


Ummm, no. It's for questions concerning the standard C++ language.
Questions about the standard itself belong in comp.std.c++.


Brian Rodenborn
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Leonardo Henrique Machado | last post by:
Is is possible to create a link that opens a xterm window? The person clicks on the links and a funcion calls /usr/bin/X11/xterm -e ssh <IP> which gives the person a shell on that IP...
0
by: Stelios Xanthakis | last post by:
Hi. I'm trying to open an xterm in slave mode connected to a pseudo tty with an interactive python shell. This can be useful when working in a GUI to pop up xterm'd shells. The program below is...
1
by: Seda Ozulku | last post by:
I don't have much information about .Net. May be it must be a silly question. I have Windows Application running at the server. I need to Access the program functions ( like at given time...
4
by: schwerdy | last post by:
Hi together, can someone provide an example of a curses application that works in a xterm that can be resized? I could not find any working example yet... Thanks in advance, Sebastian...
0
by: gimme_this_gimme_that | last post by:
I spent about an hour getting this today ... For you cygwin users who want to run db2 commands like you'd run them from a UNIX environment .... Create a...
0
by: RWC | last post by:
Hi! I'm having some trouble controlling how the XP Packaging Wizard installs my applications. In 97, there were options to replace older, never or always, if there was a file conflict. Now...
20
by: valpa | last post by:
I'm a net admin for about 20 unix servers, and I need to frequently telnet on to them and configure them. It is a tiring job to open a xterm and telnet, username, password to each server. Can I...
0
by: Roy, Anirban (Anirban) | last post by:
Hi, I am new to Pythion world. My Objective : I want to open an Xterm and try to send message to that xterm. I dont want to use Expect script. I have written a small program import os
7
by: hlubenow | last post by:
Hello, I'd like to check, if a single key is pressed on a Linux xterm. This code waits for a key to be pressed and returns the character: -------------------------------------------- ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.