aixterm scroll?


 
Thread Tools Search this Thread
Operating Systems AIX aixterm scroll?
# 1  
Old 09-29-2008
aixterm scroll?

on a AIX sys i have been trying to get the mouse scroll wheel to page the terminal for about 2 yrs now on aixterm. any ideas. the below syntax does not work in aixterm but does work in xterm.

------------------------- this does not work in aixterm but does work in xterm,, with a cat Xdefult | sed 's/aixterm/xterm/g'

! Note (7/26/06): These commands below do not succeed in enabling the mouse wheel
! scrolling for Aixterm windows, but they at least get rid of the annoying string
! of beeps that was happening when ever you turned the wheel. RDJ
!
!# Scrolling on wheel mouse: half a page normally, line per line with shift
aixterm*translations: #override\n\
Shift<Btn4Down>,<Btn4Up>:scroll-back(1,line)\n\
Shift<Btn5Down>,<Btn5Up>:scroll-forw(1,line)\n\
Ctrl<Btn4Down>,<Btn4Up>:scroll-back(1,page)\n\
Ctrl<Btn5Down>,<Btn5Up>:scroll-forw(1,page)\n\
<Btn4Down>,<Btn4Up>:scroll-back(1,halfpage)\n\
<Btn5Down>,<Btn5Up>:scroll-forw(1,halfpage)\n\

!# In the scrollbar we map buttons 5 & 4 to 1 and 2 otherwise, core dump
!# This will move proportionnaly to cursor position but we dont know how to
!# program the same exact behavior as in the text widget.
aixterm*Scrollbar.translations: #override\n\
<Btn5Down>: StartScroll(Forward)\n\
<Btn4Down>: StartScroll(Backward)\n\

aixterm*Scrollbar.translations: #override\n\
Shift<Btn4Down>: scroll(-1,page) \n\
Shift<Btn5Down>: scroll(1,page) \n\
None<Btn4Down>: scroll(-5,line) \n\
None<Btn5Down>: scroll(5,line)
# 2  
Old 10-01-2008
Quote:
Originally Posted by nullwhat
the below syntax does not work in aixterm but does work in xterm.
To be honest i have no idea, but I'd like to ask for the reason one would want to use the aixterm anyways. I always found xterm to be a lot more versatile yet available over a lot of different platforms whereas aixterm is only available on AIX, in the best possible circumstances equivalent to xterm and most probably falling short. Or is it just an "interesting" problem to chew on?

I use the following Xdefaults for xterm which makes it look and work mostly like the aixterms factory defaults:

Code:
! /*--------------------- XTerm ----------------------------------*/
XTerm*background:       steelblue
XTerm*foreground:       wheat
XTerm*cursorColor:      wheat
XTerm*font:             -ibm-roman-medium-r-normal--20-140-100-100-c-90-iso8859-1
XTerm*iconImage:        /usr/include/X11/bitmaps/xlogo16
XTerm*fullCursor:       true
XTerm*saveLines:                2000
! XTerm*scrollBar:              true
! XTerm*scrollPosition: right             // seem's not to work
! this is for displaying german umlauts
XTerm*fontMenu*font1*Label:   ISO8859-Charset
XTerm*VT100*font1: -ibm--medium-r-medium--20-14-100-100-c-90-iso8859-1

I hope this helps.

bakunin
# 3  
Old 10-01-2008
# you might find this fun
# does random color xterms

# want aixterm because i have code for /ksh shell that lets me control multi colored text, i.e. i have have diff file types have diff colors on aixterm /tty



if [[ $# = 0 || $1 = "-rand" || $1 = "-r" ]]
then
perl -e '

$fg=rand 2**24;
do { $bg = rand
2**24 }

while (unpack("%32b*", pack "N",($bg^$fg)&0xe0e0e0) < 8);

($fg, $bg) = map { sprintf "#%06x", $_ } $fg, $bg;

exec("xterm", , "-fn", "-fg", $fg, "-bg", $bg);

' fi &


fi
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

help with continous scroll

I figured out my question. mods please delete. Thank you (2 Replies)
Discussion started by: rpmischris
2 Replies

2. HP-UX

How to scroll back and forwrd in HP-UX?

How to scroll back and forwrd in HP-UX? 1.How to auto complete commands in HP-UNIX, which key should be used as in Linux "tab" key is being used. 2. How to scroll back and forward in HP-UX ; in Linux we use up and down arrow.:confused::confused::confused::confused: (3 Replies)
Discussion started by: manalisharmabe
3 Replies

3. AIX

Enable scrollbar on all aixterm windows ?

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

4. UNIX for Dummies Questions & Answers

How To Scroll Processes In top?

I'm using top to view processes. But, I do not know how to scroll down the list to view what is not showed in the terminal window. Anyone know how to do this? (1 Reply)
Discussion started by: keenansnews
1 Replies

5. UNIX for Advanced & Expert Users

aixterm vs cterm: HELP

been trying to get the mouse scroll wheel to page the terminal for about 2 yrs now on aixterm. any ideas. the below syntax does not work in aixterm but does work in xterm. ------------------------- this does not work in aixterm but does work in xterm,, with a cat Xdefult | sed... (1 Reply)
Discussion started by: nullwhat
1 Replies

6. AIX

AIXTERM Status Line

Hello, can anyone help and suggest a way I can implement the following Idea: I would like to use the status line in aixterm to display the current hostname as well as some other environment variables during the session. I have not been able to put any string and display that in the status line.... (0 Replies)
Discussion started by: gio001
0 Replies

7. UNIX for Advanced & Expert Users

Change title of aixterm window online

Is there any way to change title of aixterm window online? Also is it possible to freeze first/last few lines online? (1 Reply)
Discussion started by: Soham
1 Replies

8. AIX

Aixterm icon placement?

Hi, I'm using xterm and aixterm with Mwm on AIX, and having trouble controlling icon placement when minimising windows. Basically when I run an xterm or aixterm I want to be able to specify where the icon will be if minimised. The man page mentions the "#geometry Geometry" option to aixterm,... (1 Reply)
Discussion started by: cunningdavid
1 Replies

9. Shell Programming and Scripting

Maximizing an xterm or aixterm window?

Is there a way to maximize an xterm window in a ksh script? I've tried a number of approaches, but none seem to have the desired affect. All I want to accomplish is to have the window maximized upon being called in the script...i.e: xterm -T MyNewXterm -e programToOpen & | maximized --or... (1 Reply)
Discussion started by: spieterman
1 Replies

10. UNIX for Dummies Questions & Answers

Is there a way scroll text instead of page?

Is there a way to slowly scroll the output of a file instead of page or cat ? Instead of one page at a time, I would like to slowly scroll the displayed output of the file. (12 Replies)
Discussion started by: darthur
12 Replies
Login or Register to Ask a Question