LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2016, 09:56 AM   #1
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,979

Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
KKTerminal New Simple Linux Terminal Emulator


Just started work on a new terminal emulator, thought you might be interested:

Why another terminal emulator? Simple all the others had too many dependencies, or too many bells and whistles or just weren't quite right so I made this simple low resource emulator, it can be built for either gtk2 or gtk3 ( I prefer gtk2 ).

Why 'KKTerminal', just because it fits with my editor KKEdit here:
http://kkedit.darktech.org/

Although written on Linux From Scratch, it has been quickly tested on *buntu, xfce4.
Dependenceis are small, just gtk2/3 and libvte to match, if your distros split the dev files from the main package you will have to install them.

Main page here:
http://khapplications.darktech.org/p...kterminal.html

Source code here:
https://github.com/KeithDHedger/KKTerminal

Suggestions, bugs ( if any ) welcome.
 
Old 07-20-2016, 06:20 AM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDo, tinycore, Q4OS,Manjaro
Posts: 4,178

Rep: Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929
That sounds interesting. I take it that it emulates an xwindows or xterm terminal, and not any physical terminal type?
 
Old 07-20-2016, 06:31 AM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,979

Original Poster
Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
yea its jsut a terminal app ala xterm, xfce4-terminal etc
 
1 members found this post helpful.
Old 07-26-2016, 08:35 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,979

Original Poster
Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
Loads of new stuff, changelog:
Code:
0.0.7
Added prefs GUI.
Added short cut to hide menubar.
Updated manpage to include new features.
Added -e/-x switch, executes all the rest of the command line in a new tab ( ALL args after this are swallowed ).
Added 'iconsinmenu' to prefs, set to 1 to enable icons in gtk3 menus, 0 for standard ( boring! ) gtk3 menus.

0.0.6
Added tab navigation via menu or keyboard.
Code clean.
Shortcut keys now work when menu bar hidden.
Added 'Hide Menu Bar' to 'View' menu.
Added 'Toggle menu bar' to context menu.
Completly redone options, kkterminal --help for details.
Updated manpage.
Added open new tab in ARG.
Added open tab in PWD.
Added run command in new tab..
Added print help.

0.0.5
Added online help to help menu ( sic ).
Fixed multiple instance segfault.
Updated manpage.
Added --width|-w, --height|-g, --xpos|-x, --ypos|-y to options to set width, heitgh startx and starty from command line overiding saved position.
Squeezed gtk3 tabs a bit more.
Added standard hot keys to menu items.
Changed to stock men items with icons for gtk2.
Window icon set for window pagers etc.
Added font and size to prefs ( eg font	Monospace 10 ).

0.0.4
Called from the command line opens new shell in current directory.
New Shell now opens new tab in directory of current tab
Window size/position now saved on exit.
Set window size added to prefs ( eg  windowsize 1000 400 200 100 ).
Added '--command,-e' option to inject command into shell ( injected into all shell if multiple folders given on command line ). 
Fixed pop menu in terminal not copying/pasting from/to correct window.

0.0.3
Made tabs smaller ( gtk2 only ).
New shell now switches to new tab.
CD's to folder given on command line.
Uses single instance.
Started single instance code.
Tweaked install locations.

0.0.2
Prefs file now unique.
Set tabs width to fill window.
Set tabs size smaller.
Done close tab from menu.
Added keyboard cut/paste.
Added context menu.
Added menubar.
Added close button to tab label.
Made tabs reorderable
App quits on final shell exiting.
Page removed when shell exits.
Added prefs file ( shared with kkedit terminal plugin prefs ).
Added basic d'n'd for text and files.
 
Old 07-26-2016, 08:58 PM   #5
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDo, tinycore, Q4OS,Manjaro
Posts: 4,178

Rep: Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929
I pulled the source, but it wants something in the line of another X11 library or something related. The message form configure is unclear, and apparently none of the 18 installed X11 libs will satisfy.

Have you a requirements list or document?
 
Old 07-27-2016, 04:46 AM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,979

Original Poster
Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
What is the error?
Try running ./autogen.sh.
 
Old 07-27-2016, 06:16 AM   #7
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDo, tinycore, Q4OS,Manjaro
Posts: 4,178

Rep: Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929
Quote:
checking for x11... no
configure: error: Package requirements (x11 >= 1.0.0) were not met:
Despite my having these x11 related packages installed
Quote:
dpkg -l -a |grep x11
ii dbus-x11 1.10.8-1 i386 simple interprocess messaging system (X11 deps)
ii freerdp-x11 1.1.0~git20140921.1.440916e+dfsg1-10 i386 RDP client for Windows Terminal Services (X11 client)
ii libqt5x11extras5:i386 5.6.1-2 i386 Qt 5 X11 extras
ii libva-x11-1:i386 1.7.1-1 i386 Video Acceleration (VA) API for Linux -- X11 runtime
ii libx11-6:i386 2:1.6.3-1 i386 X11 client-side library
ii libx11-data 2:1.6.3-1 all X11 client-side library
ii libx11-protocol-perl 0.56-7 all Perl module for the X Window System Protocol, version 11
ii libx11-xcb1:i386 2:1.6.3-1 i386 Xlib/XCB interface library
ii libxkbcommon-x11-0:i386 0.5.0-1 i386 library to create keymaps with the XKB X11 protocol
ii pulseaudio-module-x11 9.0-1.1 i386 X11 module for PulseAudio sound server
rc virtualbox-guest-x11 5.0.12-dfsg-2 i386 x86 virtualization solution - X11 guest utilities
ii x11-common 1:7.7+16 all X Window System (X.Org) infrastructure
ii x11-utils 7.7+3 i386 X11 utilities
ii x11-xkb-utils 7.7+3 i386 X11 XKB utilities
ii x11-xserver-utils 7.7+7 i386 X server utilities
There are other x11 related packages available, but none of them seem to be more core x11 than what I already have installed.
BTW: I run Sparky Linux today: release 4 Tyche
 
Old 07-27-2016, 06:43 AM   #8
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,979

Original Poster
Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
you need the development files as well.
usually with apt it is the name of the package with '-dev' suffixed, you will also need the dev apackages for vte and gtk to suit your system, you may also need to install the build-essential package, have search on the web about building from source with debian.
 
Old 07-27-2016, 07:52 AM   #9
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDo, tinycore, Q4OS,Manjaro
Posts: 4,178

Rep: Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929
dev packages for ibx11, libvte, and libgtk+2.0 got me a compile. But while the compile was clean and error free the results did not run. All it did was add a proxy setting to my networking and no terminal came up.
It took me almost 30 seconds to undo the damage. Any real threat would have taken much longer.

Was that a dirty trick, or something unintended?
 
Old 07-27-2016, 09:15 AM   #10
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,979

Original Poster
Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
You are way out of order!!!!
If you can't compile and run software that's your problem, don't bloody dare try and say that I am trying to corrupt your system!
This is YOUR problem not mine!
ALL the source is visible on github, anyone can examine it and see that there is no problems with the code, I would suggest you apologize, and don't blame other people for YOUR f*** ups!
 
Old 07-27-2016, 10:24 PM   #11
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDo, tinycore, Q4OS,Manjaro
Posts: 4,178

Rep: Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929
Ease up there Tex, I did not accuse. I asked.
I like a good trick from time to time, and would not have been upset if you dropped that in.
BTW: there was no corruption of my system, just one changed setting (as far as I can tell so far).

As for the compile, I did get what appears a good compile. Not one single error or warning. The output file looks fine but is not functional. I am going over the code to see if I can see why. After that I need to go over the libs you fold in, because the problem may be a version difference not directly in your code at all. Sparky has some dev libs as versions few other distros use, and that may be implicated.

If I do not find issues in the code and code relations, it will be time to bring out the debugger and drill a bit.
I want to get what you capture in those screen shots, and play with it a little.

What distros have compiled a working version from that code? Perhaps I should try building on a different one? (I have several).
 
Old 07-28-2016, 10:05 PM   #12
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDo, tinycore, Q4OS,Manjaro
Posts: 4,178

Rep: Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929
I have to say that I am enjoying reading your code, but it is frustrating. I am finding (so far) no reason at all that it should not open and display.

Tell me, does it do better (or differently) with the GTK3 or GTK2 dev libs? I have both, and I am wondering if I should direct it to use one in particular.
 
Old 07-28-2016, 10:34 PM   #13
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDo, tinycore, Q4OS,Manjaro
Posts: 4,178

Rep: Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929
UPDATE: I may have pulled when your git tree was not in a stable state. I just pulled a new one (with your -hold addition) and it compiled and ran successfully in a total time of about 60 seconds. I am testing it out now.

It seems small, fast, and simple: just what I like.
I like the color defaults, and that it is so easy to change them.


BTW: It is entirely odd to run kkterminal in a screen session from an xterm session. I do not recommend it, but I am glad I thought to misuse these tools that way.

I think you have a keeper here.
 
Old 07-30-2016, 09:52 PM   #14
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDo, tinycore, Q4OS,Manjaro
Posts: 4,178

Rep: Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929Reputation: 1929
Second update.
So far, it does what I want in an xterm terminal program. Also, while xterm comes in at about 400K, and rxvt about 140k, stripped kkterminal runs about 32k. I can see using this to replace xterm and rxvt in a live-cd or minimal USB image.


Having said that, I now have to go looking at Puppy, TinyCore, and DSL to see what those Masters of the Mini Distro managed. Fun!
 
  


Reply

Tags
emulator, gtk, kkterminal, shell, terminal


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: What is a good terminal emulator on Linux? LXer Syndicated Linux News 0 05-28-2014 04:01 PM
Which is the best Terminal Emulator in Linux techie_san778 Linux - Software 4 02-17-2013 06:27 AM
Terminal emulator on Linux elainelaw Linux - Newbie 13 02-13-2010 03:53 PM
Is there a terminal emulator that runs on linux? tasdca Linux - Desktop 1 11-06-2008 02:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration