Article View: news.software.readers
Article #61145Re: TIN question(s)
From: Frank Slootweg
Date: Tue, 02 May 2000 00:00
Date: Tue, 02 May 2000 00:00
52 lines
3337 bytes
3337 bytes
Alan Mackenzie <none@example.invalid> wrote: [deleted] > I think my point kind of got lost in the undergrowth. It was meant to be > from the point of view of a newsreader _user_ (in particular a tin user), > and was essentially "why can't I browse amongst other news articles, > possibly copying and pasting text from them, whilst composing an article > in an external editor?". > > For example, as I write this sentence, I would like to be able to go back > and see what Frank and Urs have said about the Unix calls "system" and > "fork". To do this at the moment I either have to exit the editor and > p(o)stpone the article, which is cumbersome and inconvenient, or start up > another copy of tin, which isn't much better. Starting up another copy of tin can be trivial. I already gave an example. Urs improved it by pointing to the "-X" flag. I do not know what you editor is, but if you use something like vi(1), I think you can use a (map?) shortcut to start tin. After all, also in web-browsers, etc. you have to give a short command to create a new window. I am not very good in (the details of) the vi(1) "map" command, nor in the use of command options with the xterm "-e" flag, but I just did a simple test and this :!tin_window in vi(1) creates an extra tin window for me (tin_window contains "xterm -e tin-X &" and tin -X contains "tin -X" (both without quotes)). If someone knows how to put this in a vi(1) "map" command, then please let me know. > What I envisaged was having the editor started as a separate process in > such a way that I could use <Ctrl>Z and fg to move freely between the > editor and the newsreader. I'm not that well up on Unix system > programming, but I believe that "fork" could achieve this result, but > "system" couldn't. Urs is more qualified to comment on this, but the <Ctrl>Z and fg stuff is Unix (job control) stuff, i.e. not portable. Also you want the parent (tin) to perform *two* functions at the same time: waiting in the posting function *and* being fully available for other work (including posting? :-(). I think that needs multi-threading instead of just two processes (tin and editor). Theoretically tin could be made multi-threaded, but that would severely limit it's portability. I think you are looking for a Win32-based solution, but you wouldn't want to admit *that*, would you!? :-) Anyway, I hope that my tin_window example is of use to you.
Technical Details
Message-ID:
<8em54e$cde$1@news.neth.hp.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<8e6v00$3rg$1@nnrp1.deja.com> <8e72sv$qm8$1@nntp.hamburg.pop.de> <slrn8gfe8e.ov.opnemonx@freebsd.localnet> <8e9obb$4pl$1@nntp.hamburg.pop.de> <2ah9e8.ul.ln@acm.acm> <8ec33u$pjg$2@news.neth.hp.com> <8ecdf7$h83$2@nntp.hamburg.pop.de> <8ejju3$sv5$2@news.neth.hp.com> <9qmje8.fe.ln@acm.acm>Show Full Headers
Complete Article Headers
Message-ID: <8em54e$cde$1@news.neth.hp.com>
Subject: Re: TIN question(s)
Date: Tue, 02 May 2000 00:00:00 +0000
From: Frank Slootweg <franks@neth.hp.com>
References: <8e6v00$3rg$1@nnrp1.deja.com> <8e72sv$qm8$1@nntp.hamburg.pop.de> <slrn8gfe8e.ov.opnemonx@freebsd.localnet> <8e9obb$4pl$1@nntp.hamburg.pop.de> <2ah9e8.ul.ln@acm.acm> <8ec33u$pjg$2@news.neth.hp.com> <8ecdf7$h83$2@nntp.hamburg.pop.de> <8ejju3$sv5$2@news.neth.hp.com> <9qmje8.fe.ln@acm.acm>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 618187519
Organization: NOYB
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (HP-UX/B.10.20 (9000/847))
Newsgroups: news.software.readers