-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Title bar for apps #294
Comments
Hi! Thanks for feedback!
UI controls (top/bottom bar + menu) that allow you to drag the window are provided by the built-in vtm terminal. They are only present (and work) if your application is running on top of the built-in vtm terminal that using DirectVT, like the following:
Next,
The following entries will be suitable for your config:
P.S.: I need to update the readme. |
Good idea, I'll add a Something like
|
I'm currently implementing a configuration merge. This is when the DirectVT application receives a config patch at startup, this is the <item ...>
<config>
<term>
...
</term>
</config>
</item> When I'm done, you can say something like <item ...>
<config>
<term>
<selection mode=none/>
</term>
</config>
</item> In this case, the window can be dragged with the mouse using its entire surface. |
Nice! I think sometimes dragging a window using it's entire surface is not practical, but realy like the |
I'm thinking of changing the DirectVT/ANSIVT/SHELL concept to make it easier and clearer than it is now. Each option will have a built-in terminal menu that can be customized. |
It should be like SHELL=ANSIVT with prefix ‘bash -c ’ to ‘cmd’s value. ANSIVT=DirectVT with prefix ‘$0 -r term ’ to ‘cmd’s value. The following items are the same
|
After these changes, the need for a titlebar will probably disappear. It will have to be tested. |
@Vosjedev Now you can specify your own menu for the built-in terminal. See #304 for reference. Could you please check if this approach closes the titlebar issue?
<config>
<menu selected=Term>
<item*/> <!-- Remove default item records. -->
<item id=Term> <!-- title=id type=SHELL cmd=os_default_shell by default-->
<config>
<term>
<menu> <!-- Menu with one item -->
<item*/> <!-- Zeroize existing menu. -->
<item label="ls /bin" action=TerminalSendKey data="ls /bin\n"/>
</menu>
</term>
</config>
</item>
<item id=htop label="htop" type=DirectVT cmd="$0 -r term htop" notes=" run htop ">
<config>
<term>
<menu> <!-- Empty menu -->
<item*/> <!-- Zeroize existing menu. -->
</menu>
</term>
</config>
</item>
<item id=lfm label="LFM" type=DirectVT title="Last File Manager" cmd="$0 -r term lfm" notes=" run Last File Manager in its own window "/>
<autorun*/> <!-- Zeroize default autoruns. -->
</menu>
</config> |
I close the issue. Please feel free to reopen if the problem still exists. |
Hi! I realy enjoy this project, I am using it to manage my server via ssh.
Could you implement something like a titlebar-window to put apps in? currently i am using configurations like this:
<item id=htop label="Htop" type=DirectVT title="Htop" param="$0 -r term htop" notes=" Interactive process viewer "/>
to make an app have a titlebar.
I am thinking about a titlebar like the demo-apps, but with a custom terminal-command.
I also encounter some problems when I use this config from the preset in the readme:
<item id=mc label="mc" type=SHELL title="Midnight Commander" param="mc" notes=" run Midnight Commander in its own window "/>
or for lfm:
<item id=lfm label="LFM" type=DirectVT title="Last File Manager" param="lfm" notes=" run Last File Manager in its own window "/>
It just displays the midnight commander window, and I cant move/resize it. also, some apps using this configuration (like lfm) start a window, then disapear, and lfm ends up running in the background without a window. using
<item id=lfm label="LFM" type=DirectVT title="Last File Manager" param="$0 -r term lfm" notes=" run Last File Manager in its own window "/>
fixes this.Thanks!
The text was updated successfully, but these errors were encountered: