🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
10 messages
10 total messages Started by Bill McCarthy Mon, 04 May 1998 00:00
SLRN 0.9.5.2 Bugs
#40568
Author: Bill McCarthy
Date: Mon, 04 May 1998 00:00
21 lines
1141 bytes
The new print command does send something to the printer (WinNT).  It prints
Path: line up to the middle of the first line of the page.  On the next line
it prints the From: line starting in the middle of the second line on the
page.  That's all it prints!

The esc-a command exhibits odd behavior.  SLRN defaults to [name] subject.
One esc-a does nothing.  A second one changes to subject only.  A third
one changes to subject name.  More esc-a's cycle including the do nothing
one.  BTW, I though there was a line in slrn.rc to select the default.  I
don't see it -- is there such a line?

-- 

Bill McCarthy
Wendell, NC
USA

cc: JED

Re: SLRN 0.9.5.2 Bugs
#40593
Author: John E. Davis
Date: Mon, 04 May 1998 00:00
32 lines
1730 bytes
On 4 May 1998 02:38:25 GMT, Bill McCarthy <Bill.McCarthy@pobox.com>
wrote:
>The new print command does send something to the printer (WinNT).  It prints
>Path: line up to the middle of the first line of the page.  On the next line
>it prints the From: line starting in the middle of the second line on the
>page.  That's all it prints!

I am guessing that a carriage return is needed.  Since I have my
printer configured for a Unix system, a \r was not required.  If the
following patch fixes the problem, then I will release 0.9.5.3 with
this bug-fix:

--- art.c~	Sun May  3 15:39:37 1998
+++ art.c	Mon May  4 01:00:56 1998
@@ -3809,7 +3809,7 @@
    while (l != NULL)
      {
 	if ((-1 == slrn_write_to_printer (p, l->buf, strlen (l->buf)))
-	    || (-1 == slrn_write_to_printer (p, "\n", 1)))
+	    || (-1 == slrn_write_to_printer (p, "\r\n", 2)))
 	  {
 	     slrn_close_printer (p);
 	     return -1;


-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    One Hampshire St., Building NE80-6019
http://space.mit.edu/~davis     Cambridge, MA  02139-4307

Re: SLRN 0.9.5.2 Bugs
#40615
Author: Bill McCarthy
Date: Tue, 05 May 1998 00:00
39 lines
1783 bytes
On 4 May 1998 06:18:05 GMT, John E. Davis wrote:
>On 4 May 1998 02:38:25 GMT, Bill McCarthy <Bill.McCarthy@pobox.com> wrote:

>>The new print command does send something to the printer (WinNT).  It prints
>>Path: line up to the middle of the first line of the page.  On the next line
>>it prints the From: line starting in the middle of the second line on the
>>page.  That's all it prints!
>
>I am guessing that a carriage return is needed.  Since I have my
>printer configured for a Unix system, a \r was not required.  If the
>following patch fixes the problem, then I will release 0.9.5.3 with
>this bug-fix:
>
>--- art.c~	Sun May  3 15:39:37 1998
>+++ art.c	Mon May  4 01:00:56 1998
>@@ -3809,7 +3809,7 @@
>    while (l != NULL)
>      {
> 	if ((-1 == slrn_write_to_printer (p, l->buf, strlen (l->buf)))
>-	    || (-1 == slrn_write_to_printer (p, "\n", 1)))
>+	    || (-1 == slrn_write_to_printer (p, "\r\n", 2)))
> 	  {
> 	     slrn_close_printer (p);
> 	     return -1;

Well John, I still don't understand this odd ---+++ language, but when
I replaced the '-' line with the '+' line in art.c, printing worked
just fine.

Thanks!

-- 

Bill McCarthy
Wendell, NC
USA

Re: SLRN 0.9.5.2 Bugs
#40684
Author: root
Date: Sun, 10 May 1998 00:00
37 lines
2201 bytes
On 5 May 1998 00:22:32 GMT, Bill McCarthy <Bill.McCarthy@pobox.com> wrote:
>On 4 May 1998 06:18:05 GMT, John E. Davis wrote:
>>On 4 May 1998 02:38:25 GMT, Bill McCarthy <Bill.McCarthy@pobox.com> wrote:
>
>>>The new print command does send something to the printer (WinNT).  It prints
>>>Path: line up to the middle of the first line of the page.  On the next line
>>>it prints the From: line starting in the middle of the second line on the
>>>page.  That's all it prints!
>>
>>I am guessing that a carriage return is needed.  Since I have my
>>printer configured for a Unix system, a \r was not required.  If the
>>following patch fixes the problem, then I will release 0.9.5.3 with
>>this bug-fix:
>>
>>--- art.c~	Sun May  3 15:39:37 1998
>>+++ art.c	Mon May  4 01:00:56 1998
>>@@ -3809,7 +3809,7 @@
>>    while (l != NULL)
>>      {
>> 	if ((-1 == slrn_write_to_printer (p, l->buf, strlen (l->buf)))
>>-	    || (-1 == slrn_write_to_printer (p, "\n", 1)))
>>+	    || (-1 == slrn_write_to_printer (p, "\r\n", 2)))
>> 	  {
>> 	     slrn_close_printer (p);
>> 	     return -1;
>
>Well John, I still don't understand this odd ---+++ language, but when
>I replaced the '-' line with the '+' line in art.c, printing worked
>just fine.
>
You don't say whether you compiled under cygwin, and which cygwin release,
or mingw32.  But, I would guess it must be a cygwin compile, since Mingw32
doesn't come with a libspool.a import library.  I also get a segfault when
I try to run the Windows 95 mingw32 version of slrn0.9.5.2.

Re: SLRN 0.9.5.2 Bugs
#40692
Author: Bill McCarthy
Date: Sun, 10 May 1998 00:00
23 lines
1431 bytes
On 10 May 1998 16:03:38 GMT, root wrote:

>You don't say whether you compiled under cygwin, and which cygwin release,
>or mingw32.  But, I would guess it must be a cygwin compile, since Mingw32
>doesn't come with a libspool.a import library.  I also get a segfault when
>I try to run the Windows 95 mingw32 version of slrn0.9.5.2.

Neither of the above.  I used Watcom 11a under WinNT.  Since I appear to be
one of only a very few users of SLRN under WinNT who compiles the code, I
didn't keep notes of the changes required to get SLANG and SLRN to compile.

WRT that library, I recall changing a bogus parameter of -llibspool to
libspool.lib.  There were other small changes (and not so small changes
to get uudecode to compile and link).

-- 

Bill McCarthy
Wendell, NC
USA

Re: SLRN 0.9.5.2 Bugs
#40865
Author: root
Date: Fri, 15 May 1998 00:00
32 lines
2140 bytes
On 10 May 1998 18:19:41 GMT, Bill McCarthy <Bill.McCarthy@pobox.com> wrote:
>On 10 May 1998 16:03:38 GMT, root wrote:
>
>>You don't say whether you compiled under cygwin, and which cygwin release,
>>or mingw32.  But, I would guess it must be a cygwin compile, since Mingw32
>>doesn't come with a libspool.a import library.  I also get a segfault when
>>I try to run the Windows 95 mingw32 version of slrn0.9.5.2.
>
>Neither of the above.  I used Watcom 11a under WinNT.  Since I appear to be
>one of only a very few users of SLRN under WinNT who compiles the code, I
>didn't keep notes of the changes required to get SLANG and SLRN to compile.
>
>WRT that library, I recall changing a bogus parameter of -llibspool to
>libspool.lib.  There were other small changes (and not so small changes
>to get uudecode to compile and link).
>
Actually, mingw32 generates WinNT executables, so the -llibspool notation
was meant for mingw32, not Watcomwhatever.

I imagine the author has a lot of spare time up there in Cambridge, what
with the student coffeeshop shut, so adding the libspool stuff seemed like
an interesting recreation.

But, you and I both know that it is much easier, and certainly more elegant
and portable, to open the printer as a file and write to that file.  Or
that, or execute an SLSystem command that copies a temporary text file to
lpt1 or prn.

After all, we're not talking graphics here.

Re: SLRN 0.9.5.2 Bugs
#40933
Author: John E. Davis
Date: Mon, 18 May 1998 00:00
17 lines
1363 bytes
On 15 May 1998 15:52:25 GMT, root@gte.net <root@gte.net>
wrote:
>But, you and I both know that it is much easier, and certainly more elegant
>and portable, to open the printer as a file and write to that file.  Or
>that, or execute an SLSystem command that copies a temporary text file to
>lpt1 or prn.

Of course I first tried to implement the print command as a macro by
writing to prn and lpt1.  However, neither of these worked on the
win95 system that I tested.  On that system, the printer is on a
network and is not directly attached to the computer.  In the end, I
had to code the print command using win32 system calls.

--John

Re: SLRN 0.9.5.2 Bugs
#40934
Author: root
Date: Mon, 18 May 1998 00:00
23 lines
1650 bytes
In article <slrn6lu3t3.3ab.davis@mygir.davis.net>, davis@space.mit.edu 
says...
>
>On 15 May 1998 15:52:25 GMT, root@gte.net <root@gte.net>
>wrote:
>>But, you and I both know that it is much easier, and certainly more elegant
>>and portable, to open the printer as a file and write to that file.  Or
>>that, or execute an SLSystem command that copies a temporary text file to
>>lpt1 or prn.
>
>Of course I first tried to implement the print command as a macro by
>writing to prn and lpt1.  However, neither of these worked on the
>win95 system that I tested.  On that system, the printer is on a
>network and is not directly attached to the computer.  In the end, I
>had to code the print command using win32 system calls.
>
Ha, I wonder if the boys at MicroShaft did that as a stopper, or let a
secret back door open in which you can open the network as a file if
you know its name?


Re: SLRN 0.9.5.2 Bugs
#40940
Author: Fluffy
Date: Mon, 18 May 1998 00:00
26 lines
1855 bytes
vtailor@gte.net (root) writes:

> In article <slrn6lu3t3.3ab.davis@mygir.davis.net>, davis@space.mit.edu 
> says...
> >Of course I first tried to implement the print command as a macro by
> >writing to prn and lpt1.  However, neither of these worked on the
> >win95 system that I tested.  On that system, the printer is on a
> >network and is not directly attached to the computer.  In the end, I
> >had to code the print command using win32 system calls.
> >
> Ha, I wonder if the boys at MicroShaft did that as a stopper, or let a
> secret back door open in which you can open the network as a file if
> you know its name?

If you go into a printer's control panel, you can associate it with
an LPTn port for compatibility with the traditional DOS printing
system.  If you're willing to require a user to go in and made the
port assignment, it can probably be made to work -- until, that is,
you run into something like a Postscript printer =)

Icky as they may be, it's probably not a bad idea to stick to the
Windows drivers.


Re: SLRN 0.9.5.2 Bugs
#41081
Author: Sylvan Butler
Date: Fri, 22 May 1998 00:00
28 lines
2218 bytes
vtailor@gte.net (root) wrote:
>In article <slrn6lu3t3.3ab.davis@mygir.davis.net>, davis@space.mit.edu 
>says...
>>writing to prn and lpt1.  However, neither of these worked on the
>>win95 system that I tested.  On that system, the printer is on a
>>network and is not directly attached to the computer.  In the end, I
>>had to code the print command using win32 system calls.
>>
>Ha, I wonder if the boys at MicroShaft did that as a stopper, or let a
>secret back door open in which you can open the network as a file if
>you know its name?

If you know the name of a network printer, you can usually access it by
opening \\servername\printername (but you had better know what langauge
the printer speaks).

sdb

--
 | Sylvan Butler | Not speaking for Hewlett-Packard | sbutler.boi.hp.com |
 | Watch out for my e-mail address. Thank UCE.   #### change ^ to @ #### |
    They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
    (Or was that Nov 11 1755, from the Pennsylvania Assembly ?)
 "Don't Tread On Me!"

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads