Quantcast

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Brian G reported a new bug.

Summary
-------

gb.form.terminal -  Enhancement request

Type             : Request
Priority         : Medium
Gambas version   : 3.9.90 (TRUNK)
Product          : QT4 component


Description
-----------

The new gb.form.terminal.

Would it be possible to add new properties which reflect the estimated Col and line count based upon the current font chosen.

This addition would help in sending the resize information to remote terminal sessions.

Would be a very very helpful addition to this class and component .

I can volunteer to work with the person who implemented this component or just add the properties , to do this if needed.
 Also to complete the documentation in English for this component. As I cant find details online.

Thanks for your consideration

Brian


System information
------------------

[System]
Gambas=3.9.90 r8089
OperatingSystem=Linux
Kernel=3.16.7-53-desktop
Architecture=x86_64
Distribution=
Desktop=KDE4
Theme=Breeze
Language=en_US.UTF-8
Memory=12038M

[Libraries]
Cairo=libcairo.so.2.11400.0
DBus=libdbus-1.so.3.8.14
GStreamer=libgstreamer-1.0.so.0.802.0
GTK+2=libgtk-x11-2.0.so.0.2400.31
QT4=libQtCore.so.4.8.6
SQLite=libsqlite3.so.0.8.6

[Environment]
ALSA_CONFIG_PATH=/etc/alsa-pulse.conf
AUDIODRIVER=pulseaudio
BASH_FUNC_mc%%=() {  . /usr/share/mc/mc-wrapper.sh
}
COLORTERM=1
CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu
CPU=x86_64
CSHEDIT=emacs
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-RSfETF7miC,guid=c1e3a47efd2074f5b8f4e29f58a34e5e
DESKTOP_SESSION=kde-plasma
DISPLAY=:0
DM_CONTROL=/var/run/xdmctl
FROM_HEADER=
GB_GUI=gb.qt4
GPG_AGENT_INFO=/tmp/gpg-m88oEN/S.gpg-agent:19333:1
GPG_TTY=not a tty
GS_LIB=<home>/.fonts
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:<home>/.gtkrc-2.0:<home>/.kde4/share/config/gtkrc-2.0
GTK_IM_MODULE=ibus
GTK_MODULES=canberra-gtk-module
GTK_RC_FILES=/etc/gtk/gtkrc:<home>/.gtkrc:<home>/.kde4/share/config/gtkrc
G_BROKEN_FILENAMES=1
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
HISTSIZE=1000
HOME=<home>
HOST=<hostname>
HOSTNAME=<hostname>
HOSTTYPE=x86_64
INPUTRC=<home>/.inputrc
JAVA_BINDIR=/usr/lib64/jvm/java/bin
JAVA_HOME=/usr/lib64/jvm/java
JAVA_ROOT=/usr/lib64/jvm/java
JDK_HOME=/usr/lib64/jvm/java
JRE_HOME=/usr/lib64/jvm/java/jre
KDE_FULL_SESSION=true
KDE_MULTIHEAD=false
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=4
LANG=en_US.UTF-8
LESS=-M -I -R
LESSCLOSE=lessclose.sh %s %s
LESSKEY=/etc/lesskey.bin
LESSOPEN=lessopen.sh %s
LESS_ADVANCED_PREPROCESSOR=no
LOGNAME=<user>
MACHTYPE=x86_64-suse-linux
MAIL=/var/spool/mail/<user>
MANPATH=/usr/local/man:/usr/local/share/man:/usr/share/man
MINICOM=-c on
MORE=-sl
NNTPSERVER=news
OOO_FORCE_DESKTOP=gnome
OSTYPE=linux
PAGER=less
PATH=<home>/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin
PILOTPORT=usb:
PROFILEREAD=true
PWD=<home>
PYTHONSTARTUP=/etc/pythonstart
QEMU_AUDIO_DRV=pa
QT_IM_MODULE=ibus
QT_IM_SWITCHER=imsw-multi
QT_NO_GLIB=1
QT_PLUGIN_PATH=<home>/.kde4/lib64/kde4/plugins/:/usr/lib64/kde4/plugins/
QT_SYSTEM_DIR=/usr/share/desktop-data
SDK_HOME=/usr/lib64/jvm/java
SDL_AUDIODRIVER=pulse
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/19592,unix/<hostname>:/tmp/.ICE-unix/19592
SHELL=/bin/bash
SHLVL=1
SSH_AGENT_PID=19332
SSH_ASKPASS=/usr/lib/ssh/ksshaskpass
SSH_AUTH_SOCK=/tmp/ssh-7GSeB8N3iHeP/agent.19331
TERM=xterm
TMPDIR=/tmp
TZ=:/etc/localtime
USER=<user>
USE_FAM=
WINDOWMANAGER=/usr/bin/startkde
WINDOWPATH=7
XAUTHLOCALHOSTNAME=<hostname>
XCURSOR_SIZE=32
XCURSOR_THEME=redglass
XDG_CONFIG_DIRS=/etc/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=/usr/share:/usr/share
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_COOKIE=4ed603cd18304c8d9216b69334cdeb3a-1487097439.64398-722115868
XDG_SESSION_ID=60
XDG_VTNR=7
XDM_MANAGED=method=classic
XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
XMODIFIERS=@im=ibus
XNLSPATH=/usr/share/X11/nls
XSESSION_IS_UP=yes
_=/usr/lib64/kde4/libexec/start_kdeinit_wrapper



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Brian G added an attachment:

TestSSHProtocol-0.0.1.tar.gz



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Comment #1 by Brian G:

Only try terminal session, please



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Comment #2 by Benoît MINISINI:

If you run a process inside the TerminalView control with the Exec() or Shell() method, then the process virtual terminal output will
be resized each time the TerminalView is resized, and the process will receive the SIGWINCH terminal resize signal accordingly.

So, theoretically, the remote terminal session (i.e. the ssh process you run inside the TerminalView) should handle that signal and propagate
the resize information to the remote process.

In other words, it should work out of the box, and you shouldn't need these properties.

Of course, I can add a Resize event that gives you the terminal size, it is just a matter of a few lines of code. But I'd like to know if it is *really* needed.

Benoît MINISINI changed the state of the bug to: NeedsInfo.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Comment #3 by Benoît MINISINI:

I have just done a test: I ran 'bash' inside a TerminalView, then I connect to a remote server through ssh, and run 'vim' on that server. I resized the window, and vim followed the resize.

So it works out of the box. You should have nothing to do.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Comment #4 by Brian G:

Hi I am using the terminal as a separate front end for my application, eventually I will support access to a number of different systems, including rs232 interface for switches , I am using the terminal form to display the output.

The software establishes the connection, rs232 or ssh, and manages the interface with scripts for control. I am using the Print interface to display the output and the key interface to get the keystrokes. I am managing the back end  in my application.

It would be very helpful to be able to query the display interface to discover the current rows and columns. The print interface provides good terminal support for output. And is very useful. It would simplify many different application of this component to be able to query the dimensions of the screen.

Many of the remote system employ text graphics which fail if I don’t resize the remote terminals, straight terminal mode works fine as it just spits out line after line of text, The resize must be managed by my back end.

Thanks for your time and consideration, this addition would make the terminal very much more flexible.

Also where can I find some more information regarding the key filters as ALT-anything prints a debug console message that they are not supported. many of the graphic terminal interfaces allow shortcut  key sequences.


Thanks

Brian G



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Comment #5 by Brian G:

When I speak of graphics I am talking about text mode graphics only



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Comment #6 by Benoît MINISINI:

I will add a Resize event, but, again, you normally don't need it!

If you run your software inside the TerminalView with the Exec() or Shell() method, it will receive the terminal resize signal, and will be able to transmit it to the remote process.

I guess you are using the TerminalView just as a display widget, not as a true terminal, and this is the reason why you need to know when it is resized...

Benoît MINISINI changed the state of the bug to: Working.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Comment #7 by Benoît MINISINI:

As for the "ALT+anything" thing, I don't know what you are talking about exactly...



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Comment #8 by Benoît MINISINI:

Done in revision #8091.

Benoît MINISINI changed the state of the bug to: Fixed.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Comment #9 by Brian G:

Ok more details regarding error I receive when text graphics are used
the debug console displays
TerminalFilter_VT100.Escape.627: Not implemented: "[1034h"
TerminalFilter_VT100.Escape.627: Not implemented: "[1034h"
TerminalFilter_VT100.Escape.627: Not implemented: "[1034h"
TerminalFilter_VT100.Escape.627: Not implemented: "[1034h"
TerminalFilter_VT100.Escape.627: Not implemented: "[1034h"
TerminalFilter_VT100.Escape.627: Not implemented: "[1034h"
TerminalFilter_VT100.Escape.627: Not implemented: "[1034h"
TerminalFilter_VT100.Escape.627: Not implemented: "[1034h"
TerminalFilter_VT100.Escape.627: Not implemented: "[1034h"
TerminalFilter_VT100.Escape.627: Not implemented: "[1034h"
TerminalFilter_VT100.Escape.627: Not implemented: "[1034h"
TerminalFilter_VT100.Escape.627: Not implemented: "[1034h"



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Comment #10 by Brian G:

So my question was how do I modify the filter?



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Comment #11 by Brian G:

Thank you for making the change, I really appreciate it!



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Comment #12 by Benoît MINISINI:

You can ignore these messages. I will remove them, as these escape sequences usually do not have any effect in terminal emulators.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Comment #13 by Brian G:

Question regarding this, Are you spanning escape sequences across Print calls. That is can I send part on first call and then rest of the  sequence on the next call?
 I am not checking that I send complete escape sequence as they are received and forwarded to the terminal!

This may be the issue with the serious errors!

my screens are also missing graphics here and there.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1077: gb.form.terminal - Enhancement request

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1077&from=L21haW4-

Comment #14 by Brian G:

Spurious not serious



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Loading...