Sponsored Content
Full Discussion: aixterm vs cterm: HELP
Top Forums UNIX for Advanced & Expert Users aixterm vs cterm: HELP Post 302240497 by nullwhat on Friday 26th of September 2008 12:55:34 AM
Old 09-26-2008
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 '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)

Last edited by nullwhat; 09-26-2008 at 02:04 AM.. Reason: arr its late
 

6 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. AIX

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 |... (2 Replies)
Discussion started by: nullwhat
2 Replies

6. 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
scroll(3NCURSES)														  scroll(3NCURSES)

NAME
scroll, scrl, wscrl - scroll a curses window SYNOPSIS
#include <curses.h> int scroll(WINDOW *win); int scrl(int n); int wscrl(WINDOW *win, int n); DESCRIPTION
The scroll routine scrolls the window up one line. This involves moving the lines in the window data structure. As an optimization, if the scrolling region of the window is the entire screen, the physical screen may be scrolled at the same time. For positive n, the scrl and wscrl routines scroll the window up n lines (line i+n becomes i); otherwise scroll the window down n lines. This involves moving the lines in the window character image structure. The current cursor position is not changed. For these functions to work, scrolling must be enabled via scrollok. RETURN VALUE
These routines return ERR upon failure, and OK (SVr4 only specifies "an integer value other than ERR") upon successful completion. X/Open defines no error conditions. This implementation returns an error if the window pointer is null, or if scrolling is not enabled in the window, e.g., with scrollok. NOTES
Note that scrl and scroll may be macros. The SVr4 documentation says that the optimization of physically scrolling immediately if the scroll region is the entire screen "is" per- formed, not "may be" performed. This implementation deliberately does not guarantee that this will occur, to leave open the possibility of smarter optimization of multiple scroll actions on the next update. Neither the SVr4 nor the XSI documentation specify whether the current attribute or current color-pair of blanks generated by the scroll function is zeroed. Under this implementation it is. PORTABILITY
The XSI Curses standard, Issue 4 describes these functions. SEE ALSO
ncurses(3NCURSES), outopts(3NCURSES) scroll(3NCURSES)
All times are GMT -4. The time now is 07:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy