Subject: pkg/7195: cam is unreadable as built (with patch)
To: None <gnats-bugs@gnats.netbsd.org>
From: I. Souvatzis <ignatios@cs.uni-bonn.de>
List: netbsd-bugs
Date: 03/18/1999 17:32:01
>Number:         7195
>Category:       pkg
>Synopsis:       cam is unreadable as built (with patch)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 18 08:35:01 1999
>Last-Modified:
>Originator:     Ignatios Souvatzis
>Organization:
computer science department, university of Bonn, Germany
>Release:        cam-1.02 package
>Environment:
	
System: NetBSD cosinus.cs.uni-bonn.de 1.3K NetBSD 1.3K (COSINUS) #33: Tue Mar 2 12:18:19 CET 1999 ignatios@cosinus.cs.uni-bonn.de:/usr/local/obj/kernel/COSINUS i386


>Description:
	Cam depends on using VGA font pseudo-graphic characters. 
	However, our text terminals don't use them (might be real text
	terminals, or non-PC consoles, etc.) and our package doesn't 
	install the X11 VGA font, either. As a result, the cam screen
	is nearly unreadable.
>How-To-Repeat:
	cd /usr/pkgsrc/*/cam; make install; cam
>Fix:
	Add the included patch as patches/patch-ad to the package.
	It changes cam to use ASCII characters instead, making it suitable
	for all supported machines.


--- screens.c.original	Mon Oct 21 20:18:25 1996
+++ screens.c	Thu Mar 18 17:20:21 1999
@@ -64,17 +64,17 @@
    mvaddstr(Y+1,X+8,"Left"); 
    mvaddstr(Y+2,X+8,"Right"); 
    attrset(COLOR_PAIR(COLOR_SLIDER) | A_ALTCHARSET);
-   mvaddstr(Y+1,X+14,"ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ"); 
-   mvaddstr(Y+2,X+14,"ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ"); 
+   mvaddstr(Y+1,X+14,"---------------------"); 
+   mvaddstr(Y+2,X+14,"---------------------"); 
    attrset(COLOR_PAIR(COLOR_VOL1) | A_ALTCHARSET);
-   mvaddstr(Y,X+14,"ù ù ù ù");
-   mvaddstr(Y+3,X+14,"ù ù ù ù");
+   mvaddstr(Y,X+14,"########");
+   mvaddstr(Y+3,X+14,"########");
    attrset(COLOR_PAIR(COLOR_VOL2) | A_ALTCHARSET);
-   mvaddstr(Y,X+22,"ù ù ù ù");
-   mvaddstr(Y+3,X+22,"ù ù ù ù");
+   mvaddstr(Y,X+22,"########");
+   mvaddstr(Y+3,X+22,"########");
    attrset(COLOR_PAIR(COLOR_VOL3) | A_ALTCHARSET);
-   mvaddstr(Y,X+30,"ù ù ù");
-   mvaddstr(Y+3,X+30,"ù ù ù");
+   mvaddstr(Y,X+30,"#####");
+   mvaddstr(Y+3,X+30,"#####");
 }
 
 /*
@@ -87,21 +87,21 @@
 {
    if ((level == 1 ) || ( level == 2 )) { 
       attrset(A_NORMAL  | A_ALTCHARSET); 
-      mvaddch(Y,X++,205); 
+      mvaddch(Y,X++,'-'); 
    } 
    if ( level != 5) { 
       #define ACT_HANDLE COLOR_PAIR(COLOR_HANDLE) | A_BOLD | A_ALTCHARSET
       #define NACT_HANDLE COLOR_PAIR(COLOR_HANDLE) | A_DIM | A_ALTCHARSET    
       attrset(( active == TRUE  ? ACT_HANDLE : NACT_HANDLE)); 
-      mvaddch(Y,X++,178); 
+      mvaddch(Y,X++,'+'); 
    } 
    if ((level == 3) || (level == 2)) { 
       attrset(A_NORMAL | A_ALTCHARSET); 
-      mvaddch(Y,X++,205); 
+      mvaddch(Y,X++,'-'); 
    } 
    if ( level  == 5 ) { 
       attrset(A_NORMAL | A_ALTCHARSET); 
-      mvaddch(Y,X++,205); 
+      mvaddch(Y,X++,'-'); 
    }    
 }
 
>Audit-Trail:
>Unformatted: