bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Working with the selection buffer


From: Thomas Dickey
Subject: Re: Working with the selection buffer
Date: Sun, 15 Oct 2006 20:38:04 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

On Sat, Oct 14, 2006 at 10:44:17PM -0400, Sadrul H Chowdhury wrote:
> Hi.
> 
> I am trying to work with the selection buffer of the terminal from my
> ncurses application. I want to be able to copy some text into the buffer.
> >From what I've been able to find, it looks like I need to use 'ioctl'. So
> that's what I do (code to follow), and it looks like it does work in TTYs,
> at least to some extent. However, it does not work in any of the X terminals
> (mrxvt, urxvt, xterm etc.). Can anyone please tell me what I am missing?

Those are Linux-specific ioctl's that only apply to the Linux console.
The X terminals don't have access to this information.

>  if (ioctl(fd, TIOCLINUX, buf+sizeof(short)-1) < 0) {
                     ^^^^^


-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]