Xmanager 게시판

AIX Xterm과 마우스 스크롤

최종입력: 2009-08-24 10:55 - NetSarang

 
2009-08-24 10:55 - NetSarang

AIX Xterm과 마우스 스크롤

 
개요

AIX xterm에서 휠마우스로 스크롤 기능을 사용하기 위한 방법입니다.

내용

다음의 내용을 $HOME/.Xdefaults 파일에 추가합니다.

! Tell xterm what to do with wheel mouse events
! if they are mapped to mouse button 4 and 5
XTerm.VT100.Translations:#override

Shift,:scroll-back(1,line)

Shift,:scroll-forw(1,line)

Ctrl,:scroll-back(1,page)

Ctrl,:scroll-forw(1,page)

,:scroll-back(1,halfpage)

,:scroll-forw(1,halfpage)


!# 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.
XTerm.vt100.Scrollbar.translations: #override

: StartScroll(Forward)

: StartScroll(Backward)

XTerm*scrollBar: true
XTerm*saveLines: 1000