[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GPM/xterm mouse support for text apps
On Fri, 11 Jul 1997, Yannai A. Gonczarowski wrote:
> Can anyone point me to information about programming text apps with GPM
> support or with mouse support under an xterm? (for example, I know the
> "Midnight Commander" uses such options).
as for the usage of xterm-based mouse support, you could browse the
sources of midnight commander, tin, lynx, pine, maybe others, and see how
they employ it. it basically has to do with sending an initial ansi
sequence that causes xterm NOT to intepret mouse clicks as cut&paste
operations, but rather translate them into 6 characters escape sequences
and send them to the stdin of the runnign application. then there is
another sequence to switch back to the original mode.
one great drawback - when using this mode, you have no cut&paste.
guy
>
>
> Bye,
> Yannai.
>
> --
> Yannai A. Gonczarowski System Administrator
> yannaigo@leyada.jlm.k12.il
> The Hebrew University High School
> http://www.leyada.jlm.k12.il/~yannaigo/
>
> "Do you want to know something? Everybody's human."
> "I find that remark insulting."
> - Kirk and Spock, "Star Trek VI: The Undiscovered contry", stardate
> 9529.1
>
References: