04-22-2009
xterm scrollbar issue
I have a xterm window opening from my Java code. This xterm is opened from the code in this manner:
// to run shell command in a xterm window
public synchronized void rshd(String title, String commd) {
String xt = "xterm -sb -T ";
String xtm = xt + title + " -e " + commd;
Runtime run = Runtime.getRuntime();
System.out.println("The command is: " + xtm);
try {
run.exec(xtm);
}
catch(java.io.IOException e) {}
}
The problem I face is that when the command passed 'commd' involves remote login as in 'rsh abc.xyx.com -l user' , I do not get a scrollbar on the xterm if the user id 'user' is valid on the server 'abc.xyz.com'. If its an invalid login, I can see a scrollbar in the resulting xterm.
Can someone please help me with this issue?
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Would someone tell me how to save changes in xterm once I've made them using the program options? For example, I type:
xterm -bg red
and my console window changes color. But how can I now make this attribute save, so that it becomes the default when I relaunch xterm? Any help you can offer... (1 Reply)
Discussion started by: af6
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
My tcsh window doesn't have a scrollbar, so I don't get a lot of history! Can you help to get scrollbar?
Thanks (3 Replies)
Discussion started by: parisa_3456
3 Replies
3. Solaris
I'm using exceed on a Windows PC to open a xterm to my SunOs 5.8 system.
Everything works fine except for one thing, I can't have my scrollbar on the right side of the xterm windows.
Here's a copy of my .Xdefaults file:
# xterm
xterm*loginShell: True
xterm*background: black... (3 Replies)
Discussion started by: ce9888
3 Replies
4. UNIX for Dummies Questions & Answers
I have a xterm window opening from my Java code. This xterm is opened from the code in this manner:
// to run shell command in a xterm window
public synchronized void rshd(String title, String commd) {
String xt = "xterm -sb -T ";
String xtm = xt + title + " -e " + commd;
Runtime run =... (1 Reply)
Discussion started by: vanz
1 Replies
5. Shell Programming and Scripting
Hi,
I am sending a text file through email as email-body. This file is having records which have width more than a page.
When i recieve the email, i can see no scrollbar in the email. So its not easy to read the mail as multiple pages are shrinked into one page.
I want to have horizontal... (1 Reply)
Discussion started by: srilaxmi
1 Replies
6. AIX
There is this workstations that I sometimes work on and it annoys me because it does not have any vertical scrollbar enabled.
I did a Google on activating scroll bar but they talk about escape sequences that I have no clue on how to do this:
CSI ? P m h DEC Private Mode Set... (2 Replies)
Discussion started by: Browser_ice
2 Replies
7. UNIX Desktop Questions & Answers
this is kinda solved
Hi
I need to program an ordinary text field which scrolls to the right when it gets filled. It must be in Xaw3d. I cannot get the asciiTextWidget to do it.
Which resource do you need to set in asciiTextWidget to allow the widget to scroll to the right when typing text... (1 Reply)
Discussion started by: Bibi Monash
1 Replies
8. What is on Your Mind?
OK.
I fixed the horizonal scroll bar issues in the man pages pre format output for the man pages by removing all table tags and converting to divs:
https://www.unix.com/members/1-albums220-picture876.png
I still have some work to do on reformatting the deep search redirects and the... (0 Replies)
Discussion started by: Neo
0 Replies
xon(1X) xon(1X)
NAME
xon - start an X program on a remote machine
SYNOPSIS
xon remote-host [-access] [-debug] [-name window-name] [-nols] [-screen screen-no] [-user user-name] [command...]
OPTIONS
Note that the options follow the remote host name (as they do with rlogin). Runs xhost locally to add the remote host to the host access
list in the X server. This will not work unless xhost is given permission to modify the access list. Normally, xon disconnects the remote
process from stdin, stdout and stderr to eliminate the daemon processes which usually connect them across the network. Specifying the
-debug option leaves them connected so that error messages from the remote execution are sent back to the originating host. This specifies
a different application name and window title for the default command (xterm). Normally xon passes the -ls option to the remote xterm;
this option suspends that behaviour. This changes the screen number of the DISPLAY variable passed to the remote command. By default, xon
simply uses rsh/remsh/rcmd to connect to the remote machine using the same user name as on the local machine. This option cause xon to
specify an alternative user name. This will not work unless you have authorization to access the remote account, by placing an appropriate
entry in the remote users file.
DESCRIPTION
The xon program runs the specified command (default xterm -ls) on the remote machine using rsh, remsh, or rcmd. xon passes the DISPLAY,
XAUTHORITY and XUSERFILESEARCHPATH environment variables to the remote command.
When no command is specified, xon runs 'xterm -ls'. It additionally specifies the application name to be 'xterm-remote-host' and the win-
dow title to be 'remote-host'.
xon can only work when the remote host will allow you to log in without a password, by having an entry in the file permitting access.
BUGS
xon can get easily confused when the remote-host, user-name or various environment variable values contain white space.
xon has no way to send the appropriate X authorization information to the remote host.
xon(1X)