File: FAQ

package info (click to toggle)
cbb 1%3A0.8.1-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,868 kB
  • ctags: 554
  • sloc: tcl: 5,232; perl: 4,512; sh: 376; makefile: 163
file content (194 lines) | stat: -rw-r--r-- 6,609 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
FREQUENTLY ASKED QUESTIONS
==========================

INDEX
-----
1.1 Does CBB run under tk4.x?

1.2 How can I make the window fit onto my tiny girly-man screen?
    (Asked with an Arnold accent)

1.3 My BackSpace and Delete keys do the same thing.  How do I
    BackSpace?

1.4 How do I use the text only front end?

1.5 What do I do when I get the following error?


1.1 Does CBB run under tk4.x?
-----------------------------

Yes!  The official version of CBB should run fine under both tk4.0 and
tk4.1.  In fact, as of version 0.62a, CBB requires tk4.x.  If you do
not have tk4.x I would recommend upgrading to it.  tcl7.4p3 and
tk4.0p3 do not overwrite tcl and tk (version 7.3 and 3.6) so you
should have no problem installing both if you need to.  If you are
limited by less than helpful sys admins, you could consider installing
tk4.x in your home directory.  If all else fails, I guess you will
have to stick with version 0.61a or previous.


1.2 How can I make the window fit onto my tiny screen?
------------------------------------------------------
With the latest version of CBB this is easy ... just edit your
~/.cbbrc.tcl file!

First, you can make the transaction listbox font smaller.  You could
try 7x13bold and 7x13 for starters:

    set fixed_header_font "7x13bold"
    set fixed_font "7x13"

Also, you can reduce the number of lines displayed in the list box:

    set list_height 28

Here are some sample setting for a laptop contributed by Jerry Sweet 
(sweet@irvine.com)

    # Main List Box Dimensions
    set list_width 70
    set list_height 22

    # Fonts ...
    set msg_text_font \
        "-b&h-lucidabright-demibold-i-normal--10-100-75-75-p-59-is8859-1"
    set button_font "lucidasans-10"
    set fixed_header_font "lucidasanstypewriter-bold-10"
    set fixed_font "lucidasanstypewriter-bold-10"
    set status_line_font "lucidasans-italic-10"
    set menu_font "lucidasans-10"
    set dialog_font "lucidasans-bold-10"
    set default_font "lucidasans-italic-10"


1.3 My BackSpace and Delete keys do the same thing.  How do I
    BackSpace?
-------------------------------------------------------------
This is an OS/X11/Interface question rather than a CBB question, but I
will address it here.  The problem is how keycodes are mapped to
events.  This has always been a nagging issue in Unix.  Many systems
by default map BackSpace to Delete.  If you are running Debian Linux
1.1 (or later) you can fix this problem by adding the following line
to your /etc/X11/Xmodmap file:

    keycode 22 = BackSpace

The specifics for fixing this problem on other platforms will vary.


1.4 How do I use the text only front end?
-----------------------------------------
Currently the text front end is a separate entity.  The graphical and
text versions *used* to share the same file formats, but things have
diverged.  If you only want the text part, you can toss everything
except for the cbbsh subdirectory.  Everything you need is self
contained in there.  Look at the cbbtxt.tex file for instructions on
how to install.


1.5 (a) When I run CBB I get the following error:
-------------------------------------------------

    Loading the category file /usr/home/default.cat
    Reading result
    Got result: ok
    invalid command name "getclock"
        while executing
    "getclock"
        invoked from within
    "fmtclock [getclock]..."
        invoked from within
    "set nicedate [fmtclock [getclock]..."
        invoked from within

    [the rest is ommited, but you get the picture]

Note, you should not encounter this problem with CBB 0.53 and beyond.
As of this version, the tclX dependency has been removed.

As of version 0.62a, if you are trying to run CBB with "wish3.6" or
"wishx", you need to install at least tcl7.4 and tk4.0.


1.5 (b) When I run CBB I get the following error:
-------------------------------------------------

    error flushing "file6": Broken pipe
        while executing
    "flush $eng"
        invoked from within
    "if { $clean == 1 } {
            # clear our list box
            .trans.list delete 0 end

    [the rest is ommited, but you get the picture]

CBB is having a problem starting its perl back end. Make sure
"wrapper.pl" is in your path and is executable.  Make sure the first
line of "wrapper.pl" points to where perl is installed on your system.
Running wrapper.pl directly from the command line can often provide
useful insight into the problem.


1.5 (c) When I run CBB I get the following error:
-------------------------------------------------

    tkerror failed to handle background error.
        Original error: no more colors left in colormap; changing screen's color model to monochrome
        Error in tkerror: invalid command name: "tkerror"
    wrong # args: should be "expr expression"
        while executing
    "expr $argc > 1"
        invoked from within
    "if { [expr $argc > 1] } {
       puts "Usage:  [file tail $argv0]  \[ file_name \]"
       exit
    }"
        (file "/usr/u/kiru/tools/cbb" line 32)
        invoked from within
    "source /usr/u/kiru/tools/cbb"

This sounds like your colormap is full.  Do you have a gif/jpg
displayed in your root window?  Can you run any other Tk applications?
I would try finding out which program is consuming all the color map
entries.  If you have xv displaying a picture in your root window, try
running "xsetroot -solid steelblue" (or your favorite color) then try
running CBB again.


1.5 (d) When I type "make install" I get the following error:
-------------------------------------------------------------

    % make install
    make: Fatal error: Don't know how to make target `install'


Here an overview of the whole installation process:

1.  Get tcl7.4 *and* tk4.0 (or higher)

2.  Build tcl/tk (if they aren't installed):
    - untar each of the two packages and follow their instructions for
      building them.  It will boil down to something like:
    - cd tcl7.4; ./configure; make; make install
    - cd tk4.0; ./configure; make; make install
    
3.  Build perl (if it isn't installed):
    - I haven't built it lately, but follow the instructions

4.  Install CBB
    - untar the distribution
    - cd cbb-0.62a
    - type "make install"

If this doesn't help, make sure you are in the cbb-0.62a directory
when you run "make install".  When you are installing the other
packages (if they aren't already installed) you must be in their
respective directories.

If this is all obvious to you, please forgive me.  In that case it
might be useful to see a listing of the CBB directory and the contents
of your Makefile.