wxTerminal or wxRXVT?

301 views
Skip to first unread message

Spear, Don H. Jr.

unread,
Aug 28, 2007, 12:24:47 PM8/28/07
to wx-u...@lists.wxwidgets.org
Are there any plans whether in the works or at least proposed for a wxWidgets Terminal class? Something that mimics an RXVT windows for instance. I have several apps that would benefit from such a class and I don't have anywhere the expertise to build one. Now I use a wxTextCtrl and intercept all characters for I/O.
 
Just wondering...

Don Spear

Christopher Thoday

unread,
Aug 29, 2007, 10:45:29 AM8/29/07
to wx-u...@lists.wxwidgets.org
I am working on a terminal to add to an IDE that I am writing in wxPython. I have divided the problem into two parts. It is most convenient to communicate with the child process using pipes. However, some programs, such as bash, detect whether or not they are connected to a (pseudo) terminal and use this to select interactive or batch mode. To solve this I have written a small C program, called pty, that is used to interface the parent with pipes and the child with a pty.  Instead of calling "/bin/bash" as the subprocess, simply call "pty /bin/bash" instead. This appears to be working well on Linux.

The other part concerns the wxTextCtrl where I have not competed dealing with all the control sequences. I have found that it is necessary to use a timer to kick the idle process from time to time. Without this, I found that some results would not display until I moved the mouse even though the GUI was idle. If you are interested I hope to have a demonstration program ready soon.

All the terminal emulators I have tried seem to be stuck with an obsolete design. They are fine for running programs but provide very little help for dealing with the results. In a modern GUI application you should be able to save, print, filter and search the results without having to decide what to do before running the command. You should also be able to select a directory, file name, error message or link in the results and use it directly without having to copy and paste it somewhere.

Eur Ing Christopher Thoday

Rick Sivernell

unread,
Aug 29, 2007, 5:04:47 PM8/29/07
to wx-u...@lists.wxwidgets.org

> --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-u...@lists.wxwidgets.org For additional commands, e-mail: wx-use...@lists.wxwidgets.org

I also would be interested in this terminal. If you have a hankering to share.
--
Rick Sivernell
Dallas, Texas 75287
972 306-2296
res0...@verizon.net
Registered Linux User

Christopher Thoday

unread,
Aug 31, 2007, 11:12:53 AM8/31/07
to wx-u...@lists.wxwidgets.org
I attach two programs: smartterm is a wxPython application with a terminal emulator widget and pty is a C utility program required by smartterm to connect via a pseudo terminal. These programs are still under development and any feedback would be most welcome.

Eur Ing Christopher Thoday
pty-0.3.tgz
smartterm-0.3.tgz

jeremysalwen

unread,
Mar 17, 2012, 5:09:17 AM3/17/12
to wx-u...@googlegroups.com

A bit late, but perhaps helpful to others: check out
https://github.com/jeremysalwen/TerminalWx
https://github.com/jeremysalwen/TerminalWx , a wxwidgets terminal widget.
--
View this message in context: http://old.nabble.com/wxTerminal-or-wxRXVT--tp12371278p33521957.html
Sent from the wxWidgets - Users mailing list archive at Nabble.com.

evstevemd

unread,
Mar 17, 2012, 10:43:13 AM3/17/12
to wx-users
HiJeremy,

On Mar 17, 12:09 pm, jeremysalwen <jeremysal...@gmail.com> wrote:
> don-54 wrote:
>
> > Are there any plans whether in the works or at least proposed for a
> > wxWidgets Terminal class? Something that mimics an RXVT windows for
> > instance. I have several apps that would benefit from such a class and I
> > don't have anywhere the expertise to build one. Now I use a wxTextCtrl and
> > intercept all characters for I/O.
>
> > Just wondering...
>
> > Don Spear
>
> A bit late, but perhaps helpful to others:  check outhttps://github.com/jeremysalwen/TerminalWxhttps://github.com/jeremysalwen/TerminalWx,  a wxwidgets terminal widget.
> --
> View this message in context:http://old.nabble.com/wxTerminal-or-wxRXVT--tp12371278p33521957.html
> Sent from the wxWidgets - Users mailing list archive at Nabble.com.

Is there any reason for GPLing it? GPL is not compartible to the
liberal wxWindows license.
Many will be happy with wxWindow at best or LGPL at least.
I for one will be one of them.

jeremysalwen

unread,
Mar 17, 2012, 1:43:41 PM3/17/12
to wx-u...@googlegroups.com

> --
> Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
>
> To unsubscribe, send email to wx-users+u...@googlegroups.com
> or visit http://groups.google.com/group/wx-users
>
>

As you might notice from the webpage, this code is built on contributions
from three other programs. The first is LGPL/GPL, but the second two are
GPL only. In order to release it as LGPL, I'd have to get multiple people
to relicense their code as LGPL. To release it under anything else, I'd
need all three to.
I'd be happy to release it under BSD, but the thing is, it' mostly not my
code.

Jeremy
--
View this message in context: http://old.nabble.com/wxTerminal-or-wxRXVT--tp12371278p33523420.html

evstevemd

unread,
Mar 19, 2012, 3:38:38 PM3/19/12
to wx-users
Hi,

On Mar 17, 8:43 pm, jeremysalwen <jeremysal...@gmail.com> wrote:
> evstevemd wrote:
>
> > HiJeremy,
>
> > On Mar 17, 12:09 pm, jeremysalwen <jeremysal...@gmail.com> wrote:
> >> don-54 wrote:
>
> >> > Are there any plans whether in the works or at least proposed for a
> >> > wxWidgets Terminal class? Something that mimics an RXVT windows for
> >> > instance. I have several apps that would benefit from such a class and
> >> I
> >> > don't have anywhere the expertise to build one. Now I use a wxTextCtrl
> >> and
> >> > intercept all characters for I/O.
>
> >> > Just wondering...
>
> >> > Don Spear
>
> >> A bit late, but perhaps helpful to others:  check
> >> outhttps://github.com/jeremysalwen/TerminalWxhttps://github.com/jeremysa...,
> >>  a wxwidgets terminal widget.
> >> --
> >> View this message in
> >> context:http://old.nabble.com/wxTerminal-or-wxRXVT--tp12371278p33521957.html
> >> Sent from the wxWidgets - Users mailing list archive at Nabble.com.
>
> > Is there any reason for GPLing it? GPL is not compartible to the
> > liberal wxWindows license.
> > Many will be happy with wxWindow at best or LGPL at least.
> > I for one will be one of them.
>
> > --
> > Please readhttp://www.wxwidgets.org/support/mlhowto.htmbefore posting.
>
> > To unsubscribe, send email to wx-users+u...@googlegroups.com
> > or visithttp://groups.google.com/group/wx-users
>
> As you might notice from the webpage, this code is built on contributions
> from three other programs.  The first is LGPL/GPL, but the second two are
> GPL only.  In order to release it as LGPL, I'd have to get multiple people
> to relicense their code as LGPL.  To release it under anything else, I'd
> need all three to.
> I'd be happy to release it under BSD, but the thing is, it' mostly not my
> code.
I'm not a lawyer but what about making it a library? Will it demand
loading via dlopen, for example, to be GPLed?
Also the code does not compile with wx 2.8 that comes with Ubuntu

jeremysalwen

unread,
Mar 19, 2012, 11:03:01 PM3/19/12
to wx-u...@googlegroups.com

> --
> Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.


>
> To unsubscribe, send email to wx-users+u...@googlegroups.com
> or visit http://groups.google.com/group/wx-users
>
>

I'm contacting the other authors about relicensing. So far two out of three
have agreed, and the third has not responded.

Could you please give more details about what you mean by "the code does not
compile"?

Jeremy
--
View this message in context: http://old.nabble.com/wxTerminal-or-wxRXVT--tp12371278p33536299.html

evstevemd

unread,
Mar 20, 2012, 2:41:51 AM3/20/12
to wx-users
> I'm contacting the other authors about relicensing. So far two out of three
> have agreed, and the third has not responded.
>
> Could you please give more details about what you mean by "the code does not
> compile"?
>
That is quiet a progress. I hope the other one will agree also.
I checked the codeblocks project, it seems to miss search directories
(includes?).
It is years since I seriously used C::B so I'm struggling a bit.
I will just make a CodeLite project and use that!

evstevemd

unread,
Mar 20, 2012, 8:20:10 AM3/20/12
to wx-users

>
> Could you please give more details about what you mean by "the code does not
> compile"?
>

Just relevant errors:

||=== TerminalWx, Debug ===|
/home/evstevemd/Documents/developer/git/TerminalWx/src/taTelnet/
wxterm.h|151|error: default argument for parameter of type ‘const
wxString&’ has type ‘const char [7]’|
/home/evstevemd/Documents/developer/git/TerminalWx/src/terminalwx.h|60|
error: default argument for parameter of type ‘const wxString&’ has
type ‘const char [11]’|
||=== Build finished: 2 errors, 10 warnings (0 minutes, 3 seconds)
===|

evstevemd

unread,
Apr 2, 2012, 6:30:46 AM4/2/12
to wx-users
Hi Jeremy

> >> Jeremy
> >> --
> >> View this message in
> >> context:http://old.nabble.com/wxTerminal-or-wxRXVT--tp12371278p33523420.html
> >> Sent from the wxWidgets - Users mailing list archive at Nabble.com.
>
> > --
> > Please readhttp://www.wxwidgets.org/support/mlhowto.htmbefore posting.
>
> > To unsubscribe, send email to wx-users+u...@googlegroups.com
> > or visithttp://groups.google.com/group/wx-users
>
> I'm contacting the other authors about relicensing.  So far two out of three
> have agreed, and the third has not responded.
>
Have the guy reponded?

> Could you please give more details about what you mean by "the code does not
> compile"?
I tried it with 2.8 and it didn't but it compiled with wx29 svn with
alot of warning and deprecations.
Sample just prints the characters and that is not very useful:)

jeremysalwen

unread,
Apr 4, 2012, 1:30:46 PM4/4/12
to wx-u...@googlegroups.com

Just a note,

The third author finally responded and I am licensing it under the wxWindows
license now.

Jeremy
--
View this message in context: http://old.nabble.com/wxTerminal-or-wxRXVT--tp12371278p33561209.html

Reply all
Reply to author
Forward
0 new messages