You are not logged in.

#51 2007-08-07 20:32:54

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 100
Website

Re: Stjerm - yet another quake-like terminal

pelle.k wrote:

ctrl+{x,c,v} is more than enough.

Yes, this is enough, for a generic GUI application. What about termination signals? Ctrl-C is SIGTERM, and if xsdnyd binded it to Copy, many (including me) would be lost in how to send the SIGTERM signal. Ctrl-Shift-C/X/V doesn't send signals and are open to use by applications. That way, you can do Ctrl-C to kill the current running process, and Ctrl-Shift-C to copy the selected text. It's not to hard to press the left shift + left ctrl, is it?

Oh, and before I forget - Try getting Screen to work woth stjerm please!

Last edited by zenix (2007-08-07 20:38:26)


cat /usr/bin/arson > Arson, the HOT AUR search helper! -- Use Clyde instead smile

Offline

#52 2007-08-07 21:46:04

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: Stjerm - yet another quake-like terminal

Yes, this is enough, for a generic GUI application. What about termination signals?

Oh crap! didn't think of that. big_smile Bad me! Of course you are correct...


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#53 2007-08-08 08:59:06

xsdnyd
Member
Registered: 2007-04-28
Posts: 110

Re: Stjerm - yet another quake-like terminal

@zenix,
the rc file is a good idea. i will look into that smile

the svn repository is open for others wink :

svn co svn://svn.gna.org/svn/stjerm/trunk stjerm

i also try to implement the series of buttons as real tabbar.

the keybindings were on my todolist anyway wink


We can't stop here! This is bat country!!

Offline

#54 2007-08-08 11:01:29

xsdnyd
Member
Registered: 2007-04-28
Posts: 110

Re: Stjerm - yet another quake-like terminal

the keyboard shortcuts and the real tab bar is in svn now.

new tab: ctrl-shift t
close tab: ctrl-shift w
next tab: ctrl-shift pageup
previous tab: ctrl-shift pagedown
exit: ctrl-shift q

i tried to implement the shortcuts with ctrl KEY (without shift), but that didn't worked quite well... the Pagedown key when changing to the previous tab, was send to the terminal as well as changing the tab... really weird.

@zenix: what do you mean with:

zenix wrote:

* A command line option for toggling the state of stjerm that could be used in place of -k for better integration with the user's WM

?

Last edited by xsdnyd (2007-08-08 12:01:39)


We can't stop here! This is bat country!!

Offline

#55 2007-08-08 14:35:58

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: Stjerm - yet another quake-like terminal

* A command line option for toggling the state of stjerm that could be used in place of -k for better integration with the user's WM

I guess zenix means like you can control i.e audacious with "audacious --play". Then you could call "stjerm --hide" (or --toggle-state) instead of hitting F12 (or whatever button you assigned)...

While I'm at it, good work xsdnyd! smile really appreciate it.


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#56 2007-08-11 10:37:40

xsdnyd
Member
Registered: 2007-04-28
Posts: 110

Re: Stjerm - yet another quake-like terminal

Hi,
the new version 0.8 is ready.
Here is the AUR package http://aur.archlinux.org/packages.php?d … hans=&SeB=

Here is the targz archive with PKGBUILD and stjerm.install file:
http://download.gna.org/stjerm/stjerm.tar.gz

If you don't want to use AUR or makepkg, here is the source archive:
http://download.gna.org/stjerm/stjerm-0.8.tar.gz
and here the sample configuration file:
http://download.gna.org/stjerm/stjermrc.sample
to use the configuration file, you have to put it as ".stjermrc" in your home directory

changelog:

- use own configuration file (~/.stjermrc) (example in /usr/share/stjerm/stjermrc.sample)
- added keyboard shortcuts for tab handling (ctrl-shift t (create tab), w (close tab), pageup (next tab), pagedown (previous tab), q (quit))
- replaced button series with notebook (now real tabs)
- now uses user's default shell
- added -tabpos option to set the position of the tab bar
- added option to never, always show the tab bar.
- added --help option to display the usage menu
- renamed --showtab to -showtab and --termname to -tablabel
- code cleanups
- fixed handling of colors (now hex colors work. but without "#" in front of them).
- reordered the shortcut options in the usage menu
- print a notice if the shortcut key was not defined

Last edited by xsdnyd (2007-08-11 14:30:21)


We can't stop here! This is bat country!!

Offline

#57 2007-08-12 07:38:54

onearm
Member
From: Anywhere but here
Registered: 2006-07-06
Posts: 359
Website

Re: Stjerm - yet another quake-like terminal

Thanks for the fast updating, but the latest version segfaults at start when using the .stjermrc config file. If using the same option from the command line, it works:
For explaining myself better, my stjermrc:

# STJERM configuration file
# 
# PLACE THIS FILE AS ".stjermrc" IN YOU HOME DIRECTORY.
#
# notes: do not start a line with blanks.
#
# the format for a valid option is:
# NAME VALUE

# Set the shortcut key. This is a required option.
key f12


# Uncomment the following line to set the modifier key, 
# which has to be pressed together with the shortcut key, 
# to show/hide stjerm.
#
# NOTE: some modifiers cause do not work on some computer (eg. control)
#       stjerm displays an error then, that is was unable to grab the key.
#
# VALID modifiers:
# ctrl, alt, mod1, win
#
# Default: none
mod win


# Set the width/height of stjerms window.
# Default: width: 800, height: 400
width 300
height 200


# Set the background color. Valid values are Strings like "Red", "White" or hex codes without the "#".
#
# Default: black
#
# Uncomment this line to set a dark gray background:
#background 333333
background 0b0808


# Set the foreground color. Acts the same like the background color.
#
# Default: white
 foreground 949c9b


# Set the opacity of the terminal.
#
# Default: 100
#opacity 50


# Set the border
# VALID values:
# thin, thick, none
#
# Default: none
border none


# Enable or disable the scrollbar. 
# VALID values:
# left, right
#
# Default: disabled.
scrollbar right


# Set the position of stjerms window
# VALID values:
# top, bottom, left, right, topleft, topright, bottomleft, bottomright
#
# Default: top
position topright


# Set the used shell
#
# Default: users default shell
# To set zsh as default shell use this line:
#shell /bin/zsh


# Set the scrollback line count.
# This specifies the number of lines you scan scrollback in terminal history.
#
# Default: 1000
lines 10000


# Sets whether the tab bar is displayed always. Even if only one tab is opened.
# VALID values:
# never,one,always
#
# Default: one
#showtab never

# Sets the tab bar position.
# VALID values:
# top, left, right, bottom
#
# Default: bottom
#tabpos right

# Sets the default tab label.
#
# Default: term
#tablabel  terminal

and the options from command line:

-k f1 -m win -bg 0b0808 -fg 949c9b -w 300 -h 200 -p topright -b none -s right -bl 10000

To get something done, a committee should consist of no more than three persons, two of them absent.
--
Twitter Github

Offline

#58 2007-08-12 09:54:20

xsdnyd
Member
Registered: 2007-04-28
Posts: 110

Re: Stjerm - yet another quake-like terminal

@onearm
thanks for your bug report!
and also thanks for posting your .stjermrc.

there was a bug at the point where stjerm parses the hex color.
i fixed it and made the configuration file reading more robust.
now your problem should be fixed and you can simply run "stjerm" without the command line options.

stjerm 0.8a
Here is the AUR package http://aur.archlinux.org/packages.php?d … hans=&SeB=

Here is the targz archive with PKGBUILD and stjerm.install file:
http://download.gna.org/stjerm/stjerm.tar.gz

changelog:

- made configuration file parsing more robust
- fixed segfault when parsing hex colors

i just forgot something in the stjermrc.sample,
you can use "font FONTNAME FONTSIZE" in your .stjermrc.
for example: "font Sans 10",
the font setting is not described in stjermrc.sample but it gets parsed and works.
it will be there in the next version.

Last edited by xsdnyd (2007-08-12 10:16:27)


We can't stop here! This is bat country!!

Offline

#59 2007-08-13 06:49:42

onearm
Member
From: Anywhere but here
Registered: 2006-07-06
Posts: 359
Website

Re: Stjerm - yet another quake-like terminal

Good job, now it's all ok, including the font thing smile

Last edited by onearm (2007-08-13 06:50:45)


To get something done, a committee should consist of no more than three persons, two of them absent.
--
Twitter Github

Offline

#60 2007-08-14 02:14:06

sen
Member
From: .de
Registered: 2007-02-18
Posts: 152
Website

Re: Stjerm - yet another quake-like terminal

That's a really nice terminal, good job!

I have one question though. Is it possible to use custom terminal colors besides fg and bg?
At least it doesn't work with my current Xdefaults:

! Black + DarkGrey
XTerm*color0:       #121212
XTerm*color8:       #666666
! DarkRed + Red
XTerm*color1:       #b45151
XTerm*color9:       #fe8686
! DarkGreen + Green
XTerm*color2:       #aece92
XTerm*color10:      #c5ee83
! DarkYellow + Yellow
XTerm*color3:       Khaki3
XTerm*color11:      #efe58b
! DarkBlue + Blue
XTerm*color4:       #2797d8
XTerm*color12:      #2E90AA
! DarkMangenta + Mangenta
XTerm*color5:       #aa6eaf
XTerm*color13:      #cb96ce
!DarkCyan + Cyan
XTerm*color6:       #418179
XTerm*color14:      #71bebe
! LightGrey + White
XTerm*color7:       #bebebe
XTerm*color15:      #ffffff

Offline

#61 2007-08-14 09:03:00

xsdnyd
Member
Registered: 2007-04-28
Posts: 110

Re: Stjerm - yet another quake-like terminal

@sen
i just implemented the color palette option in stjerm now smile
in the next version you can specify color0, color1 ... color15 in the .stjermrc and thus use your color theme


We can't stop here! This is bat country!!

Offline

#62 2007-08-14 11:12:30

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Stjerm - yet another quake-like terminal

xsdnyd wrote:

in the next version you can specify color0, color1 ... color15 in the .stjermrc and thus use your color theme

Will this work in .Xdefaults too?  I preferred that place for specifying stuff like this.

Offline

#63 2007-08-14 11:37:00

xsdnyd
Member
Registered: 2007-04-28
Posts: 110

Re: Stjerm - yet another quake-like terminal

Cerebral wrote:
xsdnyd wrote:

in the next version you can specify color0, color1 ... color15 in the .stjermrc and thus use your color theme

Will this work in .Xdefaults too?  I preferred that place for specifying stuff like this.

i recently removed Xdefaults support for stjerm, but it is not much work to implement it again.
but then stjerm would have 3 different configuration options:
- command line
- .stjermrc
- .Xdefaults...

at this moment stjerm reads its settings from .stjermrc or from commandline

i don't know if 3 different places for stjerm configuration are too much...

anyway
@all: let me know what you think about it (using .Xdefaults) and i will implement it


We can't stop here! This is bat country!!

Offline

#64 2007-08-14 11:40:08

sen
Member
From: .de
Registered: 2007-02-18
Posts: 152
Website

Re: Stjerm - yet another quake-like terminal

@xsdnyd
great! big_smile

I think that most people use .Xdefaults, because you can use _one_ config file to parse options.

Last edited by sen (2007-08-14 11:43:26)

Offline

#65 2007-08-14 18:03:01

stjepan
Member
Registered: 2006-07-02
Posts: 76

Re: Stjerm - yet another quake-like terminal

I came just to check how's going the development of stjerm, and I can say it's brilliant!
Few hints:
* for tabbing, instead of using ctrl+shift, try simply alt.
* config: I think .Xdefaults, command line options, and a config file are really too much... a GUI configuration dialog + config file would be the best solution

Offline

#66 2007-08-14 19:42:23

xsdnyd
Member
Registered: 2007-04-28
Posts: 110

Re: Stjerm - yet another quake-like terminal

thx stjepan,
in favor of minimalism i don't want to include a gui configuration dialog.
now i have some thoughts:
- command line options get more and more and become unhandy (perhabs drop it?)
- .stjermrc is pretty good, because we have a stjermrc.sample, a commented version of the .stjermrc.
- with using .Xdefaults, there are no comments or list of features which can be set in the .Xdefaults file. a seperate manual or man page had to be included


We can't stop here! This is bat country!!

Offline

#67 2007-08-15 02:48:24

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 100
Website

Re: Stjerm - yet another quake-like terminal

pelle.k wrote:

Oh crap! didn't think of that. big_smile Bad me! Of course you are correct...

Exactly big_smile That's why I mentioned it.

xsdnyd wrote:

* A command line option for toggling the state of stjerm that could be used in place of -k for better integration with the user's WM

pelle.k wrote:

I guess zenix means like you can control i.e audacious with "audacious --play". Then you could call "stjerm --hide" (or --toggle-state) instead of hitting F12 (or whatever button you assigned)...

Yes. I'd like to see a command-line option such as "stjerm --toggle" that would raise/hide the terminal. So, if STJ was hidden and I typed "stjerm --toggle" into another terminal (such as a seperate XTerm) the current STJ would appear. I'm requesting this so that I don't have to specify a key to use in the command-line parameters. That way I can leave as much as possible to the window manager and not the many processes running on my comp in hopes to avoid an accidental collision of keybindings, etc.

Oh, and xsdnyd, thanks for the updates!

xsdnyd wrote:

in favor of minimalism i don't want to include a gui configuration dialog.

What about a right-click multi-menu configuration method? i.e. you right click on STJ and it has a "Configuration" submenu where each option modifies the current settings with another option at the bottom of the menu "Save" which, would save the options and a "Reset" option to reset the options (maybe a re-read of .stjermrc?) This would take a lot of code, but it is an alternative

xsdnyd wrote:

now i have some thoughts:
- command line options get more and more and become unhandy (perhabs drop it?)
- .stjermrc is pretty good, because we have a stjermrc.sample, a commented version of the .stjermrc.
- with using .Xdefaults, there are no comments or list of features which can be set in the .Xdefaults file. a seperate manual or man page had to be included

I'd say keep everything as it is now but have STJ read configuration files in this order:
- Command line options
- .Xdefaults
- .sjtermrc
- /etc/stjermrc.sample
- /where/global/.Xdeafults
This would set it so that command-line options are always honored, then .Xdefaults is looked at, then .sjtermrc. I just threw in the last couple just so sys admins could have some system-wide configuration option file tongue

A loyal fan & user, zenix.

PS. These are suggestions, you don't have to use them but thank you very much for taking into account my opinions! big_smile

Last edited by zenix (2007-08-15 02:54:45)


cat /usr/bin/arson > Arson, the HOT AUR search helper! -- Use Clyde instead smile

Offline

#68 2007-08-15 07:51:32

onearm
Member
From: Anywhere but here
Registered: 2006-07-06
Posts: 359
Website

Re: Stjerm - yet another quake-like terminal

.Xdefaults+.stjermrc is redundant. My suggestion is to use only .stjermrc (which is already well commented) or drop it altogether and use .Xdefaults only (but adding a man page for stjerm to explain all the options)

Just my 2ç


To get something done, a committee should consist of no more than three persons, two of them absent.
--
Twitter Github

Offline

#69 2007-08-15 10:17:21

Archangel-13
Member
From: The sunshine city.
Registered: 2006-07-23
Posts: 7
Website

Re: Stjerm - yet another quake-like terminal

I agree with onearm that referencing both .Xdefaults and .stjermrc seems redundant, if only because it makes it more work to update the code.  I personally would like to see stjerm reference .Xdefaults just so I can use one set of colour definition for all terminals.

BTW xsdnyd, thanks for the great work you've put in to this.

Offline

#70 2007-08-15 15:55:43

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 100
Website

Re: Stjerm - yet another quake-like terminal

Well, I don't mind either way but .Xdefaults would seem a better choice anyways so there is only 1 conf file. Either way, I'd like to see some configuration file. .stjermrc works just fine for now but onearm & Archangel-13 are correct, it is a bit redundant.

xsdnyd - Any thoughts of moving stjerm from this forum thread to it's own project page? (i.e. hosting on SF or your own website, etc)


cat /usr/bin/arson > Arson, the HOT AUR search helper! -- Use Clyde instead smile

Offline

#71 2007-08-16 07:40:48

stjepan
Member
Registered: 2006-07-02
Posts: 76

Re: Stjerm - yet another quake-like terminal

I recommend urxvt-like config. (cmd line options + .Xdefaults)
See urxvt -help and urxvt --help

Offline

#72 2007-08-17 13:02:19

xsdnyd
Member
Registered: 2007-04-28
Posts: 110

Re: Stjerm - yet another quake-like terminal

Hi,
the new version 0.9 is ready.
Here is the AUR package http://aur.archlinux.org/packages.php?d … hans=&SeB=

Here is the targz archive with PKGBUILD and stjerm.install file:
http://download.gna.org/stjerm/stjerm.tar.gz

If you don't want to use AUR or makepkg, here is the source archive:
http://download.gna.org/stjerm/stjerm-0.9.tar.gz

changelog:

- added autotools build system
- added full .Xdefaults support
- added --info to display .Xdefaults options
- added --toggle command line option
- added -cX (colorX) option to set color palette
- renamed -tablabel to -tl
- renamed -showtab to -st
- dropped .stjermrc usage

the change from ctrl-shift to alt did not worked well, because when using alt + pagedown it works until i get to the first tab. then the terminal gets ~3 inserted as text... obviously it receives the key and prints the code... i've got no idea how to prevent it.

to get the standard list of command line options, run:
stjerm --help

to get a list of .Xdefaults options, run:
stjerm --info

to show/hide stjerm, without using a key, run:
stjerm --toggle

Last edited by xsdnyd (2007-08-17 14:35:05)


We can't stop here! This is bat country!!

Offline

#73 2007-08-17 13:31:08

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Stjerm - yet another quake-like terminal

xsdnyd wrote:

to use the configuration file, you have to put it as ".stjermrc" in your home directory

changelog:

- dropped .stjermrc usage

What do you mean by "dropped .stjermrc usage"?

Last edited by Cerebral (2007-08-17 14:39:14)

Offline

#74 2007-08-17 13:36:12

xsdnyd
Member
Registered: 2007-04-28
Posts: 110

Re: Stjerm - yet another quake-like terminal

it isn't used anymore.
now stjerm only recognizes commandline options and .Xdefaults options


We can't stop here! This is bat country!!

Offline

#75 2007-08-17 14:08:17

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Stjerm - yet another quake-like terminal

Then you might want to remove the confusing part I quoted, saying "Here's a sample config file, etc..."

Offline

Board footer

Powered by FluxBB