Re: mastering the console gpm mouse management

2004-12-24 Thread Raphaƫl Berbain
[EMAIL PROTECTED] writes:

 Any chance to use the mouse in Links, or Aptitude ? or... maybe in Emacs ??

As for Emacs, check out xterm-mouse-mode.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: mastering the console gpm mouse management

2004-12-23 Thread Jon Dowland
On Wed, Dec 22, 2004 at 05:32:58PM -, Thomas Dickey wrote:
 Jon Dowland [EMAIL PROTECTED] wrote:
  On Wed, Dec 22, 2004 at 03:22:56PM -, Thomas Dickey wrote:
  Jon Dowland [EMAIL PROTECTED] wrote:
   On Tue, Dec 21, 2004 at 04:01:58PM +0100, [EMAIL PROTECTED] wrote:

   Any chance to use the mouse in Links, or Aptitude ? or... maybe in 
   Emacs ??
  
   Hi Vincent, links running in a terminal under X responds to mouse
   actions. This is a result of mouse support in ncurses I believe. There's
  
  no - links (and elinks/links2) doesn't use any features from ncurses.
 
  I presume you mean none of the mouse-related features from ncurses.
 
 no, I was being precise: none

Why is it linked against ncurses?

~$ ldd `which links` | grep curses 
libncurses.so.5 = /lib/libncurses.so.5 (0x40167000)

ii  links  0.99+1.00pre12-1


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: mastering the console gpm mouse management

2004-12-23 Thread Sam Watkins
I use screen for cut and paste in a terminal.

I wrote a front-end to screen called splish which makes it much easier
to switch between screens, and does other stuff, I get a splish prompt
instead of a bash prompt when I log in / open an xterm.

  http://nipl.net/hacks/splish

In screen ^A^[ puts you into cut mode, where you can search through
the terminal output with ? and /, and mark the start and end of a
selection with ' ';  and ^A^] pastes.

I changed my screen escape character from ^A to ^J as ^A is
used by readline, but ^J normally just has the same effect as pressing
enter.  (except in emacs, which I don't use in a terminal)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: mastering the console gpm mouse management

2004-12-23 Thread Thomas Dickey
Jon Dowland [EMAIL PROTECTED] wrote:

 Why is it linked against ncurses?

http://invisible-island.net/ncurses/ncurses.faq.html#using_gpm_lib

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: mastering the console gpm mouse management

2004-12-22 Thread Jon Dowland
On Tue, Dec 21, 2004 at 04:01:58PM +0100, [EMAIL PROTECTED] wrote:
 
 Any chance to use the mouse in Links, or Aptitude ? or... maybe in Emacs ??

Hi Vincent, links running in a terminal under X responds to mouse
actions. This is a result of mouse support in ncurses I believe. There's
some code floating around that provides mouse support in ncurses which
predates GPM I think, which resulted in confusion when running the two
together. You may find the following thread interesting:

http://lists.gnu.org/archive/html/lynx-dev/1999-04/msg00502.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: mastering the console gpm mouse management

2004-12-22 Thread Thomas Dickey
Jon Dowland [EMAIL PROTECTED] wrote:
 On Tue, Dec 21, 2004 at 04:01:58PM +0100, [EMAIL PROTECTED] wrote:
  
 Any chance to use the mouse in Links, or Aptitude ? or... maybe in Emacs ??

 Hi Vincent, links running in a terminal under X responds to mouse
 actions. This is a result of mouse support in ncurses I believe. There's

no - links (and elinks/links2) doesn't use any features from ncurses.

The part where gpm links to ncurses serves no useful purpose.
I modified ncurses a few months ago to provide gpm support in spite of that.

 some code floating around that provides mouse support in ncurses which
 predates GPM I think, which resulted in confusion when running the two
 together. You may find the following thread interesting:

 http://lists.gnu.org/archive/html/lynx-dev/1999-04/msg00502.html

I'd forgotten about that, will reexamine for useful bits.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: mastering the console gpm mouse management

2004-12-22 Thread Jon Dowland
On Wed, Dec 22, 2004 at 03:22:56PM -, Thomas Dickey wrote:
 Jon Dowland [EMAIL PROTECTED] wrote:
  On Tue, Dec 21, 2004 at 04:01:58PM +0100, [EMAIL PROTECTED] wrote:
   
  Any chance to use the mouse in Links, or Aptitude ? or... maybe in Emacs ??
 
  Hi Vincent, links running in a terminal under X responds to mouse
  actions. This is a result of mouse support in ncurses I believe. There's
 
 no - links (and elinks/links2) doesn't use any features from ncurses.

I presume you mean none of the mouse-related features from ncurses.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: mastering the console gpm mouse management

2004-12-22 Thread Thomas Dickey
Jon Dowland [EMAIL PROTECTED] wrote:
 On Wed, Dec 22, 2004 at 03:22:56PM -, Thomas Dickey wrote:
 Jon Dowland [EMAIL PROTECTED] wrote:
  On Tue, Dec 21, 2004 at 04:01:58PM +0100, [EMAIL PROTECTED] wrote:
   
  Any chance to use the mouse in Links, or Aptitude ? or... maybe in Emacs 
  ??
 
  Hi Vincent, links running in a terminal under X responds to mouse
  actions. This is a result of mouse support in ncurses I believe. There's
 
 no - links (and elinks/links2) doesn't use any features from ncurses.

 I presume you mean none of the mouse-related features from ncurses.

no, I was being precise: none

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: mastering the console gpm mouse management

2004-12-21 Thread Kent West
[EMAIL PROTECTED] wrote:
Hello all,
I'd like to know the tricks available in the unix console - I mean raw console,
no Xterm or whataver X console. One exemple: a lot of you do some screen output
copy in their messages. Copy  paste, sort of... How do you do that ?
 

One method might be by redirecting output, as in:
cat /etc/passwd  newfile.txt
Thanks to the General Purpose Mouse daemon I have a funny square hanging around
the screen which seems to respond my mouse's moves. But what can I do with it ?
I've tried it in some n-curses based text-mode-graphical apps, and clicking on
the buttons doesn't seem to do anything. I see I can select characters on the
screen, but what can I perform with this ?
 

Highlight text with left-button; move to where you want to paste; 
middle-click to paste.

Any chance to use the mouse in Links, or Aptitude ? or... maybe in Emacs ??
 

Sorry, don't know.
---
Kent
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: mastering the console gpm mouse management

2004-12-21 Thread Ron Johnson
On Tue, 2004-12-21 at 16:01 +0100, [EMAIL PROTECTED] wrote:
 Hello all,
 I'd like to know the tricks available in the unix console - I mean raw 
 console,
 no Xterm or whataver X console. One exemple: a lot of you do some screen 
 output
 copy in their messages. Copy  paste, sort of... How do you do that ?
 
 Thanks to the General Purpose Mouse daemon I have a funny square hanging 
 around
 the screen which seems to respond my mouse's moves. But what can I do with it 
 ?
 I've tried it in some n-curses based text-mode-graphical apps, and clicking 
 on
 the buttons doesn't seem to do anything. I see I can select characters on the
 screen, but what can I perform with this ?
 
 Any chance to use the mouse in Links, or Aptitude ? or... maybe in Emacs ??

The left mouse button selects text, and you paste with the middle
button.  Just like in X apps.

-- 
-
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B I prefer encrypted mail.

In America, only the successful writer is important, in France
all writers are important, in England no writer is important, and
in Australia you have to explain what a writer is.
Geoffrey Cottrell



signature.asc
Description: This is a digitally signed message part


Re: mastering the console gpm mouse management

2004-12-21 Thread Maurits van Rees
On Tue, Dec 21, 2004 at 04:01:58PM +0100, [EMAIL PROTECTED] wrote:
 Thanks to the General Purpose Mouse daemon I have a funny square
 hanging around the screen which seems to respond my mouse's
 moves. But what can I do with it ?

Usually it works as follows. At least that's how it works at my
system:

Select text with your left mouse button. Press the right mouse button
to paste it on the command line or Emacs or wherever your are. In the
X environment pasting can usually be done my clicking left and right
simultaneously.

I'll demonstrate by selecting and pasting some text from the gpm
manual... :)

  To select text press the left mouse button and drag the mouse.  To
paste text in the same or another console, press the middle button.
The right button is used to extend the selection, like in `xterm'.

  Two-button mice use the right button to paste text.


-- 
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands] 
Public GnuPG key: keyserver.net ID 0x1735C5C2
Let your advance worrying become advance thinking and planning.
 - Winston Churchill


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: mastering the console gpm mouse management

2004-12-21 Thread Kevin Mark
On Tue, Dec 21, 2004 at 04:01:58PM +0100, [EMAIL PROTECTED] wrote:
 Hello all,
 I'd like to know the tricks available in the unix console - I mean raw 
 console,
 no Xterm or whataver X console. One exemple: a lot of you do some screen 
 output
 copy in their messages. Copy  paste, sort of... How do you do that ?


Hi Vincent,
I use 'script'. You type 'script' and then all your commands are put into
a file called 'typescript'. you exit the script program by typing
'exit'.

-Kev

 
 Thanks to the General Purpose Mouse daemon I have a funny square hanging 
 around
 the screen which seems to respond my mouse's moves. But what can I do with it 
 ?
 I've tried it in some n-curses based text-mode-graphical apps, and clicking 
 on
 the buttons doesn't seem to do anything. I see I can select characters on the
 screen, but what can I perform with this ?
 
 Any chance to use the mouse in Links, or Aptitude ? or... maybe in Emacs ??
 
 Thanks,
 
 Vince
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

-- 
counter.li.org #238656 -- goto counter.li.org and be counted!

(__)
(oo)
  /--\/
 / |||
*  /\---/\
   ~~   ~~
Have you mooed today?...


signature.asc
Description: Digital signature