Help!

XTerm control sequences in Konsole

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussions (archive 2) RSS
Next:  .iso file : how can i mount it as virtual CD/DVD ..  
Author Message
Sybren Stuvel
External


Since: Jul 06, 2005
Posts: 991



PostPosted: Sat Dec 30, 2006 2:18 pm    Post subject: XTerm control sequences in Konsole
Archived from groups: alt>os>linux (more info?)

Hi folks,

XTerm iconifies upon receiving <ESC>[2t, but unfortunately Konsole
doesn't respond to that. I've been looking for a list of supported
control sequences of Konsole, but I can't seem to find any. Where can
I find such a list? Or: which terminal control sequences can I use to
minimize & restore Konsole?

Thanks in advance,
--
Sybren Stüvel
Stüvel IT - http://www.stuvel.eu/
Back to top
J.O. Aho
External


Since: Mar 26, 2004
Posts: 2216



PostPosted: Sat Dec 30, 2006 3:16 pm    Post subject: Re: XTerm control sequences in Konsole [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sybren Stuvel wrote:
> Hi folks,
>
> XTerm iconifies upon receiving <ESC>[2t, but unfortunately Konsole
> doesn't respond to that. I've been looking for a list of supported
> control sequences of Konsole, but I can't seem to find any. Where can
> I find such a list? Or: which terminal control sequences can I use to
> minimize & restore Konsole?

Go into "Keyboard Shortcuts" and find

System
|
+--Windows
|
+--Minimise Window

Now select the key combination you want use to minimize the window with.


--

//Aho
Back to top
Sybren Stuvel
External


Since: Jul 06, 2005
Posts: 991



PostPosted: Sat Dec 30, 2006 3:24 pm    Post subject: Re: XTerm control sequences in Konsole [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

J.O. Aho enlightened us with:
>> XTerm iconifies upon receiving <ESC>[2t, but unfortunately Konsole
>> doesn't respond to that. I've been looking for a list of supported
>> control sequences of Konsole, but I can't seem to find any. Where can
>> I find such a list? Or: which terminal control sequences can I use to
>> minimize & restore Konsole?
>
> Go into "Keyboard Shortcuts" and find
>
> System
> |
> +--Windows
> |
> +--Minimise Window
>
> Now select the key combination you want use to minimize the window
> with.

Thanks, but that's for key combinations, not terminal control
sequences. What I'm looking for is the byte sequence that a program
running in the terminal can send to that terminal to have it minimize.

Sybren
--
Sybren Stüvel
Stüvel IT - http://www.stuvel.eu/
Back to top
J.O. Aho
External


Since: Mar 26, 2004
Posts: 2216



PostPosted: Sat Dec 30, 2006 6:08 pm    Post subject: Re: XTerm control sequences in Konsole [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sybren Stuvel wrote:
> J.O. Aho enlightened us with:
>>> XTerm iconifies upon receiving <ESC>[2t, but unfortunately Konsole
>>> doesn't respond to that. I've been looking for a list of supported
>>> control sequences of Konsole, but I can't seem to find any. Where can
>>> I find such a list? Or: which terminal control sequences can I use to
>>> minimize & restore Konsole?
>> Go into "Keyboard Shortcuts" and find
>>
>> System
>> |
>> +--Windows
>> |
>> +--Minimise Window
>>
>> Now select the key combination you want use to minimize the window
>> with.
>
> Thanks, but that's for key combinations, not terminal control
> sequences. What I'm looking for is the byte sequence that a program
> running in the terminal can send to that terminal to have it minimize.

Testing that Esc[2t don't result in any minimize of windows in my xterm, sure
it's hasn't to do with the window manager?

--

//Aho
Back to top
Sybren Stuvel
External


Since: Jul 06, 2005
Posts: 991



PostPosted: Sun Dec 31, 2006 4:05 am    Post subject: Re: XTerm control sequences in Konsole [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

J.O. Aho enlightened us with:
> Testing that Esc[2t don't result in any minimize of windows in my
> xterm, sure it's hasn't to do with the window manager?

Yup, since it works just fine here on my box. You sure you're sending
the right codes?

Sybren
--
Sybren Stüvel
Stüvel IT - http://www.stuvel.eu/
Back to top
Michael Heiming
External


Since: Apr 04, 2004
Posts: 3526



PostPosted: Sun Dec 31, 2006 1:04 pm    Post subject: Re: XTerm control sequences in Konsole [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In alt.os.linux Sybren Stuvel <sybrenUSE.DeleteThis@yourthirdtower.com.imagination>:
> Hi folks,

> XTerm iconifies upon receiving <ESC>[2t, but unfortunately Konsole
> doesn't respond to that. I've been looking for a list of supported
> control sequences of Konsole, but I can't seem to find any. Where can
> I find such a list? Or: which terminal control sequences can I use to
> minimize & restore Konsole?

Hi Sybren!

Unsure if I got what you are looking for, you mean 'konsole' the
terminal emulation KDE comes with?

In any case this sounds more like a wm setting then anything
else. With KDE you can fire up 'kcontrol' -> "Regional &
Accessibility" -> "Keyboard Shortcuts" and define for example
"Windows" -> "Minimize Window" to "Alt+F8", which would work for
any window from now on ('apply')...

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry.DeleteThis@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 154: You can tune a file system, but you can't
tune a fish (from most tunefs man pages)
Back to top
Sybren Stuvel
External


Since: Jul 06, 2005
Posts: 991



PostPosted: Sun Dec 31, 2006 1:50 pm    Post subject: Re: XTerm control sequences in Konsole [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Michael Heiming enlightened us with:
> Unsure if I got what you are looking for, you mean 'konsole' the
> terminal emulation KDE comes with?

Yup.

> In any case this sounds more like a wm setting then anything
> else. With KDE you can fire up 'kcontrol' -> "Regional &
> Accessibility" -> "Keyboard Shortcuts" and define for example
> "Windows" -> "Minimize Window" to "Alt+F8", which would work for
> any window from now on ('apply')...

But does it also work when the program running *inside* the terminal
sends the same charaters that Alt+F8 generates?

Sybren
--
Sybren Stüvel
Stüvel IT - http://www.stuvel.eu/
Back to top
Michael Heiming
External


Since: Apr 04, 2004
Posts: 3526



PostPosted: Sun Dec 31, 2006 2:29 pm    Post subject: Re: XTerm control sequences in Konsole [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In alt.os.linux Sybren Stuvel <sybrenUSE.TakeThisOut@yourthirdtower.com.imagination>:
> Michael Heiming enlightened us with:
>> Unsure if I got what you are looking for, you mean 'konsole' the
>> terminal emulation KDE comes with?

> Yup.

>> In any case this sounds more like a wm setting then anything
>> else. With KDE you can fire up 'kcontrol' -> "Regional &
>> Accessibility" -> "Keyboard Shortcuts" and define for example
>> "Windows" -> "Minimize Window" to "Alt+F8", which would work for
>> any window from now on ('apply')...

> But does it also work when the program running *inside* the terminal
> sends the same characters that Alt+F8 generates?

How should I know? I don't even know if this app is starting
another window or is running in text mode? The app might
alternatively try using 'dcop' to signal the parent window to
minimize.

You could just test this out and report back?

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry.TakeThisOut@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 128: Power Company having EMP problems with
their reactor
Back to top
Sybren Stuvel
External


Since: Jul 06, 2005
Posts: 991



PostPosted: Sun Dec 31, 2006 7:40 pm    Post subject: Re: XTerm control sequences in Konsole [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Michael Heiming enlightened us with:
>> But does it also work when the program running *inside* the
>> terminal sends the same characters that Alt+F8 generates?
>
> How should I know?

You know a lot, thought you might know this Wink

> I don't even know if this app is starting another window or is
> running in text mode?

Since I was talking terminal control codes, it's a terminal app.

> The app might alternatively try using 'dcop' to signal the parent
> window to minimize.

That would be rather a long way around - for now I decided to move to
XTerm, which does listen to the appropriate control codes.

> You could just test this out and report back?

I might do that some time after the festivities Smile

Sybren
--
Sybren Stüvel
Stüvel IT - http://www.stuvel.eu/
Back to top
J.O. Aho
External


Since: Mar 26, 2004
Posts: 2216



PostPosted: Sun Dec 31, 2006 8:01 pm    Post subject: Re: XTerm control sequences in Konsole [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sybren Stuvel wrote:
> Michael Heiming enlightened us with:

>> The app might alternatively try using 'dcop' to signal the parent
>> window to minimize.
>
> That would be rather a long way around - for now I decided to move to
> XTerm, which does listen to the appropriate control codes.

I can't see it's a VT100 code, which is the default mode in xterm
http://www.comptechdoc.org/os/linux/howlinuxworks/linux_hlvt100.html

Didn't find it listed as xterm escape sequences
http://rtfm.etla.org/xterm/ctlseq.html


--

//Aho
Back to top
Michael Heiming
External


Since: Apr 04, 2004
Posts: 3526



PostPosted: Sun Dec 31, 2006 8:26 pm    Post subject: Re: XTerm control sequences in Konsole [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In alt.os.linux Sybren Stuvel <sybrenUSE RemoveThis @yourthirdtower.com.imagination>:
> Michael Heiming enlightened us with:
[..]

>> I don't even know if this app is starting another window or is
>> running in text mode?

> Since I was talking terminal control codes, it's a terminal app.

Ah see, I didn't recognized it as such.

>> The app might alternatively try using 'dcop' to signal the parent
>> window to minimize.

> That would be rather a long way around - for now I decided to move to
> XTerm, which does listen to the appropriate control codes.

Sounds like a good workaround.

http://kde-apps.org/content/show.php?content=40425

Description:
This KDED module allows DCOP scripting of the running window
manager (usually KWin, but a separate module allows scripting any
EWMH-compatible window manager that's running in KDE)

This small kde app might just do what you want if you launch your
app from some shell script minimizing "konsole" it was started
from.

BTW
The should have better named it "kkonsole" or so, pretty
confusing if someone talks about konsole, you are never really
sure what he is using...

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry RemoveThis @urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 224: Jan 9 16:41:27 huber su: 'su root' succeeded
for .... on /dev/pts/1
Back to top
Thomas Dickey
External


Since: Aug 09, 2006
Posts: 96



PostPosted: Sun Dec 31, 2006 8:46 pm    Post subject: Re: XTerm control sequences in Konsole [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

J.O. Aho <user.DeleteThis@example.net> wrote:
> Sybren Stuvel wrote:
>> Michael Heiming enlightened us with:

>>> The app might alternatively try using 'dcop' to signal the parent
>>> window to minimize.
>>
>> That would be rather a long way around - for now I decided to move to
>> XTerm, which does listen to the appropriate control codes.

> I can't see it's a VT100 code, which is the default mode in xterm
> http://www.comptechdoc.org/os/linux/howlinuxworks/linux_hlvt100.html

man xterm

The xterm program is a terminal emulator for the X Window
System. It provides DEC VT102/VT220 (VTxxx) and Tektronix
4014 compatible terminals for programs that cannot use the
window system directly. If the underlying operating system
supports terminal resizing capabilities (for example, the
SIGWINCH signal in systems derived from 4.3bsd), xterm will
use the facilities to notify programs running in the window
whenever it is resized.

That's somewhat more than VT100.

Also note that some packagers set resources such as

allowWindowOps (class AllowWindowOps)
Specifies whether extended window control sequences
(as used in dtterm) for should be allowed. The
default is ``true.''

> Didn't find it listed as xterm escape sequences
> http://rtfm.etla.org/xterm/ctlseq.html

That's some gnome-terminal page, which isn't complete (no surprise).
However, what you're discussing is in the section on "Operating System
Controls".

xterm supports ANSI color, VT220 emulation and UTF-8
There's an faq at
http://invisible-island.net/xterm/xterm.faq.html
ftp://invisible-island.net/xterm/

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Back to top
Thomas Dickey
External


Since: Aug 09, 2006
Posts: 96



PostPosted: Sun Dec 31, 2006 8:48 pm    Post subject: Re: XTerm control sequences in Konsole [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

J.O. Aho <user.RemoveThis@example.net> wrote:

> I can't see it's a VT100 code, which is the default mode in xterm
> http://www.comptechdoc.org/os/linux/howlinuxworks/linux_hlvt100.html

That URL doesn't describe VT100's.
(It both describes features not in VT100's, as well as omits features that are).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Back to top
Sybren Stuvel
External


Since: Jul 06, 2005
Posts: 991



PostPosted: Sun Dec 31, 2006 9:27 pm    Post subject: Re: XTerm control sequences in Konsole [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

J.O. Aho enlightened us with:
> Didn't find it listed as xterm escape sequences
> http://rtfm.etla.org/xterm/ctlseq.html

It's there alright, but they call it "iconify" instead of "minimize".
Look for the window manipulation code "CSI Ps ; Ps ; Ps t"

Sybren
--
Sybren Stüvel
Stüvel IT - http://www.stuvel.eu/
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussions (archive 2) All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum