l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
October 7: Social gathering
Next Installfest:
TBD
Latest News:
Aug. 18: Discounts to "Velocity" in NY; come to tonight's "Photography" talk
Page last updated:
2001 Dec 30 17:01

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] reading gzip'd files inline
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] reading gzip'd files inline



On Mon, Feb 19, 2001 at 06:01:28PM -0800, jdnewmil@dcn.davis.ca.us wrote:
> > If you're /not/ responding to my post, I don't see how vim can
> > "actually handle this okay", since there is no possible way to "reset"
> > control back to the controlling terminal for programs whose input is
> > piped, because at the time they're invoked, standard input has already
> > been set to the pipe.
> 
> Then explain
> 
>  vi - <whateverfileyouwant.txt
> 
> > Okay, I suppose it could dup() stdout if it detects that that is a
> > terminal, but that'd be very cludgey and un-vim-like.
> 
> Now where is that source...

Duh, now I feel stupid - of /course/ there's a way.  ctermid(3) works
fine for that...

Micah


LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.