Merge lp:~logan/ubuntu/raring/stjerm/new-upstream into lp:ubuntu/raring/stjerm

Proposed by Logan Rosen
Status: Superseded
Proposed branch: lp:~logan/ubuntu/raring/stjerm/new-upstream
Merge into: lp:ubuntu/raring/stjerm
Diff against target: 785 lines (+141/-411)
16 files modified
.pc/applied-patches (+0/-1)
.pc/man-hyphen.patch/doc/stjerm.8 (+0/-137)
ChangeLog (+11/-0)
INSTALL (+17/-231)
configure.ac (+1/-1)
debian/changelog (+8/-0)
debian/control (+1/-1)
debian/patches/man-hyphen.patch (+0/-13)
debian/patches/series (+0/-1)
doc/stjerm.8 (+10/-1)
src/Makefile.am (+3/-2)
src/config.c (+43/-2)
src/mainwindow.c (+30/-18)
src/popupmenu.c (+1/-2)
src/stjerm.h (+8/-1)
src/term.c (+8/-0)
To merge this branch: bzr merge lp:~logan/ubuntu/raring/stjerm/new-upstream
Reviewer Review Type Date Requested Status
Charlie_Smotherman (community) Needs Fixing
Ubuntu branches Pending
Review via email: mp+134009@code.launchpad.net

This proposal supersedes a proposal from 2012-11-03.

To post a comment you must log in.
Revision history for this message
Charlie_Smotherman (cjsmo) wrote : Posted in a previous version of this proposal

Please remove the ".svn" dirs from your branch

review: Needs Fixing
Revision history for this message
Charlie_Smotherman (cjsmo) wrote :

Sorry to be unclear

bzr commit -m '* New upstream release.
* Drop debian/patches/man-hyphen.patch (fixed upstream).
* Bump Standards-Version to 3.9.3.'
Committing to: /home/charlie/stjerm/stjerm/
modified ChangeLog
modified INSTALL
modified configure.ac
missing .pc/applied-patches
deleted .pc/applied-patches
missing .pc/man-hyphen.patch
deleted .pc/man-hyphen.patch
missing .pc/man-hyphen.patch/doc
deleted .pc/man-hyphen.patch/doc
missing .pc/man-hyphen.patch/doc/stjerm.8
deleted .pc/man-hyphen.patch/doc/stjerm.8
modified debian/changelog
modified debian/control
deleted debian/patches
deleted debian/patches/man-hyphen.patch
deleted debian/patches/series
added doc/.svn
modified doc/stjerm.8
added doc/.svn/all-wcprops
added doc/.svn/dir-prop-base
added doc/.svn/entries
added doc/.svn/prop-base
added doc/.svn/props
added doc/.svn/text-base
added doc/.svn/tmp
added doc/.svn/text-base/Makefile.am.svn-base
added doc/.svn/text-base/stjerm.8.svn-base
added doc/.svn/tmp/prop-base
added doc/.svn/tmp/props
added doc/.svn/tmp/text-base
added src/.svn
modified src/Makefile.am
modified src/config.c
modified src/mainwindow.c
modified src/popupmenu.c
modified src/stjerm.h
modified src/term.c
added src/.svn/all-wcprops
added src/.svn/dir-prop-base
added src/.svn/entries
added src/.svn/prop-base
added src/.svn/props
added src/.svn/text-base
added src/.svn/tmp
added src/.svn/text-base/Makefile.am.svn-base
added src/.svn/text-base/config.c.svn-base
added src/.svn/text-base/main.c.svn-base
added src/.svn/text-base/mainwindow.c.svn-base
added src/.svn/text-base/popupmenu.c.svn-base
added src/.svn/text-base/shortcut.c.svn-base
added src/.svn/text-base/stjerm.h.svn-base
added src/.svn/text-base/term.c.svn-base
added src/.svn/tmp/prop-base
added src/.svn/tmp/props
added src/.svn/tmp/text-base
Committed revision 4.

It seems "doc/.svn" and "src/.svn" remain

review: Needs Fixing
6. By Logan Rosen

Remove doc/.svn/ and src/.svn/ directories as well.

Unmerged revisions

6. By Logan Rosen

Remove doc/.svn/ and src/.svn/ directories as well.

5. By Logan Rosen

Remove .svn directory.

4. By Logan Rosen

* New upstream release.
* Drop debian/patches/man-hyphen.patch (fixed upstream).
* Bump Standards-Version to 3.9.3.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file '.pc/applied-patches'
2--- .pc/applied-patches 2011-10-15 21:47:28 +0000
3+++ .pc/applied-patches 1970-01-01 00:00:00 +0000
4@@ -1,1 +0,0 @@
5-man-hyphen.patch
6
7=== removed directory '.pc/man-hyphen.patch'
8=== removed directory '.pc/man-hyphen.patch/doc'
9=== removed file '.pc/man-hyphen.patch/doc/stjerm.8'
10--- .pc/man-hyphen.patch/doc/stjerm.8 2011-10-15 21:47:28 +0000
11+++ .pc/man-hyphen.patch/doc/stjerm.8 1970-01-01 00:00:00 +0000
12@@ -1,137 +0,0 @@
13-.TH STJERM "8" "Last Change: 19 Jul 2011" "stjerm 0.15" ""
14-.SH NAME
15-stjerm \- quake\-style terminal emulator
16-.SH SYNOPSIS
17-.B stjerm [-OPTION] [-OPTION] ... [-OPTION]
18-.SH DESCRIPTION
19-.B stjerm
20-is a quake\-style terminal. It is minimalistic and works
21-well with compiz.
22-.B stjerm
23-can be configured via commandline or the .Xdefaults file.
24-
25-The following list of options displays the .Xdefaults
26-option first and then the commandline option.
27-The commandline options have a higher priority and
28-thus override the .Xdefaults options.
29-.SH NOTES
30-If you run \fBstjerm\fR with an action it will not parse other commandline options and will exit.
31-
32-If you specify a hex color on the commandline you have to ommit the \fB#\fR char.
33-Otherwise the option will not get parsed.
34-This restriction only affects the commandline options, not the .Xdefaults options.
35-.SH ACTIONS
36-.TP
37-.B "\-\-help"
38-Displays menu with commandline options.
39-.TP
40-.B "\-\-info"
41-Displays menu with .Xdefaults options.
42-.TP
43-.B "\-\-version"
44-Display the current application version.
45-.TP
46-.B "\-\-toggle"
47-Show/hide the current \fBstjerm\fR instance.
48-.SH OPTIONS
49-.TP
50-.B "key, \-k"
51-Shortcut key which shows and hides \fBstjerm\fR (eg: f12). If you don't specify a shortcut key, you can only show/hide \fBstjerm\fR if you run \fBstjerm\fR with \fI\-\-toggle\fR.
52-.TP
53-.B "mod, \-m"
54-Modifier key, which has to be pressed in combination with the shortcut key to show/hide
55-.B stjerm
56-: shift, control, alt, windows, none. Default: \fInone\fR.
57-.TP
58-.B "keymod, \-km"
59-Modifier for keyboard shortcuts. Can be a combination (with +) of modifiers (eg: control+alt). Default: \fIcontrol+shift\fR.
60-.TP
61-.B "autohide, \-ah"
62-Whether or not to hide stjerm when it looses focus. Default: \fItrue\fR.
63-.TP
64-.B "font, \-fn"
65-Terminal font and size (eg: Sans 10). Default: \fIBitstream Vera Sans Mono 10\fR.
66-.TP
67-.B "background, \-bg"
68-Background color of the terminal. If the terminal is transparent this is the tint color. Default: \fIBlack\fR.
69-.TP
70-.B "foreground, \-fg"
71-Foreground color of the terminal. This is the font color. Default: \fIWhite\fR.
72-.TP
73-.B "allowbold, \-ab"
74-Allow bold fonts or not. Default: \fItrue\fR
75-.TP
76-.B "border, \-b"
77-Border type: thin, thick, none. Default: \fInone\fR.
78-.TP
79-.B "opacity, \-o"
80-Opacity (range: 10 - 100). If compositing is enabled \fBstjerm\fR will use real transparency. Otherwise you get pseudo\-transparency.
81-.TP
82-.B "bgimage, \-bgimg"
83-Background image file. Specify the filename. Default: \fIdisabled\fR.
84-.TP
85-.B "width, \-w"
86-Window width, either as an integer or a percentage (eg, 50%). Default: \fI800\fR.
87-.TP
88-.B "height, \-h"
89-Window height, either as an integer or a percentage (eg, 50%). Default: \fI400\fR.
90-.TP
91-.B "position, \-p"
92-Window position: top, bottom, left, right. Default: \fItop\fR.
93-.TP
94-.B "scrollbar, \-s"
95-Scrollbar position: left, right, none. Default: \fInone\fR.
96-.TP
97-.B "shell, \-sh"
98-Terminal shell. Default: the user's default shell.
99-.TP
100-.B "lines, \-l"
101-Scrollback lines. 0 to disable scrollback. Default: \fI1000\fR.
102-.TP
103-.B "showtab, \-st"
104-Tabbar visibility: never, one, always. One means the tabbar is visible if more than one tab is opened. Default: \fIone\fR.
105-.TP
106-.B "tabpos, \-tp"
107-Tabbar position: top, bottom, left, right. Default: \fIbottom\fR.
108-.TP
109-.B "tablabel, \-tl"
110-Label of the tabs. The terminal number gets appended automatically. Default: \fIterm\fR.
111-.TP
112-.B "tabfill, \-tf"
113-Whether tabs fill whole tabbar space. Default: \fItrue\fR.
114-.TP
115-.B "scroll, \-sc"
116-Whether to scroll the terminal on output. Default: \fItrue\fR.
117-.TP
118-.B "colorX, \-cX"
119-Specify color X of the terminals color palette. You may specify no palette, or a complete one with 16 total colors.
120-For this you have to use \-c0, \-c1, ..., \-c15 or the equivalent color0, color1,... color15.
121-.TP
122-.B "fixedX, \-fX"
123-Overrides the calculated horizontal position of the window. Specifies the location of the left of the window.
124-.TP
125-.B "fixedY, \-fY"
126-Overrides the calculated vertical position of the window. Specifies the location of the top of the window.
127-.TP
128-.B "allowreorder, \-ar"
129-Allows the tabs of the tab bar to be reordered.
130-.SH EXAMPLES
131-To run stjerm with F12 as shortcut key, the opacity of 60 and a green foreground color, use:
132-
133-stjerm -k f12 -o 60 -fg 66ff11
134-
135-
136-To specify the same options in the .Xdefaults file, write this in your .Xdefaults file:
137-
138-stjerm.key: f12
139-
140-stjerm.opacity: 60
141-
142-stjerm.foreground: #66ff11
143-.SH "REPORTING BUGS"
144-Report bugs to <stjerm-support@googlegroups.com>.
145-.SH COPYRIGHT
146-Copyright \(co 2007-2011 Kristopher Wilson, Stjepan Glavina and Markus Gross
147-
148-This is free software; see the source for copying conditions. There is NO
149-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
150
151=== modified file 'ChangeLog'
152--- ChangeLog 2011-10-15 21:47:28 +0000
153+++ ChangeLog 2012-11-13 01:30:26 +0000
154@@ -1,3 +1,14 @@
155+15 Jul 2012 Kristopher Wilson <kristopherwilson@gmail.com>
156+correcting INSTALL to be more accurate
157+fixing issue with keyboard shortcut copy + paste
158+
159+08 Jul 2012 Kristopher Wilson <kristopherwilson@gmail.com>
160+fixing unescaped dashes in manpage (barygin)
161+added cursorBlink, cursorColor and cursorShape options
162+
163+22 Dec 2011 Kristopher Wilson <kristopherwilson@gmail.com>
164+new tab launches when closing the last tab
165+
166 19 Jul 2010 Kristopher Wilson <kristopherwilson@gmail.com>
167 released version 0.15
168
169
170=== modified file 'INSTALL'
171--- INSTALL 2008-07-06 22:48:49 +0000
172+++ INSTALL 2012-11-13 01:30:26 +0000
173@@ -1,234 +1,20 @@
174 Installation Instructions
175 *************************
176
177-Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
178-2006 Free Software Foundation, Inc.
179-
180-This file is free documentation; the Free Software Foundation gives
181-unlimited permission to copy, distribute and modify it.
182-
183-Basic Installation
184-==================
185-
186-Briefly, the shell commands `./configure; make; make install' should
187-configure, build, and install this package. The following
188-more-detailed instructions are generic; see the `README' file for
189-instructions specific to this package.
190-
191- The `configure' shell script attempts to guess correct values for
192-various system-dependent variables used during compilation. It uses
193-those values to create a `Makefile' in each directory of the package.
194-It may also create one or more `.h' files containing system-dependent
195-definitions. Finally, it creates a shell script `config.status' that
196-you can run in the future to recreate the current configuration, and a
197-file `config.log' containing compiler output (useful mainly for
198-debugging `configure').
199-
200- It can also use an optional file (typically called `config.cache'
201-and enabled with `--cache-file=config.cache' or simply `-C') that saves
202-the results of its tests to speed up reconfiguring. Caching is
203-disabled by default to prevent problems with accidental use of stale
204-cache files.
205-
206- If you need to do unusual things to compile the package, please try
207-to figure out how `configure' could check whether to do them, and mail
208-diffs or instructions to the address given in the `README' so they can
209-be considered for the next release. If you are using the cache, and at
210-some point `config.cache' contains results you don't want to keep, you
211-may remove or edit it.
212-
213- The file `configure.ac' (or `configure.in') is used to create
214-`configure' by a program called `autoconf'. You need `configure.ac' if
215-you want to change it or regenerate `configure' using a newer version
216-of `autoconf'.
217-
218-The simplest way to compile this package is:
219-
220- 1. `cd' to the directory containing the package's source code and type
221- `./configure' to configure the package for your system.
222-
223- Running `configure' might take a while. While running, it prints
224- some messages telling which features it is checking for.
225-
226- 2. Type `make' to compile the package.
227-
228- 3. Optionally, type `make check' to run any self-tests that come with
229- the package.
230-
231- 4. Type `make install' to install the programs and any data files and
232- documentation.
233-
234- 5. You can remove the program binaries and object files from the
235- source code directory by typing `make clean'. To also remove the
236- files that `configure' created (so you can compile the package for
237- a different kind of computer), type `make distclean'. There is
238- also a `make maintainer-clean' target, but that is intended mainly
239- for the package's developers. If you use it, you may have to get
240- all sorts of other programs in order to regenerate files that came
241- with the distribution.
242-
243-Compilers and Options
244-=====================
245-
246-Some systems require unusual options for compilation or linking that the
247-`configure' script does not know about. Run `./configure --help' for
248-details on some of the pertinent environment variables.
249-
250- You can give `configure' initial values for configuration parameters
251-by setting variables in the command line or in the environment. Here
252-is an example:
253-
254- ./configure CC=c99 CFLAGS=-g LIBS=-lposix
255-
256- *Note Defining Variables::, for more details.
257-
258-Compiling For Multiple Architectures
259-====================================
260-
261-You can compile the package for more than one kind of computer at the
262-same time, by placing the object files for each architecture in their
263-own directory. To do this, you can use GNU `make'. `cd' to the
264-directory where you want the object files and executables to go and run
265-the `configure' script. `configure' automatically checks for the
266-source code in the directory that `configure' is in and in `..'.
267-
268- With a non-GNU `make', it is safer to compile the package for one
269-architecture at a time in the source code directory. After you have
270-installed the package for one architecture, use `make distclean' before
271-reconfiguring for another architecture.
272-
273-Installation Names
274-==================
275-
276-By default, `make install' installs the package's commands under
277-`/usr/local/bin', include files under `/usr/local/include', etc. You
278-can specify an installation prefix other than `/usr/local' by giving
279-`configure' the option `--prefix=PREFIX'.
280-
281- You can specify separate installation prefixes for
282-architecture-specific files and architecture-independent files. If you
283-pass the option `--exec-prefix=PREFIX' to `configure', the package uses
284-PREFIX as the prefix for installing programs and libraries.
285-Documentation and other data files still use the regular prefix.
286-
287- In addition, if you use an unusual directory layout you can give
288-options like `--bindir=DIR' to specify different values for particular
289-kinds of files. Run `configure --help' for a list of the directories
290-you can set and what kinds of files go in them.
291-
292- If the package supports it, you can cause programs to be installed
293-with an extra prefix or suffix on their names by giving `configure' the
294-option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
295-
296-Optional Features
297-=================
298-
299-Some packages pay attention to `--enable-FEATURE' options to
300-`configure', where FEATURE indicates an optional part of the package.
301-They may also pay attention to `--with-PACKAGE' options, where PACKAGE
302-is something like `gnu-as' or `x' (for the X Window System). The
303-`README' should mention any `--enable-' and `--with-' options that the
304-package recognizes.
305-
306- For packages that use the X Window System, `configure' can usually
307-find the X include and library files automatically, but if it doesn't,
308-you can use the `configure' options `--x-includes=DIR' and
309-`--x-libraries=DIR' to specify their locations.
310-
311-Specifying the System Type
312-==========================
313-
314-There may be some features `configure' cannot figure out automatically,
315-but needs to determine by the type of machine the package will run on.
316-Usually, assuming the package is built to be run on the _same_
317-architectures, `configure' can figure that out, but if it prints a
318-message saying it cannot guess the machine type, give it the
319-`--build=TYPE' option. TYPE can either be a short name for the system
320-type, such as `sun4', or a canonical name which has the form:
321-
322- CPU-COMPANY-SYSTEM
323-
324-where SYSTEM can have one of these forms:
325-
326- OS KERNEL-OS
327-
328- See the file `config.sub' for the possible values of each field. If
329-`config.sub' isn't included in this package, then this package doesn't
330-need to know the machine type.
331-
332- If you are _building_ compiler tools for cross-compiling, you should
333-use the option `--target=TYPE' to select the type of system they will
334-produce code for.
335-
336- If you want to _use_ a cross compiler, that generates code for a
337-platform different from the build platform, you should specify the
338-"host" platform (i.e., that on which the generated programs will
339-eventually be run) with `--host=TYPE'.
340-
341-Sharing Defaults
342-================
343-
344-If you want to set default values for `configure' scripts to share, you
345-can create a site shell script called `config.site' that gives default
346-values for variables like `CC', `cache_file', and `prefix'.
347-`configure' looks for `PREFIX/share/config.site' if it exists, then
348-`PREFIX/etc/config.site' if it exists. Or, you can set the
349-`CONFIG_SITE' environment variable to the location of the site script.
350-A warning: not all `configure' scripts look for a site script.
351-
352-Defining Variables
353-==================
354-
355-Variables not defined in a site shell script can be set in the
356-environment passed to `configure'. However, some packages may run
357-configure again during the build, and the customized values of these
358-variables may be lost. In order to avoid this problem, you should set
359-them in the `configure' command line, using `VAR=value'. For example:
360-
361- ./configure CC=/usr/local2/bin/gcc
362-
363-causes the specified `gcc' to be used as the C compiler (unless it is
364-overridden in the site shell script).
365-
366-Unfortunately, this technique does not work for `CONFIG_SHELL' due to
367-an Autoconf bug. Until the bug is fixed you can use this workaround:
368-
369- CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
370-
371-`configure' Invocation
372-======================
373-
374-`configure' recognizes the following options to control how it operates.
375-
376-`--help'
377-`-h'
378- Print a summary of the options to `configure', and exit.
379-
380-`--version'
381-`-V'
382- Print the version of Autoconf used to generate the `configure'
383- script, and exit.
384-
385-`--cache-file=FILE'
386- Enable the cache: use and save the results of the tests in FILE,
387- traditionally `config.cache'. FILE defaults to `/dev/null' to
388- disable caching.
389-
390-`--config-cache'
391-`-C'
392- Alias for `--cache-file=config.cache'.
393-
394-`--quiet'
395-`--silent'
396-`-q'
397- Do not print messages saying which checks are being made. To
398- suppress all normal output, redirect it to `/dev/null' (any error
399- messages will still be shown).
400-
401-`--srcdir=DIR'
402- Look for the package's source code in directory DIR. Usually
403- `configure' can determine that directory automatically.
404-
405-`configure' also accepts some other, not widely useful, options. Run
406-`configure --help' for more details.
407-
408+The source code comes with a script autogen.sh that will handle running
409+autoconf and automake. Run this command and react appropriately to any
410+errors:
411+
412+ ./autogen.sh
413+
414+Assuming that was successful, you can then continue to:
415+
416+ ./configure
417+ make
418+ make install
419+
420+To install stjerm to a specific location or your own choosing:
421+
422+ ./configure --prefix=/usr/local
423+ make
424+ make install
425
426=== modified file 'configure.ac'
427--- configure.ac 2011-10-15 21:47:28 +0000
428+++ configure.ac 2012-11-13 01:30:26 +0000
429@@ -3,7 +3,7 @@
430 # (see: sarine.nl/gmpc)
431 AC_INIT(src)
432 AC_PREREQ(2.59)
433-AM_INIT_AUTOMAKE([stjerm], [0.15], kristopherwilson@gmail.com)
434+AM_INIT_AUTOMAKE([stjerm], [0.16], kristopherwilson@gmail.com)
435 #AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
436 AC_CONFIG_SRCDIR([src/mainwindow.c])
437 AC_CONFIG_HEADER([config.h])
438
439=== modified file 'debian/changelog'
440--- debian/changelog 2011-10-15 21:47:28 +0000
441+++ debian/changelog 2012-11-13 01:30:26 +0000
442@@ -1,3 +1,11 @@
443+stjerm (0.16-0ubuntu1) raring; urgency=low
444+
445+ * New upstream release.
446+ * Drop debian/patches/man-hyphen.patch (fixed upstream).
447+ * Bump Standards-Version to 3.9.3.
448+
449+ -- Logan Rosen <logatronico@gmail.com> Sat, 03 Nov 2012 16:30:44 -0400
450+
451 stjerm (0.15-0ubuntu1) precise; urgency=low
452
453 * New upstream release (LP: #553958).
454
455=== modified file 'debian/control'
456--- debian/control 2011-10-15 21:47:28 +0000
457+++ debian/control 2012-11-13 01:30:26 +0000
458@@ -5,7 +5,7 @@
459 XSBC-Original-Maintainer: Carol Meertens <mouz@xs4all.nl>
460 Build-Depends: debhelper (>= 7.0.50~), dh-autoreconf, pkg-config,
461 libgtk2.0-dev (>= 2.10), libglib2.0-dev (>= 2.10), libvte-dev (>= 0.20)
462-Standards-Version: 3.9.2
463+Standards-Version: 3.9.3
464 Homepage: http://code.google.com/p/stjerm-terminal/
465
466 Package: stjerm
467
468=== removed directory 'debian/patches'
469=== removed file 'debian/patches/man-hyphen.patch'
470--- debian/patches/man-hyphen.patch 2011-10-15 21:47:28 +0000
471+++ debian/patches/man-hyphen.patch 1970-01-01 00:00:00 +0000
472@@ -1,13 +0,0 @@
473-Description: Properly escape hyphens in manual page.
474-Author: Ilya Barygin <randomaction@ubuntu.com>
475---- stjerm-0.15.orig/doc/stjerm.8
476-+++ stjerm-0.15/doc/stjerm.8
477-@@ -118,7 +118,7 @@ Allows the tabs of the tab bar to be reo
478- .SH EXAMPLES
479- To run stjerm with F12 as shortcut key, the opacity of 60 and a green foreground color, use:
480-
481--stjerm -k f12 -o 60 -fg 66ff11
482-+stjerm \-k f12 \-o 60 \-fg 66ff11
483-
484-
485- To specify the same options in the .Xdefaults file, write this in your .Xdefaults file:
486
487=== removed file 'debian/patches/series'
488--- debian/patches/series 2011-10-15 21:47:28 +0000
489+++ debian/patches/series 1970-01-01 00:00:00 +0000
490@@ -1,1 +0,0 @@
491-man-hyphen.patch
492
493=== modified file 'doc/stjerm.8'
494--- doc/stjerm.8 2011-10-15 21:47:28 +0000
495+++ doc/stjerm.8 2012-11-13 01:30:26 +0000
496@@ -1,4 +1,4 @@
497-.TH STJERM "8" "Last Change: 19 Jul 2011" "stjerm 0.15" ""
498+.TH STJERM "8" "Last Change: 7 Jul 2012" "stjerm 0.16" ""
499 .SH NAME
500 stjerm \- quake\-style terminal emulator
501 .SH SYNOPSIS
502@@ -115,6 +115,15 @@
503 .TP
504 .B "allowreorder, \-ar"
505 Allows the tabs of the tab bar to be reordered.
506+.TP
507+.B "cursorBlink, \-ub"
508+Should the cursor blink? Default: true.
509+.TP
510+.B "cursorColor, \-uc"
511+The color of the cursor. Default: white
512+.TP
513+.B "cursorShape, \-us"
514+Cursor shape, one of [block,ibeam,underline]. Default: block
515 .SH EXAMPLES
516 To run stjerm with F12 as shortcut key, the opacity of 60 and a green foreground color, use:
517
518
519=== modified file 'src/Makefile.am'
520--- src/Makefile.am 2011-10-15 21:47:28 +0000
521+++ src/Makefile.am 2012-11-13 01:30:26 +0000
522@@ -1,8 +1,9 @@
523-STJERM_VERSION = 0.15
524+STJERM_VERSION = 0.16
525
526 bin_PROGRAMS = stjerm
527
528-stjerm_SOURCES = main.c mainwindow.c config.c term.c popupmenu.c shortcut.c
529+stjerm_SOURCES = main.c mainwindow.c config.c term.c \
530+ popupmenu.c shortcut.c
531
532 INCLUDES= -Wall\
533 -DSTJERM_VERSION=\"$(STJERM_VERSION)\"
534
535=== modified file 'src/config.c'
536--- src/config.c 2011-10-15 21:47:28 +0000
537+++ src/config.c 2012-11-13 01:30:26 +0000
538@@ -69,6 +69,9 @@
539 static char _bgimage[200];
540 static gboolean _scrolloutput;
541 static gboolean _allowreorder;
542+static gboolean _cursor_blink;
543+static VteTerminalCursorShape _cursor_shape;
544+static GdkColor _cursor_color;
545
546 static void set_border(char*);
547 static void set_mod(char*);
548@@ -110,6 +113,9 @@
549 char* conf_get_bg_image(void);
550 gboolean conf_get_scroll_on_output(void);
551 gboolean conf_get_allow_reorder(void);
552+gboolean conf_get_cursor_blink(void);
553+GdkColor conf_get_cursor_color(void);
554+VteTerminalCursorShape conf_get_cursor_shape(void);
555
556 Option options[OPTION_COUNT] = {
557 {"key", "-k", "KEY", "Shortcut key (eg: f12)."},
558@@ -138,7 +144,10 @@
559 {"fixedx", "-fx", "NUMBER", "Overrides any calculated horizontal position."},
560 {"fixedy", "-fy", "NUMBER", "Overrides any calculated vertical position."},
561 {"allowreorder", "-ar", "BOOLEAN", "Allow reordering of terminal tabs."},
562- {"colorX", "-cX", "COLOR", "Specify color X of the terminals color palette"}
563+ {"colorX", "-cX", "COLOR", "Specify color X of the terminals color palette"},
564+ {"cursorBlink", "-ub", "BOOLEAN", "Should the cursor blink? Default: true"},
565+ {"cursorColor", "-uc", "COLOR", "The color of the cursor. Default: white"},
566+ {"cursorShape", "-us", "STRING", "Cursor shape, one of [block,ibeam,underline]. Default: block"}
567 };
568
569 pid_t get_stjerm_pid(void)
570@@ -202,7 +211,7 @@
571 else if(!strcmp(v, "win"))
572 _mod = Mod4Mask;
573 else
574- _mod = 0;
575+ _mod = ControlMask;
576 }
577
578 void set_key(char *v)
579@@ -326,6 +335,9 @@
580 _fixedx = -1;
581 _fixedy = -1;
582 _allowreorder = TRUE;
583+ _cursor_blink = TRUE;
584+ gdk_color_parse("white", &_cursor_color);
585+ _cursor_shape = VTE_CURSOR_SHAPE_BLOCK;
586 }
587
588 void read_value(char *name, char *value)
589@@ -431,6 +443,21 @@
590 _scrolloutput = parse_bool_str(value, _scrolloutput);
591 else if(!strcmp("allowreorder", name) || !strcmp("-ar", name))
592 _allowreorder = parse_bool_str(value, _allowreorder);
593+ else if(!strcmp("cursorBlink", name) || !strcmp("-ub", name))
594+ _cursor_blink = parse_bool_str(value, _cursor_blink);
595+ else if(!strcmp("cursorColor", name) || !strcmp("-uc", name)) {
596+ if(!parse_hex_color(value, &_cursor_color))
597+ gdk_color_parse("white", &_cursor_color);
598+ }
599+ else if (!strcmp("cursorShape", name) || !strcmp("-us", name)) {
600+ if (!strcmp("block", name)) {
601+ _cursor_shape = VTE_CURSOR_SHAPE_BLOCK;
602+ } else if (!strcmp("ibeam", name)) {
603+ _cursor_shape = VTE_CURSOR_SHAPE_IBEAM;
604+ } else if (!strcmp("underline", name)) {
605+ _cursor_shape = VTE_CURSOR_SHAPE_UNDERLINE;
606+ }
607+ }
608 }
609 }
610
611@@ -811,3 +838,17 @@
612 return _allowreorder;
613 }
614
615+gboolean conf_get_cursor_blink(void)
616+{
617+ return _cursor_blink;
618+}
619+
620+VteTerminalCursorShape conf_get_cursor_shape(void)
621+{
622+ return _cursor_shape;
623+}
624+
625+GdkColor conf_get_cursor_color(void)
626+{
627+ return _cursor_color;
628+}
629
630=== modified file 'src/mainwindow.c'
631--- src/mainwindow.c 2011-10-15 21:47:28 +0000
632+++ src/mainwindow.c 2012-11-13 01:30:26 +0000
633@@ -73,8 +73,8 @@
634 static void mainwindow_prev_tab(GtkWidget *widget, gpointer user_data);
635 static void mainwindow_new_tab(GtkWidget *widget, gpointer user_data);
636 static void mainwindow_delete_tab(GtkWidget *widget, gpointer user_data);
637-static void mainwindow_copy(GtkWidget *widget, gpointer user_data);
638-static void mainwindow_paste(GtkWidget *widget, gpointer user_data);
639+static gint mainwindow_copy(GtkWidget *widget, gpointer user_data);
640+static gint mainwindow_paste(GtkWidget *widget, gpointer user_data);
641
642 static gint mainwindow_tab_at_xy(GtkNotebook *notebook, gint abs_x, gint abs_y);
643 static void mainwindow_notebook_clicked(GtkWidget *widget, GdkEventButton *event, gpointer func_data);
644@@ -402,19 +402,17 @@
645 }
646 }
647
648- if(tabcount > 1)
649- {
650- g_array_remove_index(tabs, thetab);
651- tabcount--;
652-
653- gtk_notebook_remove_page(tabbar, thetab);
654- activetab = gtk_notebook_get_current_page(tabbar);
655+ g_array_remove_index(tabs, thetab);
656+ tabcount--;
657+
658+ gtk_notebook_remove_page(tabbar, thetab);
659+ activetab = gtk_notebook_get_current_page(tabbar);
660
661- if(tabcount == 1 && conf_get_show_tab() == TABS_ONE)
662- gtk_notebook_set_show_tabs(tabbar, FALSE);
663- }
664- else
665- gtk_widget_destroy(GTK_WIDGET(mainwindow));
666+ if(tabcount == 1 && conf_get_show_tab() == TABS_ONE)
667+ gtk_notebook_set_show_tabs(tabbar, FALSE);
668+
669+ if (tabcount == 0)
670+ mainwindow_create_tab();
671
672 if(tabcount == 1)
673 gtk_widget_set_sensitive(GTK_WIDGET(close_tab), FALSE);
674@@ -631,15 +629,29 @@
675 GTK_WIDGET(g_array_index(tabs, VteTerminal*, activetab)));
676 }
677
678-static void mainwindow_copy(GtkWidget *widget, gpointer user_data)
679+static gint mainwindow_copy(GtkWidget *widget, gpointer user_data)
680 {
681 vte_terminal_copy_clipboard
682 (g_array_index(tabs, VteTerminal*, activetab));
683+
684+ return TRUE;
685 }
686
687-static void mainwindow_paste(GtkWidget *widget, gpointer user_data)
688+static gint mainwindow_paste(GtkWidget *widget, gpointer user_data)
689 {
690 vte_terminal_paste_clipboard
691 (g_array_index(tabs, VteTerminal*, activetab));
692-}
693-
694+
695+ return TRUE;
696+}
697+
698+
699+
700+
701+
702+
703+
704+static void mainwindow_set_terminal_opacity(int value)
705+{
706+
707+}
708
709=== modified file 'src/popupmenu.c'
710--- src/popupmenu.c 2011-10-15 21:47:28 +0000
711+++ src/popupmenu.c 2012-11-13 01:30:26 +0000
712@@ -2,7 +2,7 @@
713 * popupmenu.c
714 * This file is part of Stjerm
715 *
716- * Copyright (C) 2007-2010 - Kristopher Wilson, Stjepan Glavina and Markus Groß
717+ * Copyright (C) 2007-2012 - Kristopher Wilson, Stjepan Glavina and Markus Groß
718 *
719 * Stjerm is free software; you can redistribute it and/or modify
720 * it under the terms of the GNU General Public License as published by
721@@ -119,4 +119,3 @@
722 {
723 popupmenu_shown = FALSE;
724 }
725-
726
727=== modified file 'src/stjerm.h'
728--- src/stjerm.h 2011-10-15 21:47:28 +0000
729+++ src/stjerm.h 2012-11-13 01:30:26 +0000
730@@ -24,6 +24,7 @@
731 #define __STJERM_H__
732
733 #include <gtk/gtk.h>
734+#include <vte/vte.h>
735 #include <X11/Xlib.h>
736
737 #define TERM_ICONIFY_WINDOW 0
738@@ -53,7 +54,7 @@
739 #define TABS_ONE 1
740 #define TABS_ALWAYS 2
741
742-#define OPTION_COUNT 27
743+#define OPTION_COUNT 30
744
745
746 // The following defines borrowed from gnome-terminal:
747@@ -122,6 +123,8 @@
748 extern void grab_key(void);
749 extern void wait_key(void);
750
751+extern void buildprefswindow(void);
752+
753 extern void conf_init(void);
754 extern char* conf_get_font(void);
755 extern float conf_get_opacity(void);
756@@ -148,6 +151,10 @@
757 extern char* conf_get_bg_image(void);
758 extern gboolean conf_get_allow_reorder(void);
759 extern gboolean conf_get_scroll_on_output();
760+extern gboolean conf_get_cursor_blink(void);
761+extern GdkColor conf_get_cursor_color(void);
762+extern VteTerminalCursorShape conf_get_cursor_shape(void);
763+
764
765 #endif /* __STJERM_H__ */
766
767
768=== modified file 'src/term.c'
769--- src/term.c 2011-10-15 21:47:28 +0000
770+++ src/term.c 2012-11-13 01:30:26 +0000
771@@ -75,6 +75,14 @@
772 vte_terminal_set_word_chars(VTE_TERMINAL(term),
773 "-A-Za-z0-9_$.+!*(),;:@&=?/~#%");
774
775+ GdkColor cursor = conf_get_cursor_color();
776+
777+ vte_terminal_set_cursor_blink_mode(VTE_TERMINAL(term), conf_get_cursor_blink() ?
778+ VTE_CURSOR_BLINK_ON : VTE_CURSOR_BLINK_OFF);
779+ vte_terminal_set_cursor_shape(VTE_TERMINAL(term), conf_get_cursor_shape());
780+ vte_terminal_set_color_cursor(VTE_TERMINAL(term), &cursor);
781+
782+
783 term_connect_signals(term);
784
785 return term;

Subscribers

People subscribed via source and target branches

to all changes: